/* Base Styles */
/* :root {
    --primary: #ff3300;
    --secondary: #00e5ff;
    --accent: #000000;
    --background: #050510;
    --card-bg: rgba(20, 20, 40, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #b8b8ff;
    --glow-primary: 0 0 10px rgba(157, 0, 255, 0.7),
        0 0 20px rgba(157, 0, 255, 0.5);
    --glow-secondary: 0 0 10px rgba(0, 229, 255, 0.7),
        0 0 20px rgba(0, 229, 255, 0.5);
    --glow-accent: 0 0 10px rgba(255, 0, 229, 0.7),
        0 0 20px rgba(255, 0, 229, 0.5);
    --card-width: 300px;
    --card-height: 420px;
    --carousel-radius: 400px;
    --transition-speed: 0.5s;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*
body,
html {
    height: 100%;
    font-family: "Chakra Petch", sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    overflow: hidden;
     Prevent page scrolling 
    display: grid;
    align-items: center;
}*/

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* carousel-plate Container */
.carousel-plate-container {
    position: relative;
    width: 100%;
    height: 850px;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;

    transform: scale(0.8); /* 80% size */
    transform-origin: center center; /* scale from center */
    /* touch-action: none; */
    /* Prevent default touch actions */
}

.carousel-plate {
    position: relative;
    width: var(--carousel-radius);
    height: var(--carousel-radius);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

/* Memory Cards */
.memory-plate-card {
    /* touch-action: pan-y; */

    position: absolute;
    width: var(--card-width);
    height: var(--card-height);
    left: 50%;
    top: 50%;
    margin-left: calc(var(--card-width) / -2);
    margin-top: calc(var(--card-height) / -2);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.memory-plate-card > img {
    position: absolute;
    width: 600px;
    height: 350px;
    left: 50%;
    bottom: -120px;
    transform: translateX(-50%);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    object-fit: fill;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); */
}

.card-plate-content {
    opacity: 0; /* hidden by default */
    transition: opacity 0.3s ease;

    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-plate-content.visible {
    opacity: 1; /* show only for active card */
}

.memory-plate-date {
    font-family: "Orbitron", sans-serif;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 10px;
    /* text-shadow: 0 0 5px rgba(255, 0, 229, 0.7); */
}

.memory-plate-card h3 {
    font-size: 1.5rem;
    /* margin-bottom: 5px; */
    color: var(--text-primary);
    /* text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); */
}

.memory-plate-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-plate-content p {

    font-size: 0.9rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* carousel-plate Controls */
.carousel-plate-controls {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1100px;
    z-index: 10;
}

.plate-control-btn {
    background: rgba(40, 30, 20, 0.7);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: var(--glow-primary); */
}

.plate-control-btn:hover {
    background: rgba(60, 41, 30, 0.9);
    transform: scale(1.1);
}


@media (max-width: 768px) {
    .carousel-plate-container {
        transform: scale(1.5);
    }
}