/* fonts */
@font-face {
    font-family: lato-black;
    src: url(./assets/Lato-Black.ttf);
} @font-face {
    font-family: lato-bold;
    src: url(./assets/Lato-Bold.ttf);
} @font-face {
    font-family: lato-italy;
    src: url(./assets/Lato-Italic.ttf);
} @font-face {
    font-family: lato-reg;
    src: url(./assets/Lato-Regular.ttf);
} @font-face {
    font-family: lato-reg;
    src: url(./assets/Lato-Regular.ttf);
} @font-face {
    font-family: akzidenz-black;
    src: url(./assets/Akzidenz-grotesk-black.ttf);
} @font-face {
    font-family: akzidenz-bold;
    src: url(./assets/Akzidenz-grotesk-bold.ttf);
} @font-face {
    font-family: futround-bold;
    src: url(./assets/Futura\ Round\ Bold.ttf);
}

/* basic element stuff*/

body, header, main, footer, h1, h2, h3, h4, h5, h6, p {
    font-family: lato-reg;
    color: white;
    padding: 0px;
    border: 0px;
    margin: 0px;
    overflow: overlay;
    overflow-x: hidden;
    overflow-y: hidden;
    cursor: default;
}

a, .link {
    color: white;
    text-decoration: none;
    transition-duration: 250ms;
    cursor: pointer;
}

a:hover, .link:hover {
    color: #cacaca;
}

::selection {
    background: default;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    position: absolute;
}
::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 5px;
}
::-webkit-scrollbar-track {
    /*background: #789feb;*/
    display: none;
}
::-webkit-scrollbar-corner {
    display: none;
}

/*haha i stole this code from the dogecoin website*/

