body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
}

.main-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
}

.sidebar h2 {
    color: #4CAF50;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

.sidebar a {
    color: #ddd;
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid #444;
    transition: background 0.3s;
}

.sidebar a:hover {
    background-color: #444;
    color: white;
}

/* Mobile Toggle Button (hidden by default) */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

.content-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Ensure full width on mobile */
}

h1 {
    color: #333;
    margin-top: 0;
}

.calendar {
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

.header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.day-name {
    background-color: #ddd;
    padding: 10px 0;
    font-weight: bold;
}

.day {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.day:nth-child(7n) {
    border-right: none;
}

.day:hover {
    background-color: #f9f9f9;
}

.empty {
    background-color: #fafafa;
}

.weekend {
    color: red;
}

.navigation {
    margin-bottom: 20px;
}

.navigation a {
    margin: 0 10px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
}

/* Specific styles for index page month list */
.month-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.month-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.month-card:hover {
    transform: translateY(-5px);
}

.month-card a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    width: 100%;
    height: 100%;
}

/* Ad Block Styles */
.ad-block {
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

.ad-block img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

.ad-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ad-block.placeholder {
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    padding: 40px;
}

.ad-content {
    color: #aaa;
    font-weight: bold;
    font-size: 20px;
}

/* Media Queries for Responsiveness */

/* Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        padding-top: 60px; /* Space for close button */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center; /* Center items */
    }

    .sidebar.active {
        display: flex !important;
    }
    
    .sidebar h2 {
        width: 100%;
        margin-bottom: 20px;
        font-size: 24px;
    }

    .sidebar a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 20px;
        font-size: 18px;
        border: none;
        border-bottom: 1px solid #444;
    }

    .content-area {
        padding: 10px;
        margin-top: 50px; /* Space for menu button */
    }

    .header {
        font-size: 20px;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .header a {
        font-size: 16px;
    }

    .day {
        padding: 15px 0;
    }
    
    .ad-block img {
        max-height: 150px;
    }
}

/* Mobile Specific (max-width: 480px) */
@media (max-width: 480px) {
    .header {
        font-size: 18px;
    }

    .days-grid {
        font-size: 12px;
    }

    .day {
        padding: 10px 0;
    }

    .day-name {
        padding: 5px 0;
        font-size: 12px;
    }
    
    .month-list {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img, .gallery-item video {
        width: 100%;
    }
}
