@import url('https://fonts.googleapis.com/css2?family=Ysabeau+SC&display=swap');

* {
    font-family: 'Ysabeau SC';
    user-select: none;
}

body {
    --size: 64px;
    --color1: rgba(255, 255, 255, 0.123);
    --color2: rgba(255, 255, 255, 0.329);
    margin: 0;
    background-color: rgb(23, 24, 26);
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#doubleContainer {
    width: 275px;
}

#container {
    /* position: absolute; */
    /* left: 100px; */
    /* top: 100px; */
    background-color: rgba(255, 255, 255, 0.1);
}

.cell {
    width: var(--size);
    height: var(--size);
    background-color: rgba(255, 255, 255, 0.1);
}

.letter {

    width: var(--size);
    height: var(--size);
    background-color: beige;
    display: flex;
    justify-content: center;
    font-size: var(--size);
    border-radius: 10px;
    cursor: pointer;
    line-height: 64px;
}

.divisor {
    height: 20px;
}

.spacer {
    width: 60px;
}

h1 {
    color: white;
    text-align: center;
    font-size: 40px;
    z-index: 20;
}

#bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 10;
}

.text {
    color: white;
    font-size: 30px;
    display: inline-block;
    margin-right: 30px;
}

#nextLetter {
    background-color: white;
    display: inline-block;
    width: var(--size);
    height: var(--size);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#centre {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#objectives {
    width: 140px;
    margin-top: 93px;
}

#donewords {
    width: 140px;
    margin-top: 93px;
    overflow: hidden;
    height: 369px;
}

.objective {
    color: white;
    font-size: 30px;
    margin-right: 30px;
    background-color: rgb(165, 126, 75);
    border-radius: 10px;
    text-align: center;
    /* line-height: 26px; */
    margin: 15px;
    padding: 0 15px 5px 15px;
}

.doneword {
    color: white;
    font-size: 30px;
    margin-right: 30px;
    background-color: rgb(46, 116, 138);
    border-radius: 10px;
    text-align: center;
    /* line-height: 26px; */
    margin: 15px;
    padding: 0 15px 5px 15px;
}

#cleans {
    width: 275px;
    text-align: center;
    display: flex;
}

svg {
    background-color: rgb(48, 48, 48);
    border-radius: 10px;
    margin: 5px;
    padding: 5px;
    z-index: 30;
    max-width: 40px;
}

@media only screen and (min-width: 600px) {

    #cleans {
        width: 223px;
        justify-content: center;
    }

    #cleans {
        flex-wrap: wrap;
    }

    #cleans svg:nth-child(1),
    #cleans svg:nth-child(2),
    #cleans svg:nth-child(3),
    #cleans svg:nth-child(4) {
        flex: 1 0 16%;
    }

    #cleans svg:nth-child(n+5) {
        max-width: 10px;
        max-height: 10px;
        background-color: rgb(125, 0, 0);
    }

    #donewords {
        overflow-y: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #donewords::-webkit-scrollbar {
        display: none;
    }

}

#donewords2 {
    display: none;
}

#instructions {
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    color: white;
    text-align: center;
    font-size: 30px;
}

#finish {
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    color: white;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    line-height: 70px;
}

#finish span {
    cursor: pointer;
}

#instructions .inner {
    width: 700px;
}

a {
    text-decoration: none;
    cursor: pointer;
}

#instructions-button div {
    font-size: 22px;
    background-color: rgba(168, 177, 185, 0.11);
}

#instructions-button2 {
    display: none;
}

@media only screen and (max-width: 600px) {

    h1 {
        margin: 10px 0 10px 0;
    }

    #donewords,
    #objectives,
    #cleans {
        margin: 0;
        display: flex;
        flex-direction: row;
        width: 100vw;
        /* overflow-y: none; */
    }

    #donewords {
        height: 80px;
    }

    #objectives {
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
    }

    .objective {
        margin: 10px;
        width: 75px;
    }

    #donewords {
        overflow-x: scroll;
    }

    svg {
        min-width: 40px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    body {
        position: relative;
        width: 100vw;
        flex-direction: column;
    }

    #centre {
        order: 0;
    }

    #objectives {
        order: 1;
    }

    #donewords {
        order: 2;
    }

    #instructions-button {
        display: none;
    }

    #instructions-button2 {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    #instructions-button2 div {
        width: 24px;
        height: 24px;
        font-size: 20px;
        padding: 0;
        line-height: 22px;
        background-color: rgba(168, 177, 185, 0.226);
    }

    #instructions {
        justify-content: flex-start;
        padding-top: 80px;
    }

    #instructions span {
        font-size: 22px;
    }

    #instructions .inner {
        font-size: 22px;
        max-width: 100vw;
    }

    #cleans {
        justify-content: center;
    }

    #cleans svg:nth-child(n+6) {
        display: none;
    }
}