.disable {
    /* nft websites can't figure this out when it took me a quick google search */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* other */

body {
    background-color: #1e1e1e;
}


footer {
    background-color: #333333;
    height: 4rem;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 0.3rem;
    padding-left: 0.3rem;
}

footer img {
    height: 3rem;
}

.conversion-wrapper {
    display: flex;
    padding: 20px;
    background-color: #3c3c3c;
    border-radius: 10px;
    width: 80vw;
    height: 65vh;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 20px;
}


.settings-wrapper {
    padding: 20px;
    background-color: #272727;
    border-radius: 10px;
    width: 80vw;
    margin-bottom: 20px;
}


.operation-wrapper {
    display: flex;
    height: auto;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid rgb(61, 61, 61);
}

.types-wrapper {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.options-wrapper {
    display: flex;
    height: auto;
    max-height: 500px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid rgb(61, 61, 61);
    transition-duration: 500ms;
}

.options-wrapper :last-child {
    margin-bottom: 20px;
}

.options-wrapper:empty {
    margin: 0px;
    border-bottom-width: 0px;
    max-height: 0px;
}

.conversion-wrapper textarea {
    resize: none;
    flex: 1;
    height: 100%;
    background-color: #303030;
    border: 1px solid rgb(71, 71, 71);
    color: white;
    font-family: lato-bold;
    font-size: 1.25rem;
}


.oper-button {
    font-family: lato-bold;
    font-size: 1.5rem;
    background-color: #2b2b2b;
    padding: 10px;
    border-radius: 10px;
    padding-top: 5px;
    cursor: pointer;
    transition-duration: 200ms;
    margin-bottom: 10px;
}

.oper-button:hover {
    background-color: #4e4e4e;
}

.conversion-wrapper textarea::placeholder {
    color: rgb(168, 168, 168);
}

.type-button {
    font-family: lato-bold;
    background-color: #2b2b2b;
    padding: 10px;
    border-radius: 10px;
    padding-top: 5px;
    cursor: pointer;
    transition-duration: 200ms;
}

.type-button:hover {
    background-color: #4e4e4e;
}

.active-type {
    background-color: #5a5a5a;
}

input {
    background-color: #4d4d4d50;
    border: 1px solid #4e4e4e;
    border-radius: 10px;
    padding: 5px;
    height: 2rem;
    font-size: 1.5rem;
    color: white;
}

.timein {
    width: 6rem;
    margin-top: 10px;
    margin-left: 5px;
}

input::placeholder {
    color: #868686;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}


.startpage {
    width: 100vw;
    height: 100vh;
    background-color: #00000025;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0px;
    left: 0px;
    text-align: center;
    transition-duration: 0ms; /* transition speed is set in play_game()*/
    z-index: 1000;
    overflow-y: scroll;
    overflow-x: hidden;
}

.gamepage {
    width: 100vw;
    min-height: 100vh;
    height: min-content;
    overflow: hidden;
    text-align: center;
}

.bobble-logo {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 3rem;
    font-family: futround-bold;
    transition-duration: 500ms;
}

.gamepage .bobble-logo {
    opacity: 0;
}

.startpage .bobble-logo {
    /*background-color: #1a1a1a;*/
    padding-bottom: 20px;
    margin-bottom: calc(1rem - 20px);
    margin-top: 0px;
    padding-top: 1.5rem;
}

.divider {
    font-size: 0px;
    border-bottom: 1px solid #424242;
    margin-top: 20px;
    margin-bottom: 20px;
}

.startpage h1 {
    margin-top: 1rem;
}
.explanation {
    font-size: 1.5rem;
    color: rgb(235, 235, 235);
}

.info-button {
    position: fixed;
    left: -1.5rem;
    top: 10px;
    margin: 0px;
    margin-top: 0px;
    padding: 0px;
    cursor: pointer;
    z-index: 10000;
    height: 1.5rem;
    transition-duration: 250ms;
}

.info-button path {
    transition-duration: 250ms;
}

.pause-button {
    position: fixed;
    left: -1.5rem;
    top: calc(1.5rem + 20px);
    margin: 0px;
    margin-top: 0px;
    padding: 0px;
    cursor: pointer;
    z-index: 10000;
    height: 1.5rem;
    transition-duration: 250ms;
}

.pause-button path {
    transition-duration: 250ms;
}

.reload-button {
    position: fixed;
    left: -1.6rem;
    top: calc(3rem + 30px);
    margin: 0px;
    margin-top: 0px;
    padding: 0px;
    cursor: pointer;
    z-index: 10000;
    height: 1.5rem;
    transition-duration: 250ms;
}


@keyframes reload-spin {
    0%   {transform: rotate(0deg) scale(1.25)}
    100% {transform: rotate(-360deg) scale(1.25)}
}

.reload-spin {
    animation: reload-spin;
    animation-duration: 1000ms;
}

#reload-button {
    transform: scale(1.25);
}



.reload-button path {
    transition-duration: 250ms;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(70, 70, 70);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
  

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}
  
.slider.round:before {
    border-radius: 50%;
}

button {
    background-color: #55555550;
    border: 0px;
    padding: 15px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    border-radius: 10px;
}

.array {
    max-width: 100vh;
    max-height: 100vh;
    border: 1px solid #424242;
    width: min-content;
    user-select: none;
}

.array tbody {
    transition-duration: 500ms;
}

.array th {
    color: white;
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    background-color: #333333;
}

.array th div {
    width: 2.5rem;
    height: 2.5rem;
}

.array th .float {
    position: fixed;
}

.wordlist {
    width: 100vw;
    text-align: left;
    font-size: 1.5rem;
    transition-duration: 500ms;
    font-family: lato-bold;
}

.countdown-clock {
    display: flex;
    color: white;
    justify-content: center;
    font-family: lato-bold;
    font-size: 2rem;
    height: 2.2rem;
    overflow-y: hidden;
    user-select: none;
}

.countdown-clock .num-place {
    font-family: lato-bold;
    transition-duration: 500ms;
    overflow-y: hidden;
}

.countdown-clock br {
    height: 0px;
    margin: 0px;
    padding: 0px;
    border: 0px;
}


@keyframes blinker {
    0%   {color: rgb(255, 73, 73)}
    49%  {color: rgb(255, 73, 73)}
    50% {color: transparent;}
    99% {color: transparent;}
}


.timeup {
    margin-top: 10px;
    color: rgb(255, 73, 73);
    animation-name: blinker;
    animation-duration: 1500ms;
    animation-iteration-count: infinite;
    display: none;
}

.revealall {
    display: none;
}

.massage {
    margin-top: 5px;
}

.prevgames {
    width: calc(100vw - 40px);
    height: fit-content;
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
    gap: 10px;
}

.prevgames {
    margin: 20px;
}

.game-card {
    background-color: #5c5c5c50;
    width: 17.5rem;
    height: 22.5rem;
}

.game-card h2 {
    font-family: lato-black;
    margin-top: 10px;
}

.game-card h3 {
    margin-top: 5px;
    font-family: lato-bold;
}

.prev-array {
    margin-top: 10px;
    max-width: 100vh;
    max-height: 100vh;
    border: 1px solid #616161;
    width: min-content;
    user-select: none;
    overflow-y: scroll;
    margin-bottom: 5px;
}

.scroll-wrapper {
    overflow-x: scroll;
    overflow-y: scroll;
}

.scroll-wrapper-game {
    max-width: 100%;
    max-height: 17.5rem;
    overflow-y: scroll;
}

.weewee-haha {
    margin-left: 10px;
    margin-right: 4px;
    overflow-x: scroll;
    height: min-content;
}

.prev-array tbody {
    transition-duration: 500ms;
}

.prev-array th {
    color: white;
    font-size: 175%;
    aspect-ratio: 1 / 1;
    padding: 0.75em;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    background-color: #50505075;
}

.game-card button {
    background-color: #ff000050;
    transition-duration: 250ms;
    margin-top: 5px;
}
.game-card button:hover {
    background-color: #ff000075;
}

.hoverinfo-card {
    font-family: lato-bold;
    background-color: #3c3c3c50;
    padding: 5px;
    position: fixed;
    padding-top: 0px;
    margin-top: 1.5px;
    border-radius: 5px;
    left: 2.5rem;
    transition-duration: 250ms;
    opacity: 0;
    display: none;
}

.hoverinfo:hover > .hoverinfo-card {
    opacity: 1;
}
