html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

.viewport {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    perspective: 1000px;
    z-index: 10;
    transition: all 1s ease-in-out;
}

.camera {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center;
    transition: transform 1s ease-in-out;
}

.camera.zoom-rotate {
    transform: scale(2);
}

.calendar {
    width: 1200px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ccc;
}

.calendar-header {
    background-color: #e91e1e;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 20px;
    font-size: 2em;
    width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    width: 80%;
    max-width: 700px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.calendar-grid > div {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.day {
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    min-width: 60px;
    font-size: 1.2em;
}

.today::after {
    content: 'aujourd\'hui!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 15px;
    color: rgba(255, 0, 0, 0.6);
    pointer-events: none;
    white-space: nowrap;
}

.day.checked::before {
    content: "";
    display: inline-block;
    width:50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("check.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.sunday {
    color: red;
}

.highlight {
    background-color: yellow;
}

.stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: url("stamp.png");
    background-size: cover;
    opacity: 0;
    transform: scale(2) rotate(-15deg) translate(-50%, -50%);
    animation: stamp 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes stamp {
    0% {
        opacity: 0;
        transform: scale(2) rotate(-15deg) translate(-50%, -50%);
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 1;
        transform: scale(0.9) rotate(5deg) translate(-50%, -50%);
    }
    100% {
        transform: scale(1) rotate(0deg) translate(-50%, -50%);
    }
}

#durationrender {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    transition: opacity 2s ease-in-out;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    height: 100vh;
    width: 100vw;
    margin: 0;
}

.flip-board {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}