:root {
    --black: #1e1e1e;
    --sand: #FFECC5;
    --rose: #E77658;
    --light-rose: #F1C1B4;
    --yellow: #F2BC41;
    --green: #009D5C;
    --light-green: #9CD9BA;
    --blue: #6BA6D6;
    --light-blue: #C2D2DF;
}

/* global styling */

.hidden {
    display: none !important;
}

#tutorial {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 9999;
    color: var(--black);
}

#dialogue-container {
    position: absolute;
    width: 90%;
    background-color: var(--sand);
    border: 3px solid var(--yellow);
    border-radius: 25px;
    padding: 25px;
    left: 50%;
    bottom: 10%;
    transform: translate(-50%);
    max-width: 500px;
}

.godNamePos {
    left: 5% !important;
}

#god {
    position: absolute;
    transform: translate(-60%);
    transition: 0.5s ease;
}

/* sound & icon stuff */
#icons {
    position: absolute;
    width: 100%;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#play-sound-btn,
#sound-btn {
    width: 60px;
    height: 60px;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
}

#play-sound-btn:active,
#sound-btn:active {
    transform: scale(95%);
}

#skip {
    width: 130px;
    height: 60px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    cursor: pointer;

    img {
        width: 40px;
        height: 40px;
    }
}

.button {
    position: absolute;
    bottom: 15px;
    border-radius: 25px;
    text-align: center;
    font-size: 2.5rem;
    width: 30%;
    height: 70px;
    max-width: 250px;
    cursor: pointer;
}

.button:active {
    transform: scale(95%);
}

#next-btn {
    right: 5%;
}

#back-btn {
    left: 5%;
}

#play-game-btn {
    background-color: var(--sand);
    border: 3px solid var(--yellow);
    font-size: 2.1rem;
    padding: 5px 10px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 50px;
    right: 5%;
    z-index: 99;
    min-width: 195px;
}

/* controls */

#controls-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%);
    border-radius: 25px;
    width: 90%;
    max-width: 540px;
    height: 60%;
    display: flex;
    align-items: center;
}

#how-to-play {
    width: fit-content;
    border-radius: 25px;
    font-size: 2rem;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: -25px;
    padding: 0 15px;
    white-space: nowrap;
}

#desktop-controls {
    display: none;
}

#mobile-controls {
    width: 100%;
    text-align: center;

    img {
        width: 200px;
    }
}

#mobile-arrows {
    display: flex;
    justify-content: space-between;
    width: 230px;
    margin: 0 auto;

    img {
        width: 100px;
        padding: 20px;
        background-color: var(--rose);
        border-radius: 25px;
    }

    p {
        text-align: center;
    }
}

#gameplay-tutorial1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;

    div {
        padding-bottom: 25px;
    }
}

#gameplay-tutorial2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;

    h1 {
        margin-bottom: 25px;
    }
}

/* character dialogue stuff */

#tut-char {
    position: absolute;
    width: 70%;
    right: 50%;
    transform: translate(70%);
    top: 30%;
    max-width: 380px;
    transition: 0.5s ease;
}

#char-name {
    background-color: var(--sand);
    border: 3px solid var(--yellow);
    border-radius: 25px;
    width: max-content;
    padding: 0 15px;
    font-size: 2rem;
    position: absolute;
    right: 5%;
    top: -2.15rem;
}

/* game specific */

/* volcano game */

#vol-background {
    background-image: url(volcano-climb/img/lava-background.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.tuatara {
    left: 50%;
    top: 35%;
    max-width: 450px;
    width: 80%;
}

.platform {
    width: 200px;
    height: 100px;
}

#falling-char :nth-child(1) {
    height: 80px;
    display: block;
    margin: 0 auto;
    padding-bottom: 15px;
}

#falling-char :nth-child(2) {
    width: 100px;
    display: block;
}

/* control arrows */
.vol-arrow-up {
    transform: rotate(-90deg);
}

.vol-arrow-left {
    transform: rotate(180deg);
}

.vol-arrow-down {
    transform: rotate(90deg);
    opacity: 50%;
}


/* forest game */

.tanemahuta {
    left: 50%;
    bottom: 20%;
    width: 80%;
    max-width: 400px;
}

/* ocean game */

.tangaroa {
    left: 60%;
    bottom: 20%;
    width: 95%;
    max-width: 550px;
}

#ocean-background {
    background-image: url(ocean-run/img/background.png);
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.ocean-game-controls {
    background-color: var(--blue) !important;
}

#coral-img-container img {
    margin-top: 25px;
    width: 25%;
}

/* control arrows */
.ocean-arrow-up {
    transform: rotate(-90deg);
    background-color: var(--blue) !important;
    opacity: 50%;
}

.ocean-arrow-left {
    transform: rotate(180deg);
    background-color: var(--blue) !important;
}

.ocean-arrow-down {
    transform: rotate(90deg);
    opacity: 50%;
    background-color: var(--blue) !important;
}

.ocean-arrow-right {
    background-color: var(--blue) !important;
}


@media screen and (min-width: 769px) {
    #desktop-controls {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 10px;
        justify-content: center;
        align-items: center;
        width: fit-content;
        height: fit-content;
        margin: 0 auto;
        text-align: center;
    }

    #desktop-controls img {
        width: 100px;
        height: 100px;
        padding: 25px;
        border-radius: 10px;
        background-color: var(--rose);
    }

    #desktop-controls-forest {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        height: 100%;
        margin: 0 auto;
        img {
            width: 50%;
        }
    }

    #mobile-controls {
        display: none;
    }

}