* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-image: url(./Background.png);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1em;
}

h1 {
    color: #ffffff;
    font-size: 25px;
    text-shadow: 0 0 10px #ffffff;
}

.container {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    width: 100%;
    max-width: 500px;
}

.score-container {
    color: #ffffff;
    padding: 0.5em 1.5em;
    background: rgba(18, 21, 36, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#score {
    font-weight: 600;
    font-size: 1.5em;
    text-shadow: 0 0 10px #ff9900;
}

#timer {
    color: #ffffff; /* Keeping the text color white */
    font-weight: 600;
    font-size: 1.2em;
    text-shadow: 0 0 10px #000033; /* Dark glow effect */
}


.grid {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #121524;
    border: 5px solid #2b3a62;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    border-radius: 1em;
    padding: 5px;
    position: relative;
}

.box {
    width: 100%;
    aspect-ratio: 1/1;
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5em;
    transition: transform 0.2s ease-in-out;
    color: #f0f0f0;
}

.box-2 { background-color: #1a233b; }
.box-4 { background-color: #2e3a5f; }
.box-8 { background-color: #0077ff; box-shadow: 0 0 15px #0077ff; }
.box-16 { background-color: #0088ff; box-shadow: 0 0 15px #0088ff; }
.box-32 { background-color: #0099ff; box-shadow: 0 0 15px #0099ff; }
.box-64 { background-color: #00aaff; box-shadow: 0 0 15px #00aaff; }
.box-128 { background-color: #4249a8; box-shadow: 0 0 15px #4249a8; }
.box-256 { background-color: #555bc0; box-shadow: 0 0 15px #555bc0; }
.box-512 { background-color: #666ed1; box-shadow: 0 0 15px #666ed1; }
.box-1024 { background-color: #7d84e6; box-shadow: 0 0 15px #7d84e6; }
.box-2048 { background-color: #8f96ff; box-shadow: 0 0 15px #8f96ff; }

.empty-box {
    background-color: transparent;
    border: 2px dashed #44598c;
}

.cover-screen {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(./Background.png);
    background-size: cover;
    background-position: center;
}

#start-button {
    background-color: #0b0a09;
    padding: 1em 2em;
    border: none;
    border-radius: 0.5em;
    font-size: 1em;
    letter-spacing: 0.2px;
    color: #ffffff;
}

.hide {
    display: none;
}

#over-text {
    color: #ff9900;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

#result {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 10px;
}

@media(max-width: 500px) {
    h1 {
        font-size: 20px;
    }

    .grid {
        max-width: 90vw;
        height: auto;
    }

    .box {
        font-size: 1.5em;
    }
}
html, body {
    height: 100%;
    overflow: hidden; /* This will prevent the page from scrolling */
}