/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Header Styling */
h1 {
    margin-top: 20px;
    color: #333;
}

/* Button Styling */
button {
    padding: 20px 40px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    margin-top: 20px;
    width: 80%; /* Make the button occupy 80% of screen width */
    max-width: 400px; /* Maximum width of the button */
    transition: background-color 0.3s ease;
}

/* Button Hover & Active States */
button:active {
    background-color: #2980b9;
}

/* Links styled as buttons */
.game-link {
    display: block;
    margin: 20px;
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    transition: background-color 0.3s ease;
}

/* Links hover effect */
.game-link:hover {
    background-color: #2980b9;
}

/* Make sure everything is readable on small screens */
#cookieCount, #message, #riddleText {
    font-size: 20px;
    color: #333;
    margin-top: 20px;
}

/* Make the input field larger on mobile */
input[type="text"] {
    padding: 12px;
    font-size: 18px;
    width: 80%; /* Make input field responsive */
    max-width: 400px;
    border-radius: 10px;
}

/* Mobile Friendly Layout: Stack elements vertically on smaller screens */
@media (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    button, .game-link {
        font-size: 18px;
        width: 90%; /* Make buttons and links occupy more space on mobile */
        padding: 15px;
    }

    #cookieCount, #message, #riddleText {
        font-size: 18px; /* Smaller text for mobile screens */
    }

    input[type="text"] {
        font-size: 16px;
        padding: 10px;
    }
}

/* Even smaller screens (phones in portrait mode) */
@media (max-width: 400px) {
    h1 {
        font-size: 20px;
    }

    button, .game-link {
        font-size: 16px;
        padding: 12px;
    }

    #cookieCount, #message, #riddleText {
        font-size: 16px;
    }

    input[type="text"] {
        font-size: 14px;
        padding: 8px;
    }
}
