*, *::before, *::after {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 20px;
    background-image: url('image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
}

h1 {
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 2em;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
}

.door {
    background-color: transparent;
    color: white;
    border: 1px solid black;
    font-size: 1em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px; /* Minimum højde for små bokse */
    cursor: pointer;
    position: relative;
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 10px;
    overflow: hidden; /* Forhindrer tekst, der stikker ud */
    word-wrap: break-word; /* Gør teksten fleksibel */
}

.door:hover {
    background-color: #c62828;
    transform: scale(1.05);
}

.door.open {
    background-color: #ffffff;
    color: #000;
    cursor: default;
    transform: none;
}

.door.locked {
    background-color: transparent;
    color: white;
    cursor: not-allowed;
}

.door span {
    position: absolute;
    font-size: 24px;
}

.door .message {
    display: none;
    text-align: center;
    font-size: 0.9em;
    color: #000;
    line-height: 1.3;
    padding: 10px;
}

.door.open .message {
    display: block;
    white-space: normal; /* Tillad linjeskift */
}

.door.open span {
    top: 5px;
    right: 5px;
    font-size: 0.8em; /* Mindre tekststørrelse */
    color: #333; /* Diskret mørk farve */
    background: #ffffff; /* Lys baggrund */
    padding: 2px 5px;
    border-radius: 3px;
}


/* Responsiv design til mindre skærme */
@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .door {
        min-height: 100px; /* Tilpas højde for mindre skærme */
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .door {
        min-height: 90px; /* Yderligere justering for små skærme */
        font-size: 0.8em;
    }
}