.joulukalenteri-calendar-page {
    background-image: url('https://luonnonperintosaatio.fi/wp-content/uploads/2021/05/heinineva-esko-rajala-12-150317-revontulia.jpg');
    background-size: cover;
    background-position: center center;
    width: 100%;
    padding-bottom:5rem;
    text-align: center;
    flex-direction:column;
    align-items:center;
    display:flex;
    justify-content:flex-start;
}

.joulukalenteri-calendar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 2em;
    padding: 2em 2em 5em;
    min-height: 95vh;
    width: 100%;
    max-width:1400px;
}

.calendar-window {
    border: 2px dotted #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height:150px;
    background-color: rgba(255,255,255,0.1);
    border-radius:2px;
}

.calendar-window.active:hover {
    cursor: pointer;
    border: 2px dotted #243e16;

}

.calendar-window.active:hover h2 {
    color: #243e16;

}

.calendar-window.active:hover,
.calendar-window.active:focus {
    background-color: rgba(255, 255, 255, 0.9); 
}

.joulukalenteri-calendar-page h1.calendar-title {
    color: white;
    text-align: center;
   margin: 0;
   padding-top:1em;
}

.calendar-window h2 {
    margin: 0;
    margin-top: 2em;
    color: #fff;

}
.luukku-content {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 90%;
    max-width:900px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    text-align:center;
    padding-bottom:2em;
    border: 2px dotted #A30000;
    border-radius:6px;
}

.luukku-content h2.luukku-title {
    margin:0 !important;
    position:absolute;
    font-size: 3rem;
    padding: 1rem;
    min-width: 5rem;
    background-color: #A30000; /*#ffb253;*/
    color: #fff;
    border-radius: 50%;
    line-height:1.2;
    font-weight:bold;
    top: 20px;
    left: 20px;

}
.luukku-content img {
    max-width: 340px;
    text-align:center;
    margin:0 auto;
    padding-bottom: 1em;
    padding-top:0.5em;
}


.close-luukku {
    position: absolute;
    top: 10px;
    right: 20px;
    font-weight:bold;
    font-size: 1.5rem;
    cursor: pointer;
    color: #A30000;
}

@media (max-width: 1200px) and (min-width: 601px) {
    .joulukalenteri-calendar-page {
        flex-direction:column;
        align-items:center;
    }
    .joulukalenteri-calendar {
        grid-template-columns: repeat(4, 1fr);
        padding: 2em 1em 6em;
        
    }
}
@media (max-width: 600px) {
    .joulukalenteri-calendar-page {
        flex-direction:column;
        align-items:center;
    }
    .joulukalenteri-calendar {
        grid-template-columns: repeat(2, 1fr);
        padding: 2em 1em 2em;
        grid-gap:1em;
    }

    .luukku-content {
        padding:30px 10px 2em;

    }
    .luukku-content h2.luukku-title {
        line-height:1.2;
        font-weight:bold;
    
    }
    .luukku-content img {
        max-width: 290px;
    }
    .luukku-content p {
        font-size:16px;
    }

}