body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-attachment: fixed;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.left-aligned-title {
    text-align: left;
    margin: 0;
    padding-left: 1%; /* Adjust as needed for spacing from the left edge */
    /* Add any other specific styling you want for this title */
}


.header {
    display: flex;
    justify-content: flex-start; /* Align items to the start (left) */
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5% 1%;
}

.header h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    flex-grow: 0; /* Prevent the title from growing */
}

.header-nav {
    display: flex;
    align-items: center;
    /* Remove padding-left if you want the links to be closer to the header text */
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-family: 'Playfair Display', serif;
    padding: 20px 10px; /* Control spacing around the links */
}

.header-nav .divider {
    color: #fff;
    padding: 0 5px;
}

.header-nav a:hover {
    background-color: #ddd;
    color: black;
}

.header-image {
    height: 62px;
    /* Ensure the image stays on the right */
    margin-left: auto;
}


.footer {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    bottom: 0;
    width: 100%;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.white-link, .footer a {
    color: white;
    text-decoration: none;
}

.white-link:hover,
.footer a:hover {
    color: white;
    text-decoration: none;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px;
    box-sizing: border-box;
    height: 100vh;
    margin: 0;
}

.editable-container {
background: rgba(0, 0, 0, 0.7); 
 /*   background: rgba(226, 232, 253, .8); */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    width: 68%;
    margin-top: 15px; 
    margin-bottom: 5px;
    margin-left: 10px;
    height: 200px; /* or any other fixed height */
    overflow-y: auto; 
}

.editable-container-2 {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    width: 68%;
    margin-top: 15px; 
    margin-bottom: 5px;
    margin-left: 10px;
    height: 500px; /* or any other fixed height */
    overflow-y: auto; 
}

#editableText {
    width: 100%;
    font-size: 20pt;
    font-family: 'Georgia', serif;
    overflow-y: auto;
    background: transparent;
    border: none;
    padding: 1px;
    color: white;
}

/** Below is the bottom field**/
#editableText2 {
    width: 100%;
    font-size: 28pt;
    font-family: 'Georgia', serif;
    overflow-y: auto;
    background: transparent;
    border: none;
    padding: 1px;
    color: white;

}


#fullScreenContainer * {
    position: fixed;
    top: 2;
    left: 2;
    width: 90%;
    height: 90%;
    background-color: #6495ed;
    color: black;
    overflow: auto;
    z-index: 1000; /* High z-index to be above other content */
    padding: 40px;
    box-sizing: border-box;
    display: none; /* Initially hidden */
    font-family: 'Georgia', serif; /* Setting the font family */
    font-size: 60px;
}


#closeFullscreenBtn {
 position: relative; /* Add this line */
    top: 50px;
    right: 50px;
    padding: 5px 10px;
    background-color: #f44336; /* Red background color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#closeFullscreenBtn:hover {
    background-color: #d32f2f; /* Darker shade for hover effect */
}


#saveContainer2 {
    display: flex;
    justify-content: flex-end; /* Aligns child elements to the right */
}

#saveContainer {
    display: flex;
    justify-content: flex-end; /* Aligns child elements to the right */
}

#saveContainer button, #saveContainer2 button {
    padding: 1px 2px; /* Reduced padding */
    font-size: 0.2em; /* Reduced font size */
    background-color: #d3d3d3;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;

}

#saveContainer button:hover, #saveContainer2 button:hover {
    background-color: #b0b0b0;
}

#passwordPopup {
    position: fixed;
    top: 11%;
    left: 12%;
    transform: translateX(-50%);
    display: none;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Add any other styles that you have not specified to me. */

/* Responsive design adjustments */
@media screen and (max-width: 768px) {
    .links-vertical-container {
        position: static;
        width: 100%;
        order: -1;
        margin-bottom: 10px;
    }

    .editable-container, .editable-container-2 {
        width: 90%;
        margin-bottom: 5px;
    }
}

