/* Portrait Styles */
@media (orientation: portrait) {



/* Config Modal */
#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: 60%;
    border-radius: 10px;
    text-align: center;
}

#config-modal input[type="number"] {
    width: 80px;
    padding: 5px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


#results, #final-results {
    margin-bottom: 5px;
    font-weight: bold;
}



/* Final Results Popup */
#final-results-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    width: 96%;
    /* max-width: 900px; */
    height: 90%;
    max-height: 700px;
    text-align: center;
}

#final-results-popup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("fireworks.gif");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

#final-results-popup h2 {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 10px;
    margin-top: 90px;
}

#final-results-popup p {
    font-size: 4.5em;
    font-weight: bold;
    margin-top: 100px;
    margin-bottom: 20px;
    text-align: center;
    word-break: break-word;
}

/* Video Container */
.video-container {
    width: 100vw;
    height: 10px;
    overflow: hidden;
    position: fixed;
    bottom: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}
    
}


/* Heartbeat Animation */
@keyframes heartbeat {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Portrait styles for screens larger than 768px and up to 1200px */
@media (orientation: portrait) and (min-width: 900px) and (max-width: 1200px) {

body {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
    font-family: sans-serif;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    background-color: #f0f0f0;
    overflow: hidden;
}


.logo-group {
    position: absolute;
    top: 20px;
    /*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 {
    font-size: 2.5em;
    position: fixed;
    top: 10%;
    left: 43%;
    transform: translateX(-40%);
    color: #007bff;
    z-index: 1000;
    margin: 0;
}

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 {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 300px;
    padding-top: 300px;
    /* width: 100px; */
}

/* Number Blocks */
#number-blocks {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 90%;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
}

.number-block {
    width: 30%;
    height: 300px;
    background-color: #0b5229;
    color: #feea31;
    font-size: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 70px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

/* Countdown and Results */
#get-ready, #countdown, #shuffle-countdown {
    font-size: 1.5em;
    margin-bottom: 0px;
    color: #ff6c00;
    position: relative;
    bottom: 0px;
}

#next-button, #final-result-button {
    background-color: #ff9800;
}

/* Countdown Modal */
#countdown-modal {
    display: none;
    position: relative;
    z-index: 1000;
    left: 0;
    top: 20px;
    width: 360px;
    height: 20%;
    border-radius: 10px;
    overflow: visible;
}

.modal-content {
     font-size: 2em;
    background-color: #fefefe;
    margin: 2% auto;
    padding: 4px;
    border: 0px solid #888;
    width: 300px;
    border-radius: 140px;
    text-align: center;
    animation: heartbeat 1s infinite;
}

.close {
    float: right;
    font-size: 10px;
    font-weight: bold;
    opacity: 0;
}

#get-ready-countdown {
    font-size: 2em;
    color: #ff6c00;
    position: relative;
    bottom: 0px;
    
}
}


    /* Portrait styles for screens smaller than 571px */
    @media (max-width: 571px) {
body {
    font-family: sans-serif;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    background-color: #f0f0f0;
    overflow: hidden;
}

h1 {
    font-size: 3.5em;
    position: fixed;
    top: 10px;
    left: 43%;
    transform: translateX(-40%);
    color: #007bff;
    z-index: 1000;
    margin: 0;
}

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 {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 150px;
    padding-top: 150px;
}

/* Number Blocks */
#number-blocks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 80%;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
}

.number-block {
    width: 30%;
    height: 140px;
    background-color: #0b5229;
    color: #feea31;
    font-size: 5em;
    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 {
       font-size: 2em;
    margin-bottom: 5px;
    color: #ff6c00;
    position: relative;
    bottom: -30px;
}

#next-button, #final-result-button {
    background-color: #ff9800;
}

/* Countdown Modal */
#countdown-modal {
    display: none;
    position: relative;
    z-index: 1000;
    left: 0;
    top: 20px;
    width: 360px;
    height: 20%;
    border-radius: 10px;
    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 {
    float: right;
    font-size: 10px;
    font-weight: bold;
    opacity: 0;
}

#get-ready-countdown {
    font-size: 2em;
    color: #ff6c00;
    position: relative;
    bottom: 0px;
    
}

}
