html {
    font-family: "Arial", Arial, sans-serif;
    font-size: min(1.5vh,1.5vw);
    background-color: #AAA;
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: W95FA;
    src: url("W95FA.otf") format("opentype");
}

@font-face {
    font-family: Glass_TTY_VT220;
    src: url("Glass_TTY_VT220.ttf") format("truetype");
}

body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0.5rem;
    background-color: #2e2a27;
    font-family: W95FA;
    font-size: 1rem;
    overflow: hidden;
}
#connecting {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20rem;
    height: 10rem;
    margin-left: -13rem;
    margin-top: -6rem;
    font-size: 2rem;
    background-color: #706561;
    border-radius: 1rem;
    border: solid 0.2rem #000000;
    padding: 3rem;
    padding-bottom: 1rem;
    text-align: center;
    user-select: none;
}
#connectingHeader,#signupHeader,#newUserHeader,#siteErrorHeader {
    position: absolute;
    left: 0;
    right: 0;
    top: 0rem;
    height: 1.75rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom: solid 0.2rem #000000;
    padding-top: 0.25rem;
    padding-left: 1rem;
    background-color: #363181;
    overflow: hidden;
    color: #ffffff;
    text-align: left;
    user-select: none;
}
#signup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40rem;
    height: 20rem;
    margin-left: -23rem;
    margin-top: -11rem;
    font-size: 2rem;
    background-color: #706561;
    border-radius: 1rem;
    border: solid 0.2rem #000000;
    padding: 3rem;
    padding-bottom: 1rem;
    text-align: center;
    display: none;
    user-select: none;
}
#signup_id {
    position: absolute;
    left: 8rem;
    top: 15rem;
    width: 24rem;
    height: 2.8rem;
    font-size: 3rem;
    font-family: W95FA;
    border-radius: 0.5rem;
    margin: 0;
    padding: 0;
}
#signup_signin {
    position: absolute;
    right: 7rem;
    top: 15.25rem;
    width: 6rem;
    margin-top: 0.0625rem;
    font-size: 1.5rem;
}
#signup_error {
    position: absolute;
    top: 12rem;
    color: red;
    left: 50%;
    width: 38rem;
    margin-left: -19rem;
    text-align: center;
    font-weight: bold;
    user-select: none;
}
#signup_new {
    position: absolute;
    left: 50%;
    margin-left: -5rem;
    top: 19rem;
    font-size: 1.5rem;
    width: 10rem;
    text-align: center;
}
#newUser {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40rem;
    height: 25rem;
    margin-left: -23rem;
    margin-top: -13.5rem;
    font-size: 2rem;
    background-color: #706561;
    border-radius: 1rem;
    border: solid 0.2rem #000000;
    padding: 3rem;
    padding-bottom: 1rem;
    text-align: center;
    display: none;
    user-select: none;
}
#volunteerID {
    color: #00FF00;
    user-select: text;
}
#VolunteerName {
    position: absolute;
    left: 8rem;
    bottom: 2rem;
    width: 24rem;
    height: 2.8rem;
    font-size: 3rem;
    font-family: W95FA;
    border-radius: 0.5rem;
    margin: 0;
    padding: 0;
}
#newUser_Data {
    position: absolute;
    right: 8rem;
    bottom: 2rem;
    margin-top: 0.0625rem;
    font-size: 1.5rem;
}
#mainWindow {
    display: none;
}
#header {
    position: absolute;
    top: 0rem;
    right: 0rem;
    left: 0rem;
    height: 4rem;
    background-color: #706561;
    border: solid 0.2rem #000000;
    border-right: 0;
    border-top: 0;
    text-align: right;
    font-size: 2.5rem;
    user-select: none;
}
#headerInner {
    position: absolute;
    top: 0rem;
    right: 2rem;
    bottom: 0rem;
    left: 21.5rem;
    padding-right: 1rem;
    padding-top: 1rem;
    background-color: #706561;
    z-index: 1;
    user-select: none;
}
#headerTitle {
    position: absolute;
    top: 0.75rem;
    left: 22.5rem;
    z-index: 3;
    width: 9rem;
    height: 2.8rem;
    font-size: 2rem;
    font-family: W95FA;
    border-radius: 0.5rem;
    margin: 0; position: absolute;
    text-align: left;
    padding: 0;
    user-select: none;
}
#mainName {
    position: absolute;
    top: 0.5rem;
    left: 31rem;
    z-index: 3;
    width: 12rem;
    height: 2.8rem;
    font-size: 2rem;
    font-family: W95FA;
    border-radius: 0.5rem;
    margin: 0;
    padding: 0;
}
#mainUser_Data {
    position: absolute;
    left: 44.5rem;
    top: 0rem;
    margin-top: 0.625rem;
    font-size: 1.5rem;
    z-index: 3;
}
#camera {
    position: absolute;
    top: 0rem;
    left: 0rem;
    width: 21.5rem;
    height: 16.5rem;
    background-color: #706561;
    border-bottom-right-radius: 1rem;
    border: solid 0.2rem #000000;
    border-top: 0;
    border-left: 0;
    text-align: right;
    padding-right: 1rem;
    padding-top: 1rem;
    user-select: none;
}
#cameraInner {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #000000;
    width: 20rem;
    height: 15rem;
    object-fit: scale-down;
    border: solid 0.2rem #000000;
    border-radius: 0.5rem;
    user-select: none;
}
#cameraTag {
    position: absolute;
    top: 100%;
    right: 2rem;
    height: 1.5rem;
    background-color: #706561;
    border-radius: 0.5rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: solid 0.2rem #000000;
    border-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
    user-select: none;
}
#cameraShine,#cameraShine2 {
    position: absolute;
    top: 1.55rem;
    left: 1.55rem;
    width: 50%;
    height: 10%;
    height: 2rem;
    border-top-left-radius: 0.5rem;
    box-shadow: -0.25rem -0.25rem 0.4rem 0 rgba(255,255,255,0.5);
    user-select: none;
}
#cameraShine2 {
    box-shadow: -0.05rem -0.05rem 0.1rem 0 rgba(255,255,255,1);
    width: 45%;
    height: 5%;
    top: 1.5rem;
    left: 1.5rem;
    user-select: none;
}
#mods {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 20rem;
    width: 35rem;
    background-color: #706561;
    border-top-right-radius: 0.5rem;
    border: solid 0.2rem #000000;
    border-bottom: 0;
    border-left: 0;
    user-select: none;
}
#modsTag {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    height: 1.5rem;
    background-color: #706561;
    border-radius: 0.5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: solid 0.2rem #000000;
    border-bottom: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.25rem;
    font-size: 1rem;
    user-select: none;
}
#patches,#tempPatches,#vibratorUpgrades {
    position: absolute;
    top: 2rem;
    left: 1rem;
    width: 12.25rem;
    bottom: 1rem;
    border: solid 0.1rem #000000;
    padding: 0.5rem;
    user-select: none;
}
#patchesTag,#tempPatchesTag,#vibratorUpgradesTag {
    position: absolute;
    left: 1rem;
    top: -0.6rem;
    width: auto;
    background-color: #706561;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.5rem;
    user-select: none;
}
button {
    background-color: #aaaaaa;
    font-family: W95FA;
    font-size: 1rem;
    width: 5rem;
    height: 3rem;
    text-align: right;
    border-top: solid 0.25rem #eeeeee;
    border-left: solid 0.25rem #bbbbbb;
    border-right: solid 0.25rem #cccccc;
    border-bottom: solid 0.25rem #888888;
    border-radius: 0.5rem;
    padding-bottom: 2rem;
}
button:hover {
    background-color: #bbbbbb;
    border-top: solid 0.25rem #ffffff;
    border-left: solid 0.25rem #cccccc;
    border-right: solid 0.25rem #dddddd;
    border-bottom: solid 0.25rem #999999;
}
button:active {
    background-color: #aaaaaa;
    border-top: solid 0.25rem #888888;
    border-left: solid 0.25rem #cccccc;
    border-right: solid 0.25rem #bbbbbb;
    border-bottom: solid 0.25rem #eeeeee;
}
.patchButton {
    position: absolute;
}
#patch_cock,#patch_pre,#patch_rel {
    left: 0.5rem;
}
#patch_ball,#patch_vol,#patch_ref {
    right: 0.5rem;
}
#patch_cock,#patch_ball {
    top: 0.5rem;
}
#patch_pre,#patch_vol {
    top: 4.5rem;
}
#patch_ref,#patch_rel {
    bottom: 5rem;
}
#patch_all {
    bottom: 0.5rem;
    width: 12.25rem;
}
#tempPatches {
    left: 15rem;
    right: 1rem;
    width: auto;
    height: 4.5rem;
    user-select: none;
}
.tempButton {
    margin-right: 1rem;
    position: absolute;
    top: 0.5rem;
}
#temp_patch_sens {
    left: 0.5rem;
}
#temp_patch_prod {
    left: 7rem;
}
#temp_patch_decay {
    right: 0.5rem;
    margin-right: 0;
}
#vibratorUpgrades {
    top: 8.5rem;
    left: 15rem;
    width: auto;
    right: 1rem;
    user-select: none;
}
.vibeButton {
    width: 8.25rem;
    height: 3.5rem;
    margin-right: 1rem;
    position: absolute;
}
#vibe_eff,#vibe_ovd {
    left: 0.5rem;
}
#vibe_spd,#vibe_cap {
    right: 0.5rem;
    margin-right: 0;
}
#vibe_eff,#vibe_spd {
    top: 0.5rem;
}
#vibe_ovd,#vibe_cap {
    bottom: 0.5rem;
}
#product {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 5rem;
    width: 19rem;
    background-color: #706561;
    border-top-left-radius: 0.5rem;
    border: solid 0.2rem #000000;
    border-bottom: 0;
    border-right: 0;
    user-select: none;
}
#productTag {
    position: absolute;
    top: 0;
    height: 1.5rem;
    width: 8rem;
    margin-right: -4rem;
    right: 50%;
    background-color: #706561;
    padding-top: 0.25rem;
    font-size: 1rem;
    user-select: none;
}
#productStored {
    position: absolute;
    top: 1.5rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding-top: 0.5rem;
    background-color: #000000;
    font-size: 2rem;
    font-family: "Glass_TTY_VT220";
    color: #00FF00;
    border-radius: 0.5rem;
    text-align: right;
    user-select: none;
}
#strokeContainer {
    position: absolute;
    bottom: 0;
    width: 10rem;
    right: 20rem;
    height: 5rem;
    background-color: #706561;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border: solid 0.2rem #000000;
    border-bottom: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    user-select: none;
}
#stroke {
    position: absolute;
    left: 0;
    margin: 1rem;
    width: 10rem;
    font-size: 2.5rem;
    text-align: center;
}
#vibeContainer {
    position: absolute;
    top: 5rem;
    left: 23.5rem;
    height: 9rem;
    width: 11.25rem;
    background-color: #706561;
    border-radius: 0.5rem;
    border: solid 0.2rem #000000;
    user-select: none;
}
#vibe_enable,#vibe_over {
    position: absolute;
    left: 0;
    text-align: center;
}
#vibe_enable {
    top: 1rem;
}
#vibe_over {
    bottom: 1rem;
}
.vibeContainerButton {
    margin-left: 1rem;
    width: 9rem;
    height: 3rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom: solid 0.2rem #000000;
    padding-top: 0.25rem;
    padding-left: 1rem;
    font-size: 2.5rem;
    text-align: center;
}
#virtualTerm {
    position: absolute;
    top: 5rem;
    bottom: 6rem;
    right: 1rem;
    left: 36rem;
    background-color: #706561;
    border-radius: 0.75rem;
    border: solid 0.2rem #000000;
    padding: 3rem;
    user-select: none;
}
#virtualTermHeader {
    border-bottom: solid 0.2rem #000000;
    font-size: 1.5rem;
    height: 2rem;
    user-select: none;
}
#virtualTermHeaderTitle {
    position: absolute;
    left: 0;
    right: 0;
    top: 0rem;
    height: 1.75rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom: solid 0.2rem #000000;
    padding-top: 0.25rem;
    padding-left: 1rem;
    background-color: #363181;
    overflow: hidden;
    color: #ffffff;
    user-select: none;
}
#virtualTermInner {
    position: absolute;
    top: 2rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    background-color: #000000;
    padding-bottom: 5rem;
    overflow: hidden;
    user-select: none;
}
#virtualTermInnerText {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1rem;
    font-size: min(8vh,4vw);
    font-family: "Glass_TTY_VT220";
    padding: 1rem;
    color: #00FF00;
    margin-bottom: 10rem;
    user-select: none;
}
#virtualTermInnerProgress,#virtualTermInnerProgress:before {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    height: 5rem;
    user-select: none;
}
#virtualTermInnerProgress:before {
    content: "";
    border: 0.25rem dotted #00FF00;
    border-top: 0.25rem solid #00FF00;
    border-bottom: 0.25rem solid #00FF00;
    filter: drop-shadow(0 0 0.05rem #00FF00) drop-shadow(0 0 0.05rem #00FF00);
    user-select: none;
}
#progressTitle {
    position: absolute;
    bottom: 110%;
    left: 0;
    right: 0;
    padding-bottom: 1rem;
    font-family: "Glass_TTY_VT220";
    font-size: calc(min(8vh,4vw) / 1.2);
    color: #00FF00;
    text-align: center;
    user-select: none;
}
#progressBarOuter {
    position: absolute;
    top: -1rem;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    user-select: none;
}
#progressBar,#orgasmBar,#refractoryBar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 80%;
    background:
        repeating-linear-gradient(
            rgba(0,255,0,1.0) 0%,
            rgba(0,255,0,1.0) 3%,
            rgba(0,0,0,0) 3%,
            rgba(0,0,0,0) 5.1%
        );
    user-select: none;
}
#orgasmBar {
    background:
        repeating-linear-gradient(
            rgba(255,255,255,1.0) 0%,
            rgba(255,255,255,1.0) 3%,
            rgba(0,0,0,0) 3%,
            rgba(0,0,0,0) 5.1%
        );
    left: auto;
    right: 0;
    user-select: none;
}
#refractoryBar {
    background:
        repeating-linear-gradient(
            rgba(255,128,0,1.0) 0%,
            rgba(255,128,0,1.0) 3%,
            rgba(0,0,0,0) 3%,
            rgba(0,0,0,0) 5.1%
        );
    left: auto;
    right: 0;
    user-select: none;
}
#progressVal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8rem;
    height: 2rem;
    margin-top: -1.125rem;
    margin-left: -2.5rem;
    color: #00FF00;
    background: #000000;
    font-size: 2rem;
    border-radius: 0.5rem;
    padding-top: 0.25rem;
    text-align: center;
    user-select: none;
}

