/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #000;
    color: #fff;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh; /* Fill the viewport height */
    text-align: center;
    padding: 20px;
}

h1, h2 {
    color: #fff;
    margin: 10px 0;
}

.no-games-message {
    color: rgba(255, 0, 0, 0.6); /* Soft transparent red */
    font-size: 2em;
    margin: 10px 0;
}

#game-details {
    margin-top: 20px;
    font-size: 1.2em;
    color: #ddd;
}

#game-extra-details {
    display: none;
}

.flipdown {
    display: inline-block;
    margin: 20px auto;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
}

#games-table {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
    border-collapse: collapse;
}

#games-table th, #games-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#games-table th {
    cursor: pointer;
}

@media (min-width: 768px) {
    .container {
        flex-direction: column; /* For landscape view, use column */
        justify-content: center;
        align-items: center;
    }

    h1, h2 {
        font-size: 2em; /* Increase font size for better visibility */
    }

    #game-details {
        margin-top: 40px;
        font-size: 1.5em; /* Increase font size for better visibility */
    }
}

@media (min-width: 1200px) {
    .container {
        flex-direction: column; /* Ensure elements are stacked vertically */
        justify-content: center; /* Center elements vertically */
        align-items: center; /* Center elements horizontally */
        max-width: 1200px;
        width: 100%; /* Ensure it uses the full width */
        height: auto; /* Allow height to be flexible */
        margin: 0 auto;
        padding: 40px;
    }

    .flipdown {
        margin: 20px 0; /* Add margin to space out elements */
    }

    #game-details {
        margin-top: 20px;
        text-align: center; /* Center text */
    }

    h1, h2 {
        font-size: 2.5em; /* Adjust font size for better visibility */
        margin: 10px 0;
    }

    #game-details {
        font-size: 1.8em; /* Ensure font size is suitable for desktop */
    }
}

/* Message blinker */
#end-message {
    font-size: 3em; /* Adjust the font size as needed */
}

.blinking-text {
    color: red;
    animation: blink 1s linear infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.warning-message {
    color: red;
    font-size: 1.5em;
    font-weight: bold;
    background-color: #ffe6e6;
    border: 2px solid red;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
    animation: blink 1s linear infinite;
}
