@font-face {
    font-family: "Sniglet";
    src: url("/assets/fonts/Sniglet.ttf");
}
@font-face {
    font-family: "Edu QLD Hand";
    src: url("/assets/fonts/EduQLDHand.ttf");
}

body {
    background-color: #271842;
    font-family: "Sniglet", monospace;
    color: #beabea;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-content: center;
    justify-content: center;
}

.logo {
    color: transparent;
    font-size: 0;
    background-image: url("/assets/spanier.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

nav {
    height: 50px;
    display: flex;
    background-color: #22123c;
    padding: 5px;
    width: calc(100vw - 10px);

    .logo {
        width: 100px;
        height: 50px;
    }
}

.content {
    display: flex;
    width: 100vw;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content > div {
    display: none;
}

.content > div.active {
    display: flex;
    flex-direction: column;
    width: 100vw;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.welcome {
    .logo {
        width: 70vw;
        height: 20vh;
        margin-bottom: 10vh;
    }
}

.game {
    .drawing-container {
        justify-content: center;
        align-content: center;
        margin: 30px;
        display: flex;
        max-height: 70vh;
        flex: 3;
    }

    .guess-box {
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        flex: 1;
        justify-content: end;
        width: 40vw;
        min-width: 400px;
        min-height: 100px;
        max-height: 170px;
        margin: auto;
        margin-bottom: 0;
        padding: 15px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        background-color: #010813;
        border: solid 2px #00050f;
        border-bottom: none;
    }
}

.history {
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    flex: 1;
}

.past-guess,
.comment-container {
    display: block;
}

.hint {
    color: #ffc400;
    font-family: "Edu QLD Hand", cursive;
    margin-left: 15px;

    .label {
        font-family: "Sniglet", monospace;
        color: #ffd509;
    }
}
.guess {
    color: #97e0fb;
    font-family: "Edu QLD Hand", cursive;
    .label {
        color: #848ae3;
    }
}

.guess-input {
    position: relative;
    display: flex;
    gap: 5px;
    margin-top: 5px;
    input {
        flex: 1;
        min-height: 30px;
        font-size: 20px;
        background-color: #0a1623;
        border: 1px solid #121f2b;
        border-radius: 5px;
        font-family: "Sniglet", cursive;
        outline: none;
        color: #848ae3;
    }
}

.suggestions {
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 0;
    right: 0;
    bottom: 100%;
    background-color: #131f2d;
    margin: 5px;
    max-width: max-content;
    min-width: 10vw;
    border-radius: 5px;
    border: 1px solid #1e2b39;
    padding-top: 10px;
}

.suggestions::after {
    content: "SUGGESTIONS";
    position: absolute;
    top: 0;
    left: 5px;
    color: #2d3a49;
    font-size: 14px;
}

.suggestion {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px;
    padding-left: 10px;
    background: transparent;
}

button {
    transition-duration: 0.4s;
    background-color: #0a1623;
    border: 1px solid #848ae3;
    border-radius: 5px;
    color: #848ae3;
}
button:hover {
    background-color: #848ae3;
    color: #0a1623;
}

.loading .wait-for-load {
    position: relative;
}
.loading .wait-for-load::before {
    left: -5px;
    top: -5px;
    padding: 5px;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    content: "";
}

.loading .wait-for-load::after {
    content: "Loading...";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    color: white;
}

.bottom {
    background-color: #010813;
    border: solid 2px #00050f;
    padding: 15px;
    color: #848ae3;
    border-radius: 15px;
    display: flex;
    /*min-height: 100px;*/
    /*idk i would like this to be larger but no clue how to then make it work on phone*/
    min-width: 300px; /* maybe no good? */
    text-align: center;
    flex-direction: column;

    button {
        font-size: 25px;
        padding: 5px;
        width: 100%;
    }
}

img {
    object-fit: contain;
    max-height: 100%;
    max-width: 90vw;
    border-radius: 15px;
}

.drawing {
    max-height: 80vh;
    display: flex;
    padding: 15px 20px 15px 20px;
    background-color: #010813;
    border: solid 2px #00050f;
    border-radius: 15px;
}

#template {
    display: none;
}

.waiting {
    opacity: 0.5;
}

.comment {
    color: #6e6a79;
}

.hidden {
    display: none;
}

.results {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
}

.results-popup {
    background-color: #015b73;
    border: 1px solid #61a9c3;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;

    h1,
    h2 {
        margin: 0;
        color: #bbf7ff;
    }

    h2 {
        opacity: 0.25;
    }

    button {
        margin: 5px;
        padding: 5px;
        padding-left: 10px; /* ?? */
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.copy-icon {
    background-image: url(assets/copy.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 10px;
    width: 10px;
    display: block;
    transition: 0.4s background-image;
}

button:hover .copy-icon {
    /* LOOK AWAY AAAAWTH */
    background-image: url(assets/copy2.png);
}

#squares {
    display: flex;
    margin: 5px;
    gap: 3px;
    padding: 5px;
    border-radius: 5px;
    background-color: #004b63;
    border: 1px solid #003146;
}

.square {
    border-radius: 5px;
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    color: rgba(0, 0, 0, 0.75);
    font-size: 20px;
}

.square.gray {
    background-color: #31373d;
}
.square.yellow {
    background-color: #fdcb58;
}
.square.correct {
    background-color: #aa8ed6;
}

.square.fail {
    background-color: #ff847c;
}