.tooltip .tooltiptext,.tooltip .tooltiplower,.tooltip .tooltipright {
    visibility: hidden;
    background-color: #ffffc9;
    color: #000000;
    text-align: center;
    padding: 0.5rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    /* Position the tooltip text */
    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    margin-left: -3.75rem;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow:
        0 0 0.25rem 0.125rem rgba(0,0,0,0.5),
        0 0 0 0.125rem #000000;
    user-select: none;
}
.tooltip .tooltiplower {
    bottom: auto;
    top: 125%;
    user-select: none;
}

.tooltip .tooltipright {
    left: auto;
    right: 100%;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after,.tooltip .tooltiplower::after,.tooltip .tooltipright::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -0.5rem;
    border-width: 0.5rem;
    border-style: solid;
    border-color: #ffffc9 transparent transparent transparent;
    z-index: 999;
    pointer-events: none;
    font-family: W95FA;
    user-select: none;
}

.tooltip .tooltiplower::after {
    bottom: auto;
    top: 100%;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext,.tooltip:hover .tooltiplower {
  visibility: visible;
  opacity: 1;
  z-index: 999;
  font-family: W95FA;
  user-select: none;
}

.vibetoggle {
    background-color: #aa0000;
    border-top: solid 0.25rem #880000;
    border-left: solid 0.25rem #bb0000;
    border-right: solid 0.25rem #cc0000;
    border-bottom: solid 0.25rem #ee0000;
}
.vibetoggle:hover {
    background-color: #cc0000;
    border-top: solid 0.25rem #990000;
    border-left: solid 0.25rem #dd0000;
    border-right: solid 0.25rem #ee0000;
    border-bottom: solid 0.25rem #ff0000;
}
.vibetoggle:active {
    background-color: #aa0000;
    border-top: solid 0.25rem #ee0000;
    border-left: solid 0.25rem #cc0000;
    border-right: solid 0.25rem #bb0000;
    border-bottom: solid 0.25rem #880000;
}

.buttondisable,.buttondisable:hover,.buttondisable:active {
    color: #777777;
    background-color: #888888;
    border-top: solid 0.25rem #aaaaaa;
    border-left: solid 0.25rem #777777;
    border-right: solid 0.25rem #999999;
    border-bottom: solid 0.25rem #444444;
    border-radius: 0.5rem;
}
.patch_Level,.patch_Price {
    position: absolute;
    top: 0;
    left: 0.125rem;
    font-size: 0.8rem;
    color: #000000;
}
.patch_Price {
    top: auto;
    left: auto;
    bottom: 0;
    right: 0.125rem;
}
#tempIndicators {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: #00FF00;
    font-family: "Glass_TTY_VT220";
    font-size: calc(min(8vh,4vw) / 1.2);
    text-align: right;
    width: 1rem;
    user-select: none;
}
.indicatorHidden {
    color: #003300;
}
#tempIndicatorSens,#tempIndicatorProd,#tempIndicatorDecay {
    position: absolute;
    top: 0rem;
    right: 0rem;
    user-select: none;
}
#tempIndicatorProd {
    top: 5rem;
    user-select: none;
}
#tempIndicatorDecay {
    top: 10rem;
    user-select: none;
}
#tempIndicatorSensBar,#tempIndicatorProdBar,#tempIndicatorDecayBar {
    position: absolute;
    top: 3rem;
    right: 0rem;
    width: 100%;
    max-width: 20rem;
    height: 0.5rem;
    background-color: #00FF00;
    user-select: none;
}
#tempIndicatorProdBar {
    top: 8rem;
    user-select: none;
}
#tempIndicatorDecayBar {
    top: 13rem;
    user-select: none;
}
.overdriveBlink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 50%;
  }
}

#volunteers {
    position: absolute;
    top: 0.6rem;
    left: 51rem;
    width: 24rem;
    height: 2rem;
    font-size: 2rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #000000;
    font-family: Glass_TTY_VT220;
    color: #00FF00;
    z-index: 99;
    border-radius: 0.5rem;
    user-select: none;
}
#unitStandard {
    position: absolute;
    top: 0.6rem;
    right: 0.25rem;
    z-index: 3;
    font-family: arial;
    font-size: 0.75rem;
    width: 2rem;
    padding-top: 0;
    padding-right: 0.3rem;
}
#siteError {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40rem;
    height: 30rem;
    margin-left: -23rem;
    margin-top: -16rem;
    font-size: 2rem;
    background-color: #706561;
    border-radius: 1rem;
    border: solid 0.2rem #000000;
    padding: 3rem;
    padding-bottom: 1rem;
    text-align: center;
    display: none;
    z-index: 9999;
    user-select: none;
}
