html {
    background: linear-gradient(to bottom right, #f9f9f9 40%, #dce6ff 60%);
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;

    color: #333;
}

h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3.5rem;
    color: #1D2D6D;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 0;
    padding-bottom: 0;
    letter-spacing: 2px;

    max-width: 200px;
    margin: auto;
}

a {
    color: #333;
}

.contact-section {
    font-size: 1rem;
    color: #00000088;
    margin-top: 200px;
}

.contact-section a {
    font-size: 1rem;
    color: #00000088;
}

.undertitle {
    margin-top: -20px;
    font-size: 1rem;
    color: #00000066;
}

p {
    font-weight: 400;
}

.main-content {
    text-align: center;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 60%;
    margin: auto;
    padding-top: 50px;
    justify-content: space-around;
}


@media (max-width: 768px) {
    .child {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .child {
        flex: 1 1 100%;
    }
}


.game-link>img {
    border: 2px solid rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    width: 100%;
    opacity: 0.8;
}

.game-link>img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.timer-section {
    margin-top: 100px;
}

.instructions>#metric-name {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    color: #1D2D6D;
    text-align: center;
}

button {
    background-color: #00000011;
    border-radius: 5px;
    padding: 5px;
    font-weight: bold;
    border: 2px solid #1D2D6D;
    color: #1D2D6D;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    cursor: pointer;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    background-color: #ffffff44;
}

input[type="text"] {
    background-color: #00000011;
    border-radius: 5px;
    padding: 5px;
    font-weight: bold;
    border: 2px solid #1D2D6D;
    color: #1D2D6D;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    cursor: pointer;
}

input[type="text"]:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    background-color: #ffffff44;
}

#back-link {
    position: relative;
    padding: 5px;
    padding-left: 20px;
    padding-right: 20px;
    border-width: 0px;
    margin-left: 5%;
    margin-top: 0;
    transform: translateY(100%);
    background-color: transparent;
    font-size: 1.5rem;
}

@media (max-width: 768px) {

    /* Adjust for tablets and phones */
    #back-link {
        transform: translateY(0%);
        margin-left: 0%;
    }
}

html>* {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}