/* Base Styles */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background-color: black;
    font-family: 'Mukta Malar SemiBold';
}

/* Video Background Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* Content Containers */
#defaultview,
#slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 1;
}

#defaultview {
    flex-direction: column;
}

/* Slide Container */
#slide {
    display: none;
    box-sizing: border-box;
    overflow: hidden;
    padding: 20px;
}

#slide > .verse-text {
    margin: 20px;
}

#slide > .verse-label {
    margin: unset;
}

/* Black Screen */
#blackscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 2;
}

/* Controls */
#fullscreenbtn {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 7px 7px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#fullscreenbtn > i {
    font-size:x-large;
}

#fullscreenbtn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hover area that will show the button */
#fullscreen-hover-area {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 50px;
    z-index: 999;
}

/* QR Code Modal */
#qr-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #333;
    color: white;
    padding: 20px;
    border: 1px solid #888;
    width: fit-content;
    text-align: center;
    border-radius: 10px;
}

.close {
    color: white;
    float: right;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
}

.close:hover {
    color: red;
}

#qr-code-container {
    margin: 20px auto 0;
}

/* Media Elements */
#presentation-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1;
}

#presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#presentation-video {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1;
}

/* Quiz Screen */
#presentation-quiz-screen {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    z-index: 10;
}

#presentation-quiz-screen h1 {
    color: #333;
    margin-bottom: 20px;
}

#user-name {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#quiz-options-display {
    margin: 20px 0;
    display: grid;
    gap: 10px;
}

.quiz-option-button {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option-button:hover {
    border-color: #007bff;
}

#submit-answer {
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#submit-answer:hover {
    background: #0056b3;
}

/* Announcement Display */
#announcementDisplay {
    display: none;
    font-weight: bold;
    white-space: pre-wrap;
    padding: 20px;
    z-index: 100;
}

/* Logo */
#logo {
    width: 8%;
    position: fixed;
    bottom: 33px;
    right: 50px;
    z-index: 1001;
}

/* Utility Classes */
.disabled {
    background-color: #e0e0e0 !important;
    color: #a0a0a0 !important;
    cursor: not-allowed !important;
    border-color: #e0e0e0 !important;
}

/* Quick Presentation Overlay Styles */
#quick-presentation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.quick-presentation-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#quick-digital-clock {
    font-size: xx-large;
    align-content: center;
    text-align: center;
    font-family: system-ui;
}

#quick-scrolling-text {
    white-space: nowrap;
    font-size: xxx-large;
    align-content: center;
    text-align: center;
}

#youtube-player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000; /* Higher than other elements */
    display: none;
}

#youtube-player {
    width: 100%;
    height: 100%;
}

/* Ensure iframe fills container */
#youtube-player > iframe {
    width: 100%;
    height: 100%;
    border: none;
}


#quick-presentation-overlay {
    position: fixed;
    color: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 999;
}

#quick-presentation-overlay > div > h1 {
    margin-bottom: 0;
}

#quick-calendar {
    width: -webkit-fill-available;
    color: white;
    text-align: center;
    padding: 30px;
}

#quick-calendar h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#quick-calendar table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

#quick-calendar th, 
#quick-calendar td {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: xx-large;
    height: 60px;
}

#quick-calendar th {
    background-color: rgb(26 255 255 / 61%);
}

#quick-calendar td.current-day {
    background-color: #19aed1;
    color: white;
    font-weight: bold;
    border-radius: 50%;
}

#quick-calendar .calendar-nav-btn {
    background-color: #19aed1;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin: 20px 10px 0;
    transition: background-color 0.3s;
}

#quick-calendar .calendar-nav-btn:hover {
    background-color: #1488a7;
}

 /* Add this new keyframe animation for a subtle pulse effect */
 @keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: rgba(17, 24, 39, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease-in-out;
}

.overlay-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.icon-container {
    font-size: 5vw;
    color: #4ade80;
    /* A nice green color */
    animation: pulse 2s infinite;
    margin: 10px;
}

.session-id-box {
    font-size: 2vw;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 10px 0;
    letter-spacing: 3px;
}

.click-instruction {
    font-size: 1.5vw;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 20px;
}

/* --- View Switcher Menu --- */
#view-switcher {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 1000;
    display: flex;
    transition: opacity 0.3s ease;
}

#view-switcher a {
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-family: 'Mukta Malar', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

/* Style for the currently active link */
#view-switcher a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* Class to hide the menu */
#view-switcher.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- RESPONSIVE STYLES --- */
@media screen and (max-width: 1024px) {
    #slide { font-size: 6vw; }
    #announcementDisplay { font-size: 5.5vw; }
    #logo { width: 12%; }
    .click-instruction {
        font-size: 3.5vw;
        font-weight: 600;
        opacity: 0.7;
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    #slide { font-size: 26px; padding: 24px; line-height: 36px; background-image: none; }
    .verse-label {
        font-size: 32px;
    }
    .video-background {
        display: none !important;
    }
    .verse-text{
        font-size: 26px;
        line-height: 36px;
        padding: 24px;
    }
    #announcementDisplay { font-size: 7vw; }
    #logo { width: 22%; bottom: 15px; right: 15px; }

    .click-instruction {
        font-size: 3.5vw;
    }

    .icon-container {
        font-size: 14vw;
    }

    .session-id-box {
        font-size: 5vw;
    }
}