body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #74ac00 0%, #8bc34a 50%, #a5d6a7 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.container {
    background: linear-gradient(135deg, #f8fdf4 0%, #f0f9e8 50%, #e8f5dc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    box-sizing: border-box;
}

h1 {
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 2.1em;
    font-weight: 700;
    flex-shrink: 0;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 1.2em;
    flex-shrink: 0;
}

.date-section {
    margin: 15px 0;
    flex-shrink: 0;
}

.date-section h2 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-align: center;
}

.date-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.current-date {
    font-size: 2.4em;
    padding: 20px 24px;
    background: linear-gradient(135deg, #74ac00, #8bc34a);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 3;
    text-align: center;
    min-width: 0;
    line-height: 1.1;
    height: 64px;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
}

.current-date:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 172, 0, 0.4);
}

.date-help {
    color: #495057;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.pick-date-btn {
    background: linear-gradient(135deg, #74ac00, #8bc34a);
    color: white;
    border: none;
    padding: 20px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: normal;
    flex-shrink: 0;
    min-width: 120px;
    max-width: 140px;
    line-height: 1.1;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pick-date-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116, 172, 0, 0.4);
}

.date-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
}

.calendar-section {
    margin-top: 20px;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-section h3 {
    color: #2C3E50;
    margin-bottom: 12px;
    font-size: 1.2em;
}

.calendar-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.calendar-container {
    background: #e9ecef;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.year-label {
    font-size: 1.4em;
    font-weight: 700;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 12px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.month-link {
    display: block;
    padding: 8px 6px;
    background: white;
    color: #2C3E50;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.month-link:hover {
    background: #74ac00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 172, 0, 0.3);
}

.duonat-section {
    margin-top: 20px;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    flex-shrink: 0;
}

.duonat-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #74ac00, #8bc34a);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(116, 172, 0, 0.2);
    cursor: pointer;
}

.duonat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 172, 0, 0.4);
    text-decoration: none;
    color: white;
}

.duonat-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box;
}

.duonat-content {
    flex: 1;
    text-align: center;
}

.duonat-title {
    margin: 0 0 3px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: white;
}

.duonat-description {
    margin: 0;
    font-size: 1.0em;
    opacity: 0.95;
    color: white;
    font-weight: 500;
}

.footer {
    margin-top: 20px;
    color: #495057;
    font-size: 1.1em;
    line-height: 1.4;
    flex-shrink: 0;
    font-weight: 500;
}

/* Compact layout for laptop screens to prevent scrollbars */
@media (min-width: 601px) and (max-height: 800px) {
    .container {
        padding: 15px;
        max-height: calc(100vh - 30px);
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 3px;
    }

    .subtitle {
        margin-bottom: 12px;
        font-size: 1.1em;
    }

    .date-section {
        margin: 10px 0;
    }

    .date-section h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .date-buttons-container {
        margin-bottom: 8px;
        gap: 10px;
    }

    .current-date {
        font-size: 2.0em;
        padding: 16px 20px;
        height: 56px;
        font-weight: 700;
    }

    .pick-date-btn {
        font-size: 1.1em;
        padding: 16px 20px;
        min-width: 100px;
        max-width: 120px;
        height: 56px;
        font-weight: 500;
    }

    .date-help {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .calendar-section {
        margin-top: 15px;
        padding-top: 10px;
    }

    .calendar-section h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .calendar-grid {
        gap: 12px;
    }

    .calendar-container {
        padding: 12px;
    }

    .year-label {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .months-grid {
        padding: 12px;
        gap: 6px;
    }

    .month-link {
        padding: 6px 4px;
        font-size: 1em;
    }

    .duonat-section {
        margin-top: 15px;
        padding-top: 10px;
    }

    .duonat-link {
        padding: 12px;
    }

    .duonat-logo {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .duonat-title {
        font-size: 1.2em;
        margin-bottom: 2px;
    }

    .duonat-description {
        font-size: 1.0em;
    }

    .footer {
        margin-top: 15px;
        font-size: 1.1em;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    html {
        background: white !important;
        background-image: none !important;
        height: 100%;
    }

    body {
        padding: 0;
        margin: 0;
        background: white !important;
        background-image: none !important;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .container {
        padding: 12px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        /* Fill at least entire viewport, expand as needed */
        width: 100%;
        min-height: 100vh;
        max-width: none;
        background: linear-gradient(135deg, #f8fdf4 0%, #f0f9e8 50%, #e8f5dc 100%);
        position: relative;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.7em;
        margin-bottom: 2px;
        margin-top: 0;
    }

    .subtitle {
        margin-bottom: 10px;
        margin-top: 0;
        font-size: 1.1em;
    }

    .date-section {
        margin: 6px 0;
    }

    .date-section h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .date-buttons-container {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        margin-bottom: 8px;
    }

    .current-date {
        font-size: 1.4em;
        padding: 16px 20px;
        max-width: none;
        flex: 3;
        min-width: 0;
        height: 56px;
        font-weight: 700;
        line-height: 1.0;
        white-space: normal;
        word-break: break-word;
    }

    .date-help {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .pick-date-btn {
        padding: 16px 20px;
        font-size: 1.1em;
        font-weight: 500;
        min-width: auto;
        max-width: 120px;
        white-space: normal;
        flex-shrink: 0;
        height: 56px;
        text-align: center;
    }

    .calendar-section {
        margin-top: 10px;
        padding-top: 6px;
        flex-shrink: 0;
        /* Don't allow shrinking */
    }

    .calendar-section h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .calendar-grid {
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .calendar-container {
        padding: 12px;
    }

    .year-label {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .months-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 12px;
    }

    .month-link {
        padding: 8px 5px;
        font-size: 1em;
    }

    .duonat-section {
        margin-top: 8px;
        padding-top: 6px;
    }

    .duonat-link {
        padding: 12px;
        flex-direction: row;
        text-align: left;
    }

    .duonat-logo {
        width: 35px;
        height: 35px;
        margin-right: 10px;
        margin-bottom: 0;
        background: white;
        border-radius: 50%;
        padding: 3px;
        box-sizing: border-box;
    }

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

    .duonat-title {
        font-size: 1.2em;
        margin-bottom: 2px;
    }

    .duonat-description {
        font-size: 1.0em;
    }

    .footer {
        margin-top: 20px;
        padding-bottom: 80px;
        /* White space below footer for mobile browser bars */
        color: #495057;
        font-size: 1.1em;
        line-height: 1.4;
        flex-shrink: 0;
        font-weight: 500;
    }

    .mobile-spacer {
        display: none;
        /* Not needed with padding approach */
    }
}