.container {
    /* Arbitrary - makes the container half the width of the parent */
    width: 100%;
    /* This preserves a 1:2 aspect ratio */
    padding-top: 100%;
    /* This is necessary for children to have position: absolute */
    position: relative;
    /* Replace this with your SVG */
    background: url(https://www.kinder-adventskalender.com/media/images/background_2025.png) no-repeat top center;
    background-size: contain;
    background-attachment: scroll;
}

.door {
    position: absolute;
    /* Makes the top be 1/4 of the height of the container away from the container top, always */
    /* top: 25%; */
    /* Same but for left */
    /* left: 11%; */
    /* Pulls the button back half its height and half its width so it's positioned based on its center, not its top-left corner. */
    transform: translate(-50%, -50%);
    border-radius: 10px;
    border: transparent;
    height: 5%;
    width: 5%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* typography */
    font-family: 'Kalam', cursive;
    color: #000000;
    font-size: 3vw;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.door#door_1 {
    top: 47.2%;
    left: 94.3%;
}
.door#door_2 {
    top: 54.5%;
    left: 10.7%;
}
.door#door_3 {
    top: 23.9%;
    left: 71%;
}
.door#door_4 {
    top: 61.6%;
    left: 71%;
}
.door#door_5 {
    top: 10.9%;
    left: 70.5%;
}
.door#door_6 {
    top: 45%;
    left: 67.8%;
}
.door#door_7 {
    top: 5%;
    left: 11.7%;
}
.door#door_8 {
    top: 56%;
    left: 54%;
}
.door#door_9 {
    top: 25.5%;
    left: 3.2%;
}
.door#door_10 {
    top: 23%;
    left: 22%;
}
.door#door_11 {
    top: 51%;
    left: 34%;
}
.door#door_12 {
    top: 55%;
    left: 83%;
}
.door#door_13 {
    top: 17%;
    left: 4%;
}
.door#door_14 {
    top: 30%;
    left: 89%;
}
.door#door_15 {
    top: 41%;
    left: 50.6%;
}
.door#door_16 {
    top: 62.7%;
    left: 33%;
}
.door#door_17 {
    top: 14%;
    left: 38%;
}
.door#door_18 {
    top: 58.5%;
    left: 94.3%;
}
.door#door_19 {
    top: 5.7%;
    left: 60.8%;
}
.door#door_20 {
    top: 21%;
    left: 59%;
}
.door#door_21 {
    top: 40.5%;
    left: 90%;
}
.door#door_22 {
    top: 65%;
    left: 7%;
}
.door#door_23 {
    top: 4.5%;
    left: 86%;
}
.door#door_24 {
    top: 22%;
    left: 46.3%;
}

.door:hover {
    border: 2px dashed transparent;
    border-color: #385052;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    border-bottom: 2px solid #579fcd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #3a9147;
    font-family: 'Kalam';
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-body {
    color: #333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
}

.modal-body a {
    display: inline-block;
    margin: 10px 5px 10px 0;
    padding: 10px 15px;
    background-color: #579fcd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.modal-body a:hover {
    background-color: #385052;
}