/* fonts */
.londrina-shadow-regular {
    font-family: "Londrina Shadow", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.quicksand {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/* Styling */

body {
    background-image:
        url("https://images.unsplash.com/vector-1744035321374-a3bd0eb41df3?q=80&w=880&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"),
        url("https://images.unsplash.com/vector-1744035321374-a3bd0eb41df3?q=80&w=880&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: 200px 100%, 200px 100%;
    background-attachment: fixed;
    background-color: #D0F0FD;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    font-family: "Quicksand", sans-serif;
    color: lightblue;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* How To Play Styling */

#game-instructions {
    background-color: #F8F7FF;
    border-radius: 12px;
    width: 90vw;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1rem;
}

.first-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: 'Londrina Shadow', cursive;
    font-size: 40px;
    font-weight: 700;
    color: #4B3B72;
    vertical-align: middle;
    text-align: center;
    gap: 10px;
}


.wordle-instructions .w {
    color: #F6C4D3;
}

.wordle-instructions .o {
    color: #F3BDA1;
}

.wordle-instructions .r {
    color: #F8E7A2;
}

.wordle-instructions .d {
    color: #C4E4C2;
}

.wordle-instructions .l {
    color: #A6D1E6;
}

.wordle-instructions .e {
    color: #DCCCF4;
}


.instructions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    font-family: "Quicksand", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4B3B72;

}

.instructions-wrapped {
    width: 300px;
    margin-bottom: 20px;
}

#start {
    margin-bottom: 20px;
}

.green-letter,
.yellow-letter,
.coral-letter {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.green-letter img,
.yellow-letter img,
.coral-letter img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}


.green-letter p,
.yellow-letter p,
.coral-letter p {
    margin: 0;
    text-align: left;
}

#playButton {
    display: block;
    margin: 20px auto 0 auto;
    margin-top: 30px;
}

/* Game Board Styling */

.wordle-title {
    font-family: 'Londrina Shadow', cursive;
    font-size: 5rem;
    text-align: center;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);

}

.wordle-title .letter {
    display: inline-block;
    margin: 0 5px;
}

.wordle-title .w {
    color: #F6C4D3;
}

.wordle-title .o {
    color: #F3BDA1;
}

.wordle-title .r {
    color: #F8E7A2;
}

.wordle-title .d {
    color: #A6D1E6;
}

.wordle-title .l {
    color: #A6D1E6;
}

.wordle-title .e {
    color: #DCCCF4;
}


h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    color: #4A148C;
    margin-top: 5px;
    background-color: transparent;
}

.entire-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

#game-board {
    display: grid;
    grid-template-rows: repeat(6, 60px);
    grid-template-columns: repeat(5, 60px);
    justify-content: center;
    gap: 15px;


}

.tile {
    background-color: #FFFFFF;
    border: 2px solid #DCCCF4;
    border-radius: 10px;
    height: 70px;
    width: 70px;
    margin: 0;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4A148C;

}

#game-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 30px auto 0 auto;
    border-radius: 12px;
}

.keyboard-row,
.keyboard-row-two,
.keyboard-row-three {
    color: #333333;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

button {
    font-family: "Quicksand", sans-serif;
    background-color: #FFFFFF;
    border: 2px solid white;
    border-radius: 10px;
    min-width: 45px;
    min-height: 50px;
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333333;
    border: 2px solid #DCCCF4;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.25s ease;
}

button:hover {
    background-color: #E8DFFB;
    border-color: #B39DDB;
    color: #5D4A99;

}

.bottom-row {
    display: flex;
    flex-direction: row;
    margin: 20px;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .wordle-title {
        font-size: 3em;
        text-align: center;
        margin: 0 auto 10px;
    }

    .green-letter,
    .yellow-letter,
    .coral-letter {
        margin-bottom: 15px;
        gap: 8px;
    }

    .green-letter img,
    .yellow-letter img,
    .coral-letter img {
        width: 30px;
        height: 30px;
    }

    
    .green-letter p,
    .yellow-letter p,
    .coral-letter p,
    .instructions {
        font-size: 0.8rem;
    }


    .tile {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0;
    }

    #game-board {
        grid-template-rows: repeat(6, 50px);
        grid-template-columns: repeat(5, 50px);
        gap: 10px;
    }

    .keyboard-row,
    .keyboard-row-two,
    .keyboard-row-three {
        gap: 5px;
    }

    #game-keyboard {
        max-width: 100%;
        margin: 20px auto 0;
        padding: 0 10px;
    }

    .button {
        width: 30px;
        height: 40px;
        font-size: 0.9rem;
        margin: 2px;
        min-width: unset;
        min-height: unset;
    }

    .bottom-row {
        margin: 10px;
        gap: 0.5rem;
    }

    #game-instructions {
        width: 95vw;
        max-width: 350px;
        max-height: 80vh;
        font-size: 13px;
        padding: 1rem 0.75rem;
        border-radius: 8px;
    }

    .first-row {
        font-size: 15px;
    }

    body {
        background-image: none;
        background-color: #D0F0FD;
        padding: 10px;
        overflow-x: hidden;
    }
}