
/* Ensure content fits with left nav in landscape */
@media (orientation: landscape) {
#config-modal { /* Style for the config modal */
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.config-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    border-radius: 10px;
    text-align: center;
}

#config-modal input[type="number"] {
    width: 80px;
    padding: 5px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.logo-group {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center horizontally */
}

.logo {
    margin-bottom: 5px; /* Add some space below the logo */
}

.logo-group h3, .logo-group h5 {
    margin: 0; /* Remove default margins from headings */
    text-align: center; /* Center text within headings */
}
    
h1 {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #007bff;
    font-size: 4em;
    transition: font-size 0.3s ease;
    z-index: 1000;
    margin: 0;
}

body {
    display: grid;
    place-items: center; /* Center both horizontally and vertically */
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    overflow: hidden;
    color: #333;
}
button {
    position: absolute;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Lottery Container */
#lottery-container {
    
    width: 90%;
    max-width: 900px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
#button-container { /* Style the button container if needed */
    display: flex; /* Or inline-flex */
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons */
    margin-top: 25%;
    padding-top: 100px;
}



/* Number Blocks */
#number-blocks {
    
    position: absolute;
    top: 55%; /* Position from the top */
    left: 50%; /* Position from the left */
    transform: translate(-50%, -50%); /* Center the element */
    display: flex;
    width: 80%;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
    
    
}

.number-block {
    width: 200px;
    height: 200px;
    background-color: #0b5229;
    color: #feea31;
    font-size: 6em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
/* Countdown and Results */
#get-ready, #countdown, #shuffle-countdown {
     padding-top: 0px;
    font-size: 2em;
    margin-bottom: 14px;
    color: #ff6c00;
    margin-top: 6%;
}

#results, #final-results {
    margin-bottom: 5px;
    font-weight: bold;
}

#next-button, #final-result-button {
    background-color: #ff9800;
}

/* Modal Styles */
#countdown-modal {
    display: none;
    position: relative;
    z-index: 1000;
    left: 0;
    top: 20px;
    width: 360px;
    border-radius: 10px;
    height: 20%;
    overflow: auto;
    
}

.modal-content {
    font-size:2em;
    background-color: #fefefe;
    margin: 2% auto;
    padding: 10px;
    border: 0px solid #888;
    width: 130px;
    border-radius: 60px;
    text-align: center;
    animation: heartbeat 1s infinite;
}

.close {
    color: none;
    float: right;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    opacity:0%;
}

#get-ready-countdown {
    font-size: 2em;
    color: #ff6c00;
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    #lottery-container {
        max-width: 900px;
        padding: 40px;
    }

    h1 {
        font-size: 4em;
    }

    #number-blocks {
        width: 85%;
        gap: 30px;
    }

    .number-block {
        width: 180px;
        height: 180px;
        font-size: 6em;
    }

    button {
        font-size: 1.2em;
        padding: 15px 30px;
    }
  
}
@media (max-width: 769px) {
    #lottery-container {
        max-width: 900px;
        padding: 40px;
    }

    h1 {
        font-size: 5em;
            position: fixed;
    top: 50px;
    left: 40%;
    transform: translateX(-30%);
    }

    #number-blocks {
        width: 85%;
        gap: 30px;
    }

    .number-block {
        width: 180px;
        height: 180px;
        font-size: 6em;
    }

    button {
        font-size: 1.2em;
        padding: 15px 30px;
    }
    #button-container { /* Style the button container if needed */
    display: flex; /* Or inline-flex */
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons */
    margin-top: 200px;
    padding-top: 200px;
}
}
@media (max-width: 425px) {
    #lottery-container {
        max-width: 100%px;
        padding: 40px;
    }

    h1 {
        font-size: 6em;
            position: fixed;
    top: 50px;
    left: 40%;
    transform: translateX(-30%);
    }

    #number-blocks {
        width: 95%;
        gap: 30px;
    }

    .number-block {
        width: 250px;
        height: 250px;
        font-size: 6em;
    }

    button {
        font-size: 1.2em;
        padding: 15px 30px;
    }
    #button-container { /* Style the button container if needed */
    display: flex; /* Or inline-flex */
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons */
    margin-top: 200px;
    padding-top: 200px;
}
}

/* Styles for the new popup window */

#final-results-popup {
    display: none; /* Initially hidden */
    position: fixed;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the popup */
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2000; /* Ensure it's on top */
    text-align: center; /* Center the text inside */
    /* ... (Existing styles) ... */
    width: 90%; /* 90% width */
    max-width: 900px; /* Optional: Set a maximum width */
    height: 90%; /* 90% height */
    max-height: 700px; /* Optional: Set a maximum height */
    
}
.popup-content-wrapper {
    position: relative;
    z-index: 1;
    /* ... other content wrapper styles ... */
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8); /* Example: Semi-transparent white background for text */
    backdrop-filter: blur(5px); /* Optional: Add a slight blur to the background */
}
#final-results-popup::before { /* Pseudo-element for the GIF background */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("fireworks.gif"); /* Replace with your GIF URL */
    background-size: cover; /* Or contain, depending on how you want it to fit */
    background-repeat: no-repeat;
    opacity: 0.2; /* Adjust opacity as needed */
    z-index: -1; /* Place the GIF behind the content */
}

#final-results-popup h2, #final-results-popup p {
    color: black; /* Or any other color you want for the text */
    text-shadow: 1px 1px 20px white; /* Optional: Add a text shadow for better readability */
    z-index: 2; /* Ensure text is above the background and wrapper */

}

#final-results-popup h2 {
    font-size: 4em;
    color: #007bff;
    margin-bottom: 10px;
    margin-top:90px;
    text-align: center; /* Center the heading text */

}


#final-results-popup p {
    font-size: 9em; /* Larger font size for results */
    font-weight: bold;
    margin-top:100px;
    margin-bottom: 20px;
    text-align: center; /* Center the results text */
    white-space: pre-wrap;
    word-break: break-all;
}

/* Example animation (twinkling bubbles) */
.bubble {
    position: absolute;
    background-color: rgba(255, 255, 0, 0.5); /* Yellow, semi-transparent */
    border-radius: 50%;
    animation: twinkle 2s linear infinite; /* Adjust duration */
    opacity: 0;
}

.video-container {
    width: 100vw;
    /* 100% of viewport width */
    height: 10px;
    overflow: hidden;
    /* Hide any overflow beyond the container */
    position: fixed;
    bottom: 0px;
}

.video-container video {
    width: 100%;
    /* 100% width of the container */
    height: auto;
    /* Let the height adjust to maintain aspect ratio */
    display: block;
    /* Ensure the video is displayed as a block element */
}

.modal-content {
    background-color: #fefefe;
    margin: 24% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 40%;
    border-radius: 69px;
    text-align: center;
}

#page-main {
        margin-left: 1%px;
    }
#bottom-nav ul, #bottom-nav li {
    display: inline;
    margin: 0 10px;
    padding: 0;
}
