/* Base styles */
body, html {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: 'Major Mono Display', monospace;
    text-transform: lowercase;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Carousel Styles */
#carousel {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 20;
    overflow: hidden;
    /* Add a black background to fill any empty space */
    background-color: black;
}

.image-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Change from 'cover' to 'contain' */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* Add black background behind images */
    background-color: #e7191f;
}

.current, .next {
    opacity: 1;
}

/* Adjust overlay to match new carousel size */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 25;
    pointer-events: none;
}

/* Background color classes */
.image-layer.orange-bg {
    background-color: #e7191f; /* Red */
}

.image-layer.red-bg {
    background-color: #ffa629; /* Orange */
}

/* Navbar Container */
.navbar-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.navbar-background {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    z-index: -1;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

/* Transparent Navigation Bar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px; /* Slightly reduced padding */
    background-color: transparent;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.navbar a:hover {
    opacity: 0.7;
}

/* Entry Screen Styles */
#entry-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.entry-content {
    text-align: center;
}

.entry-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.entry-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.entry-buttons button {
    background-color: black;
    color: white;
    border: 1px solid white;
    padding: 10px 30px;
    font-family: 'Major Mono Display', monospace;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.entry-buttons button:hover {
    background-color: white;
    color: black;
}

/* Password Screen Styles */
#password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-content {
    text-align: center;
}

.password-content h2 {
    margin-bottom: 1rem;
}

.password-content input {
    padding: 10px;
    margin-bottom: 1rem;
    font-family: 'Major Mono Display', monospace;
    background-color: black;
    color: white;
    border: 1px solid white;
}

.password-content button {
    background-color: black;
    color: white;
    border: 1px solid white;
    padding: 10px 30px;
    font-family: 'Major Mono Display', monospace;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-content button:hover {
    background-color: white;
    color: black;
}

#password-error {
    color: red;
    margin-top: 1rem;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-content p {
    margin-bottom: 1rem;
}

.loading-bar-container {
    width: 300px;
    height: 20px;
    border: 1px solid white;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    width: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.loading-percentage {
    margin-top: 0.5rem;
}

/* Pop-up Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid black;
    z-index: 1000;
    text-align: center;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.popup-calendar {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid black;
    z-index: 1000;
    text-align: center;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding-bottom: 100px;
}

.popup-content {
    max-height: 70vh;
    overflow-y: auto;
}

.popup p {
    margin: 10px 0;
}

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

/* Close Button Styles */
.close-about-btn {
    margin-top: 20px;
    cursor: pointer;
    color: black;
    background-color: white;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
    font-family: 'Major Mono Display', monospace;
    border: 1px solid black;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.close-about-btn:hover {
    background-color: black;
    color: white;
}

/* Donate Button Styles */
.donate-button {
    margin-top: 20px;
    cursor: pointer;
    color: black;
    background-color: white;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
    font-family: 'Major Mono Display', monospace;
    border: 1px solid black;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.donate-button:hover {
    background-color: black;
    color: white;
}

/* Email Input and Submit Button */
.email-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.email-input {
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    background-color: white;
    color: black;
    font-family: 'Major Mono Display', monospace;
    width: 200px;
}

.submit-btn {
    padding: 10px 15px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Major Mono Display', monospace;
}

/* Contact Icons and Phone Number */
.contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-line i {
    font-size: 24px;
}

/* About Description Font */
.about-description {
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    font-weight: 300;
    line-height: 1.6;
}

/* Calendar Styles */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    margin-bottom: 60px;
    padding-bottom: 40px;
}

.calendar div {
    padding: 15px;
    border: 1px solid #444;
    text-align: center;
    cursor: pointer;
    position: relative;
    background-color: #222;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 8px;
}

.calendar container{
   cursor: pointer;
   border-radius: 2px;
   transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar container:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.calendar div:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.calendar .event {
    background-color: #444;
    color: white;
    font-size: 12px;
    padding: 6px;
    border-radius: 4px;
    margin-top: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar .event:hover {
    background-color: #555;
}

/* Event View Styles */
.event-view {
    display: none;
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 20px;
}

.event-view .event-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 14px;
    background-color: #222;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.event-view .event-item:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.event-view .event-full-details {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #333;
    border-radius: 6px;
    color: white;
}

.event-fuller-details {
    display: hidden;
    margin-top: 10px;
    padding: 10px;
    background-color: #333;
    border-radius: 6px;
    color: white;
}

.event-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.event-summary i {
    margin-left: 10px;
    font-size: 14px;
    color: #ffcc00;
}

/* Toggle Button Styles */
.toggle-view {
    margin-top: 20px;
    cursor: pointer;
    color: black;
    background-color: white;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
    font-family: 'Major Mono Display', monospace;
    border: 1px solid black;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-view:hover {
    background-color: black;
    color: white;
}

/* Month Navigation Styles */
.month-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.month-navigation button {
    background-color: black;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Major Mono Display', monospace;
    transition: background-color 0.3s ease;
}

.month-navigation button:hover {
    background-color: #333;
}

/* Calendar Event Styles */
.calendar-event {
    margin-bottom: 20px;
    font-size: 12px;
    background-color: #222;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar-event:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Calendar Event Summary Styles */
.calendar-event-summary {
    cursor: pointer;
}

.calendar-event-summary i {
    font-size: 12px;
    color: #ffcc00;
}

/* Calendar Event Details Styles */
.calendar-event-details {
    display: none;
    margin-top: 10px;
    background-color: #333;
    color: white;
}

/* Expanded State */
.calendar-event.expanded .calendar-event-details {
    display: block;
}

/* Footer */
.footer {
    display: flex;
    gap: 20px;
    font-size: 14px;
    background-color: transparent;
    padding: 8px 15px;
    z-index: 100;
}

.footer a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.7;
}

/* Footer Container */
.footer-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.footer-background {
    position: absolute;
    top: -8px;
    left: -10px;
    right: -10px;
    bottom: -8px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    z-index: -1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Projects Popup Styles */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.project-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.project-item h3 {
    margin-top: 0;
    color: #e7191f;
}

.project-item .about-description {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .popup {
        width: 90%;
    }
    
    .popup-calendar {
        width: 90%;
    }

    .about-popup {
        width: 80%;
        overflow-y: auto;
    }

    .calendar-popup {
        width: 90%;
    }
    
    .project-item {
        padding: 10px;
    }

    .event-view {
        width: 90%;
    }

    .close-btn {
        top: 5px;
        right: 5px;
        font-size: 18px;
    }
    
    .calendar {
        grid-template-columns: repeat(1, 1fr);
    }

    .calendar div:empty {
        display: none;
    }
    
    calendar-event-summary {
        max-width: 100px;
    }

    .footer {
        bottom: 10px;
        font-size: 12px;
    }
}
