body,
html {
    margin: 0;
    width: 100vw;
    overflow-x: hidden;
}

#gameboard {
    border-collapse: collapse;
    /* width: 400px; */
    margin: auto;
    user-select: none;
    margin-top: 80px;
    width: fit-content;
}

td {
    /* width: 30px;
    height: 30px; */
    border: 1px solid #000;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

#answer-display {
    font-size: 20px;
    margin-top: 10px;
    font-weight: bold;
    border: #000 1px solid;
    padding: 5px;
    border-radius: 5px;
    margin: 0 15px;
    background-color: white;
}

#how-to-play {
    width: 96%;
    margin: auto;
    text-align: center;
    margin-top: 20px;
    position: absolute;
    bottom: 0;
    top: 10%;
    padding: 2%;
    z-index: 100;
    background-color: white;
    transition: top 0.3s linear;
}

#how-to-play #close-how-to-play {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background-color: lightblue;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

#help-button {
    margin-left: 5px;
    margin-top: 15px;
    font-size: 1.5rem;
    height: 35px;
    width: 35px;
    background-color: lightblue;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

#how-to-play.hide {
    top: 100%;
}

#guess-container {
    width: 100%;
    margin: auto;
    text-align: center;
    margin-top: 20px;
    position: absolute;
    bottom: 0;
}

#guess-container label {
    width: auto;
    display: block;
    margin-top: 15px;
}

#guess-container input,
#guess-container input:focus,
#guess-container input:active #guess-container input:focus-visible {
    display: none;
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
    position: absolute;
    width: 100%;
    left: -100%;
}

span {
    direction: ltr;
}

#guess-container button {
    width: 50%;
    margin: 15px;
}

#clue-container {
    width: 100%;
    margin: auto;
    text-align: center;
    margin-top: 20px;
}

#current-clue {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#prev-clue-container {
    font-size: 1.2rem;
    font-weight: lighter;
    color: grey;
    height: 100px;
    overflow-y: scroll;
}

.dance {
    background: linear-gradient(45deg, blue, white);
    background-size: 600% 600%;
    animation-name: dance;
    animation-duration: 1s;
    animation-iteration-count: 10;
}

#prev-clue-container h3.start {
    font-size: 1.4rem;
    margin-top: -40px;
}

#prev-clue-container h3 {
    font-size: 0.9rem;
    margin-top: 0;
    transition: margin 0.5s ease-in, font-size 0.5s ease-in;
}

.selected {
    background-color: #000 !important;
    color: #fff !important;
}

.not-correct {
    animation-name: not-correct-shake;
    animation-duration: 0.5s;
}

.found {
    transition: color 0.25s linear, background-color 0.25s linear;
    background-color: lightblue;
    color: black;
}

.correct {
    animation-name: correct-spin;
    animation-duration: 0.5s;
}

header {
    height: 30px;
}


.navbar {
    position: absolute;
    left: 0%;
    top: 0%;
    right: 0%;
    bottom: auto;
    z-index: 100;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    /* padding: 5px 20px; */
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 0;
    transition: 0.5s;
    margin-bottom: 0 !important;
    border-bottom: black solid 1px;
    box-shadow: gray 0px 0px 5px;
}

.navbar img {
    transition: 0.5s;
    /*height: 75px;*/
    width: auto;
}

.menu-contain {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding-right: 0px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.prevent-overscroll {
    overscroll-behavior: none !important;
}

.nav-link {
    position: relative;
    margin-right: 16px;
    margin-left: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-family: Montserrat, sans-serif;
    color: #020736;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.nav-link.-current {
    color: #525575;
}

.nav-link.footer {
    color: #fffcf9;
}

.nav-link .link-hover {
    width: 0%;
    height: 2px;
    transition: all 0.5s;
    margin-top: -4px;
    color: black;
}

.nav-link:hover .link-hover {
    width: 100%;
    transition: all 0.5s;
}

.link-hover.footer {
    background-color: #000066;
}

.mobile-hamburger-wrap {
    display: none;
}

.mobile-overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgb(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.mobile-overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.mobile-overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.mobile-overlay a:hover,
.mobile-overlay a:focus {
    color: #f1f1f1;
}

/* Position the close button (top right corner) */
.mobile-overlay .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {

    .mobile-overlay a {
        font-size: 20px
    }

    .mobile-overlay .mobile-nav-close {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

@media screen and (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        overflow: auto;
        width: 100%;
        padding-top: 30px;
        padding-bottom: 30px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .logo {
        max-width: 90%;
    }

    .navbar {
        padding-right: 5%;
        padding-left: 5%;
    }

    .menu-contain {
        padding-right: 0px;
    }

    .nav-link.mobile {
        padding-top: 28px;
        padding-bottom: 28px;
        color: #fffcf9;
        font-size: 24px;
    }

    .nav-link.mobile:hover {
        color: #fffcf9;
    }

    .mobile-hamburger-wrap {
        position: relative;
        top: 0px;
        z-index: 1001;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        padding: 14px 0px 14px 14px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: end;
        -webkit-align-items: flex-end;
        -ms-flex-align: end;
        align-items: flex-end;
        cursor: auto;
    }

    .hamburger-line {
        width: 40px;
        height: 2px;
        margin-top: 3px;
        margin-bottom: 3px;
        padding: 0px;
        background-color: #525575;
    }

    .hamburger-line._2 {
        width: 35px;
    }

    .hamburger-line._3 {
        width: 30px;
    }

    .mobile-menu {
        position: fixed;
        left: 0%;
        top: 0%;
        right: 0%;
        bottom: 0%;
        display: none;
        width: auto;
        height: auto;
        padding: 60px 20px;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        background-color: #020736;
    }

}

@keyframes dance2 {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        transform: rotate(randomRotation());
    }
    100% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }    
}

@keyframes dance {
    0% {
        transform: rotate(0deg);
        background-position: 0% 50%;
        color: white;
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
        background-position: 100% 50%;
        color: black;
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
        background-position: 0% 50%;
        color:white;
    }
}

@keyframes not-correct-shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes correct-spin {
    0% {
        transform: rotate(0deg);
    }

    50% {
        scale: 1.5;
    }

    100% {
        transform: rotate(360deg);
    }

}