* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    padding: 0.25rem;
    height: 1200px;
    overflow: hidden;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.input-section {
    background-color: white;
    padding: 0.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.25rem;
}

label {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: bold;
    font-size: 0.7rem;
}

input {
    width: 100%;
    padding: 0.15rem;
    margin-bottom: 0.15rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.7rem;
}

button {
    background-color: #3498db;
    color: white;
    padding: 0.15rem 0.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: background-color 0.3s;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 0.5px;
    background-color: white;
    padding: 0.15rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 100%;
    overflow: auto;
    flex: 1;
    min-height: 0;
}

.week {
    aspect-ratio: 1;
    background-color: #e0e0e0;
    border-radius: 0.5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    position: relative;
    border: 0.5px solid #ddd;
    min-width: 0;
}

.week.past {
    background-color: #2ecc71;
    color: white;
}

.week.current {
    background-color: #f8f9fa;
    border: 1px solid #e74c3c;
}

.week.future {
    background-color: #f8f9fa;
}

.event-marker {
    position: relative;
    background-color: #f8f9fa !important;
}

.event-marker::after {
    content: attr(data-event);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    white-space: pre-line;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.event-marker:hover::after {
    opacity: 1;
}

.event-marker.german {
    border: 1px solid #e74c3c;
}

.event-marker.world {
    border: 1px solid #3498db;
}

.event-marker.disaster {
    border: 1px solid #f39c12;
}

.event-marker.science {
    border: 1px solid #2ecc71;
}

.event-marker.invention {
    border: 1px solid #9b59b6;
}

.events-section {
    margin: 0.15rem 0;
    padding: 0.15rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.events-section h3 {
    margin-bottom: 0.15rem;
    color: #2c3e50;
    font-size: 0.8rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.15rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.15rem;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 0.15rem;
    margin-bottom: 0;
}

.checkbox-container label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.7rem;
} 