/*  --------------- 스타일 초기화 --------------- */
    /* 세로 스크롤 숨기기, 스크롤 가능 */
    html, body {
        overflow-y: scroll; /* 실제 스크롤은 가능 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE, Edge */
    }
    /* Chrome, Safari, Opera */
    html::-webkit-scrollbar, 
    body::-webkit-scrollbar {
        display: none;
    }
body {
    background-color: #111113;
    color: #fff;
    user-select: none; /* 텍스트 선택 금지 */
}
.fixed-bg, .cosmos-background {
    position: fixed; /* 화면에 고정 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 컨텐츠보다 뒤 */
}
/* ---------------------------------------------- */
/* 흐려지며 아래로 드랍 */
/* 컨텐츠 슬라이드 & 흐려지며 사라짐 */
.notice-drop {
    animation: dropSlide 0.8s ease forwards;
}

@keyframes dropSlide {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30%); /* 컨텐츠만 아래로 */
    }
}

/* ----------------------------------------------------- */
header {
    width: 100%;
    background: transparent;
    position: fixed;
    z-index: 99;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 20px 100px;
}
header a.back-bt {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    cursor: pointer;

    background: transparent;
    --line-color: #fff;
    transition: 0.3s ease;
}

/* X (두 개의 선) */
header a.back-bt::before,
header a.back-bt::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--line-color);

    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: 0.3s ease;
}

/* 두 번째 선 */
header a.back-bt::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 🔥 호버 시: X에만 빛이 들어옴 */
header a.back-bt:hover::before,
header a.back-bt:hover::after {
    background: lime;
    box-shadow: 0 0 6px lime, 0 0 12px lime, 0 0 18px lime;
}
/* -------------------------------section.notice --------------------------- */
section.notice {
    padding: 100px;
}
h1.headline {
    font-size: 3rem;
    color: white;
    text-shadow: 1px 1px 15px #00ff80;
    text-align: center;
    font-size: 80px;
    font-weight: 800;
    /* 🔥 애니메이션 추가 */
    opacity: 0;
    transform: translateY(100px);
    animation: slideUp 1.5s ease-out forwards;
}
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
section.notice > *:not(.carousel-controls) {
    display: flex;
    flex-direction: column; /* 세로 배치 */
    align-items: center;    /* 중앙 정렬 */
}
/* Base Styles */
:root {
    --card-width: 300px;
    --card-height: 400px;
    --carousel-radius: 400px;
    --transition-speed: 0.5s;
}
/* Cosmic Background */
.cosmos-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(
    ellipse at bottom,
    #00ff40 0%,
    #00381e 100%
    );
    overflow: hidden;
}
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
    radial-gradient(1px 1px at 25% 25%, white, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 50% 50%, white, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 75% 75%, white, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 100% 100%, white, rgba(0, 0, 0, 0));
    background-size: 80px 80px, 120px 120px, 180px 180px, 250px 250px; /* ★ 더 촘촘하게! */
    background-repeat: repeat;
    animation: twinkle 10s linear infinite;
}
@keyframes twinkle {
    0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
    background-position: 200px 200px, 300px 300px, 400px 400px,
        600px 600px;
    }
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    perspective: 1000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    margin-top: 50px;
}
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.carousel {
    position: relative;
    width: var(--carousel-radius);
    height: var(--carousel-radius);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
/* Memory Cards */
.memory-card {
    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;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.memory-card:hover .card-inner {
    transform: translateZ(20px);
}
.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.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-front {
    background: linear-gradient(
    135deg,
    #111113,
    rgba(15, 32, 25, 0.9)
    );
    border: 1px solid rgba(0, 255, 145, 0.3);
    transform-style: preserve-3d;
}

.card-back {
    background: linear-gradient(
    135deg,
    #111113,
    rgba(15, 32, 25, 0.9)
    );
    border: 1px solid rgba(0, 255, 145, 0.3);
    transform: rotateY(180deg);
}
.card-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.memory-date {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.memory-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.memory-image {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}
.memory-card:nth-of-type(1) .memory-image {
    background: url('images/notice/dhoneshowkorea.jpg') no-repeat center / cover;
}
.memory-card:nth-of-type(2) .memory-image {
    background: url('images/notice/wouldsmartcity.jpg')  no-repeat center / cover;
}
.memory-card:nth-of-type(3) .memory-image {
    background: url('images/notice/utm.jpg') no-repeat center / cover;
}
.memory-card:nth-of-type(4) .memory-image {
    background: url('images/notice/dsk_2026.jpg') no-repeat center / cover;
}
/* .memory-card:nth-of-type(5) .memory-image {
    background: url('notice-images/05.jpg') no-repeat center / cover;
}
.memory-card:nth-of-type(6) .memory-image {
    background: url('notice-images/06.jpg') no-repeat center / cover;
} */
.memory-preview {
    font-size: 0.9rem;
    font-weight: 100;
    text-align: center;
    line-height: 150%;
    color: #fff;
    margin-bottom: 15px;
    flex-grow: 1;
}
.card-back .card-content p {
    font-size: 0.9rem;
    font-weight: 100;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.memory-card:hover .card-glow {
    opacity: 1;
}


/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 100;
    margin: 50px auto;
}

    .control-btn {
        background: #111113 url('images/오른쪽\ 버튼\ 화살표.png') no-repeat center / cover;
        background-position: center 3px;
        background-size: contain;           
        border: 2px solid #008341;
        color: #fff;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .control-btn#prev-btn {
        background: #111113 url('images/왼쪽\ 버튼\ 화살표.png') no-repeat center / cover;
        background-size: contain;
        background-position: center 3px;
    }
.control-btn:hover {
    transform: scale(1.08);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

    /* Footer */
    footer {
        position: relative;
        z-index: 10;
    }

    .instructions {
        font-size: 0.8rem;
        color: red;
        opacity: 0.7;
    }

    /* Animations */
    @keyframes pulse {
        0%,
        100% {
        opacity: 0.8;
        }
        50% {
        opacity: 1;
        }
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        :root {
        --card-width: 250px;
        --card-height: 350px;
        --carousel-radius: 300px;
        }

        .title {
        font-size: 1.8rem;
        }

        .carousel-container {
        height: 400px;
        }

        .memory-card h3 {
        font-size: 1.2rem;
        }

        .memory-image {
        height: 120px;
        }
    }

    @media (max-width: 576px) {
        :root {
        --card-width: 220px;
        --card-height: 320px;
        --carousel-radius: 250px;
        }

        .title {
        font-size: 1.5rem;
        }

        .carousel-container {
        height: 350px;
        }
    }


a.logo  {
    display: block;
    width: 237px;
    height: 68px;
    margin:  100px auto 0;
    background: url('images/logos/kgfc로고-국문포함.png') no-repeat center / cover;
    background-size: contain;
}