@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: linear-gradient(120deg, #062395 0%, #0da085 100%);
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: #4b4b4bee 0 5px 10px;
}

hr {
    width: 500px;
}

#title {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
}

#board {
    width: 350px;
    height: 420px;
    margin: 0 auto;
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
}

.tile {
    /* Box */
    border: 2px solid lightgray;
    width: 60px;
    height: 60px;
    margin: 2.5px;

    /* Text */
    color: black;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.correct {
    background-color: #6AAA64;
    color: white;
    border-color: white;
}

.present {
    background-color: #C9B458;
    color: white;
    border-color: white;
}

.absent {
    background-color: #787C7E;
    color: white;
    border-color:white;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

.keyboard {
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.key-tile {
    width: 36px;
    height: 40px;
    margin: 1px;
    border: 1px solid lightgray;

    /* Text */
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enter-key-tile {
    width: 80px;
    height: 40px;
    margin: 1px;
    border: 1px solid lightgray;

    /* Text */
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}



@media (max-width: 600px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 10px;
        box-sizing: border-box;
    }

    .container {
        width: calc(100% - 10px);
        max-width: 420px;
        padding-left: 0px;
	padding-right: 0px;
	padding-top: 15px;
	padding-bottom: 15px;
    }

    hr {
        width: 100%;
    }

    #title {
        font-size: 28px;
        text-align: center;
    }

    #board {
        width: 100%;
        max-width: 325px;
        height: auto;
        justify-content: center;
    }

    .tile {
        width: 52px;
        height: 52px;
        font-size: 30px;
        margin: 2px;
    }


    .key-tile {
        width: 30px;
        height: 38px;
        font-size: 16px;
    }

    .enter-key-tile {
        width: 62px;
        height: 38px;
        font-size: 16px;
    }
}


@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .key-tile {
        width: 37px;
        height: 44px;
        font-size: 22px;
    }

    .enter-key-tile {
        width: 80px;
        height: 44px;
        font-size: 22px;
    }
}

#restart-btn {
    display: none;
    margin-top: 15px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(120deg, #062395 0%, #0da085 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.35);
}

#restart-btn:active {
    transform: translateY(0);
}

#version {
    position: absolute;
    top: 12px;
    right: 15px;
    color: #ccc;
    font-size: 10px;
}

#Backspace {
    font-size: 34px;
}

