
/* GLOBAL RESET          */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* THEME VARIABLES       */

:root {
    --bg: #fee1d3;
    --text: #2b1a19;
    --accent: #6c0102;
    --muted: #666;
}

.dark-theme {
    --bg: #111217;
    --text: #e6e6e6;
    --accent: #f0c3b7;
    --muted: #999;
}


/* BODY                  */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}


/* TOP BAR (greeting/date/theme) */

.site-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.greeting-area span {
    margin-right: 10px;
    font-size: 14px;
}

#theme-toggle {
    background: transparent;
    border: 1px solid var(--muted);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text);
}


/* NAVBAR                */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
}


/* CAROUSEL CONTAINER    */

.carousel {
    position: relative;
    background: var(--accent);
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* hide radio buttons */
input[type="radio"] {
    display: none;
}

.cards {
    position: relative;
    width: 80%;
    height: 100%;
    margin: auto;
}


/* SINGLE CARD (label)   */

.cards label {
    position: absolute;
    width: 45%;
    height: 70%;
    margin-top: 50px;
    background: var(--bg);
    color: var(--text);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s ease, opacity 0.7s ease;
    left: 50%;
    transform-origin: center;

    opacity: 0;       /* hide all by default */
    z-index: 1;
    pointer-events: none;  /* prevent clicks on hidden cards */
}

.cards label img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

/* text overlay on card */
.card-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 80%;
}


/* CARD POSITIONS (carousel)    */


/* Center card */
#item1:checked ~ .cards label:nth-child(1),
#item2:checked ~ .cards label:nth-child(2),
#item3:checked ~ .cards label:nth-child(3),
#item4:checked ~ .cards label:nth-child(4),
#item5:checked ~ .cards label:nth-child(5),
#item6:checked ~ .cards label:nth-child(6),
#item7:checked ~ .cards label:nth-child(7),
#item8:checked ~ .cards label:nth-child(8),
#item9:checked ~ .cards label:nth-child(9),
#item10:checked ~ .cards label:nth-child(10),
#item11:checked ~ .cards label:nth-child(11) {
    transform: translateX(-50%) scale(1);
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
}

/* Left card */
#item1:checked ~ .cards label:nth-child(11),
#item2:checked ~ .cards label:nth-child(1),
#item3:checked ~ .cards label:nth-child(2),
#item4:checked ~ .cards label:nth-child(3),
#item5:checked ~ .cards label:nth-child(4),
#item6:checked ~ .cards label:nth-child(5),
#item7:checked ~ .cards label:nth-child(6),
#item8:checked ~ .cards label:nth-child(7),
#item9:checked ~ .cards label:nth-child(8),
#item10:checked ~ .cards label:nth-child(9),
#item11:checked ~ .cards label:nth-child(10) {
    transform: translateX(-115%) scale(0.85);
    z-index: 2;
    opacity: 1;          /* visible */
    pointer-events: auto;
}

/* Right card */
#item1:checked ~ .cards label:nth-child(2),
#item2:checked ~ .cards label:nth-child(3),
#item3:checked ~ .cards label:nth-child(4),
#item4:checked ~ .cards label:nth-child(5),
#item5:checked ~ .cards label:nth-child(6),
#item6:checked ~ .cards label:nth-child(7),
#item7:checked ~ .cards label:nth-child(8),
#item8:checked ~ .cards label:nth-child(9),
#item9:checked ~ .cards label:nth-child(10),
#item10:checked ~ .cards label:nth-child(11),
#item11:checked ~ .cards label:nth-child(1) {
    transform: translateX(15%) scale(0.85);
    z-index: 2;
    opacity: 1;          /* visible */
    pointer-events: auto;
}


/* FOOTER                */

.site-footer {
    background: var(--bg);
    text-align: center;
    padding: 20px 0;
    color: var(--text);
}

.site-footer a {
    text-decoration: none;
    color: var(--accent);
    margin: 0 10px;
}

.site-footer a:hover {
    opacity: 0.7;
}