.close-btn2 {
    position: absolute;
    color: black;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.bigcal-container {
    background: white; /* Darker background for better visibility */
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 8px white;
    position: fixed; /* Changed to fixed for centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the container */
    width: 70%; /* Adjust based on preference */
    max-height: 90%; /* Limit height */
    display: none; /* Hide by default */
    flex-wrap: wrap; /* This should be set to allow flex items to wrap */
    overflow-y: auto; /* Make it scrollable */
    padding: 5px;
    border-radius: 5px;
    align-items: flex-start;
}

.bigcal-container iframe {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    /* If you want to maintain a specific aspect ratio */
    aspect-ratio: 16 / 9;
}

.links-container {
    background: rgba(0, 0, 0, 0.8); /* Darker background for better visibility */
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: fixed; /* Changed to fixed for centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the container */
    width: 60%; /* Adjust based on preference */
    max-height: 80%; /* Limit height */
    display: none; /* Hide by default */
    flex-wrap: wrap; /* This should be set to allow flex items to wrap */
    overflow-y: auto; /* Make it scrollable */
    padding: 20px;
    border-radius: 8px;
    align-items: flex-start;
}

.links-container a {
    display: inline-block; /* Use inline-block for natural width */
    color: #fff;
    text-decoration: none;
    line-height: 1.5; /* Or any value that looks good with your font-size */
    margin: 2px; /* Adjusted for uniform spacing */
    padding: 2px 5px; /* Minimal padding around text */
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 12px; /* Adjust based on your design */
    flex-wrap: wrap; /* This should be set to allow flex items to wrap */

}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.cal-container iframe {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    /* If you want to maintain a specific aspect ratio */
    aspect-ratio: 16 / 9;
}


.cal-container {
    position: absolute;
    right: 5px;
    top: 15%;
    margin: 0px;
    height: 42vh; /* Adjust height based on the viewport height */
    width: 27vw; /* Adjust width based on the viewport width */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    box-shadow: 0 4px 8px rgba(0,0,0,0);
    border-radius: 8px;
    overflow: hidden; /* Keeps the iframe corners within the border-radius */
}

/* Adjustments for tablets */
@media (max-width: 768px) {
    .cal-container {
        width: 90vw; /* More width on smaller screens */
        height: 50vh; /* Adjust height as needed */
        top: 20%; /* Adjust top positioning */
    }
}

/* Adjustments for mobile phones */
@media (max-width: 480px) {
    .cal-container {
        width: 95vw; /* Use almost full width on very small screens */
        height: 40vh; /* Adjust height as needed */
        top: 25%; /* Adjust top positioning */
    }
}

.cal-container2 iframe {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    /* If you want to maintain a specific aspect ratio */
    aspect-ratio: 16 / 9;
}    
.cal-container2 {
    position: absolute;
    right: 5px;
    top: 60%;
    margin: 5px;
    height: 42vh; /* Adjust height based on the viewport height */
    width: 27vw; /* Adjust width based on the viewport width */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden; /* Keeps the iframe corners within the border-radius */
}

/* Adjustments for tablets */
@media (max-width: 768px) {
    .cal-container {
        width: 90vw; /* More width on smaller screens */
        height: 50vh; /* Adjust height as needed */
        top: 20%; /* Adjust top positioning */
    }
}

/* Adjustments for mobile phones */
@media (max-width: 480px) {
    .cal-container {
        width: 95vw; /* Use almost full width on very small screens */
        height: 40vh; /* Adjust height as needed */
        top: 25%; /* Adjust top positioning */
    }
}

.countdown-container {
    position: absolute;
    right: 5%;
    bottom: 40%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-family: "Courier New", Courier, monospace;
    text-align: center;
    width: 40%;
}

.countdown-input-group {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.countdown-input-group input {
    width: 40px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    margin: 0 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.countdown-button {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid #ccc;
    padding: 3px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

#countdownDisplay {
    font-size: 400%;
    font-weight: bold;
    color: #FFF;
}

@keyframes blink {
    0% { background-color: rgba(0, 0, 0, 0.6); }
    50% { background-color: red; }
    100% { background-color: rgba(0, 0, 0, 0.6); }
}

.flash-red {
    animation: blink 1s linear infinite;
}



/* Mobile responsiveness Jan 31, 2024*/
@media only screen and (max-width: 768px) {
    .header, .main-container, .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

.links-container, .bigcal-container {
        display: none;
    }
    .cal-container iframe, .cal-container2 iframe {
        width: 90%; /* Adjust the width of the iframes */
        height: auto; /* Adjust the height automatically */
    }

    .editable-container, .editable-container-2 {
        width: 90%; /* Adjust the width of the editable containers */
    }

    .header-nav a, .header-nav .divider {
        display: block; /* Stack the navigation links */
        margin-bottom: 5px; /* Add some space between the links */
    }

    .header-image {
        display: none;
    }
    }
}
