@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@300;400&display=swap');

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #2c3e50;
    background-image: radial-gradient(circle at center top, #4a627a, #2c3e50 60%);
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    min-height: 100vh;
    margin: 0;
    perspective: 1500px;
    overflow: hidden;
}

h1 {
    color: #f5f5f5;
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.scene {
    width: 320px;
    height: 220px;
    position: relative;
    perspective: 1500px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.scene::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 5%;
    width: 90%;
    height: 40px;
    background: linear-gradient(to top, #1e2b38, #2c3e50);
    border-radius: 5px 5px 0 0;
    transform: perspective(100px) rotateX(30deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: grab;
}

.carousel.dragging {
    cursor: grabbing;
    transition: none;
}

.panel {
    position: absolute;
    width: 300px;
    height: 200px;
    left: 10px;
    top: 10px;
    background-color: #fdf6e3;
    border: 1px solid #bdaA97;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    color: #444;
}

.panel h2 {
    margin: 0 0 15px 0;
    font-size: 1.6em;
    color: #003478;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.panel p {
    margin: 5px 0;
    font-size: 0.95em;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.panel p:first-of-type {
    font-weight: 400;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.instructions {
    margin-top: 40px;
    color: #aaa;
    font-style: italic;
    font-size: 0.9em;
}

.panel-1 { transform: rotateY(  0deg) translateZ(420px); }
.panel-2 { transform: rotateY( 45deg) translateZ(420px); }
.panel-3 { transform: rotateY( 90deg) translateZ(420px); }
.panel-4 { transform: rotateY(135deg) translateZ(420px); }
.panel-5 { transform: rotateY(180deg) translateZ(420px); }
.panel-6 { transform: rotateY(225deg) translateZ(420px); }
.panel-7 { transform: rotateY(270deg) translateZ(420px); }
.panel-8 { transform: rotateY(315deg) translateZ(420px); }

footer {
    margin-top: auto;
    padding: 15px;
    font-size: 0.75em;
    color: #888;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}