/* ====================== 변수 정의 ====================== */
:root {
    --primary-color: #00ff00;
    /* 매트릭스 녹색 */
    --secondary-color: #ffc107;
    /* 노란색 */
    --danger-color: #dc3545;
    /* 빨간색 */
    --success-color: #28a745;
    /* 녹색 */
    --dark-bg-color: #1a1a1a;
    /* 어두운 배경색 */
    --card-bg-color: rgba(0, 0, 0, 0.8);
    --card-text-color: #ffffff;
    --font-family: 'Montserrat', sans-serif;
    --font-family-mono: 'Orbitron', monospace;
    --background-color: #0d0d0d;
    --text-color: #00ff00;
    --card-background: rgba(0, 0, 0, 0.8);
    --border-color: var(--primary-color);
    --countdown-color: var(--primary-color);
}

/* ====================== 기본 스타일 ====================== */

body {
    background-color: var(--background-color);
    /* 어두운 배경 */
    color: var(--text-color);
    /* 매트릭스 녹색 텍스트 */
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

/* 헤더 스타일 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .logo {
    width: 60px;
    margin-right: 15px;
}

.header-left h1 {
    font-size: 2em;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    margin: 0 8px;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s, background-color 0.3s;
    padding: 8px 6px;
    border-radius: 5px;
    background-color: rgba(0, 123, 255, 0.1);
}

.header-nav a.active,
.header-nav a:hover {
    background-color: #007bff;
    color: #ffffff;
}

.dark-mode-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s;
}

.dark-mode-btn:hover {
    transform: scale(1.1);
}

/* ====================== 언어 전환 버튼 스타일 ====================== */

.language-toggle-btn {
    position: fixed;
    top: 180px;
    right: 20px;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    border: none;
    border-radius: 25px;
    width: 60px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    /* 헤더보다 위로 설정 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.language-toggle-btn:hover {
    background-color: rgba(0, 123, 255, 1);
}

/* ====================== 메인 콘텐츠 ====================== */

main {
    padding-top: 100px;
    /* 헤더 공간 확보 */
    padding-bottom: 120px;
    /* 고정 광고 공간 확보 */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* 비트코인 메트릭스 섹션 스타일 */
.bitcoin-metrics {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin: 20px auto;
    max-width: 1200px;
    gap: 20px;
    flex-wrap: wrap;
}

.bitcoin-rsi,
.bitcoin-fear-greed,
.bitcoin-stochastic {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 15px;
    flex: 1 1 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    position: relative;
}

.bitcoin-dominance h3,
.bitcoin-rsi h2,
.bitcoin-fear-greed h2,
.bitcoin-stochastic h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.bitcoin-fear-greed .more-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 6px 10px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bitcoin-fear-greed .more-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg-color);
}

.dominance-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#dominance-text {
    display: inline-block;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px var(--primary-color);
}

.vertical-progress-bar {
    width: 30px;
    height: 150px;
    background-color: var(--dark-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px var(--primary-color);
}

.vertical-progress-bar .progress-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background-color: var(--primary-color);
    transition: height 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.long-short-ratio {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-top: 20px; */
}

/* .long-short-ratio h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--primary-color);
} */

.ratio-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ratio-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 10px;
    width: 60px;
}

.ratio-label {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 5px #ffffff;
}

#short-value {
    color: #ff0000;
    /* 숏 빨간색 */
    font-weight: bold;
    text-shadow: 0 0 5px #ff0000;
}

#long-value {
    color: #00ff00;
    /* 롱 녹색 */
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.single-ratio-bar {
    position: relative;
    width: 30px;
    height: 150px;
    background-color: var(--dark-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 5px var(--primary-color);
    flex-shrink: 0;
}

.single-ratio-bar .progress-fill.long-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background-color: var(--success-color);
    transition: height 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 10px var(--success-color);
}

.single-ratio-bar .progress-fill.short-fill {
    position: absolute;
    top: 0;
    width: 100%;
    height: 0%;
    background-color: var(--danger-color);
    transition: height 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 10px var(--danger-color);
}

.ratio-value {
    font-size: 1em;
    font-weight: bold;
    color: #00BFFF;
    /* 밝은 하늘색 계열의 형광 파랑 */
    margin-top: 10px;
}

/* RSI 스타일 */
.rsi-value,
.stochastic-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.horizontal-progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--dark-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px var(--primary-color);
    margin-top: 10px;
}

.horizontal-progress-bar .progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.horizontal-progress-bar span {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    left: 0;
    font-size: 1em;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* RSI 색상 클래스 */
.low-rsi {
    background-color: var(--success-color);
    /* 과매도: 녹색 */
}

.neutral-rsi {
    background-color: var(--secondary-color);
    /* 중립: 노란색 */
}

.high-rsi {
    background-color: var(--danger-color);
    /* 과매수: 빨간색 */
}

/* 스토캐스틱 스타일 */
.stochastic-value {
    margin-top: 20px;
}

.stochastic-value .horizontal-progress-bar span {
    display: block;
}

/* 스토캐스틱 색상 클래스 */
.low-stochastic {
    background-color: var(--success-color);
    /* 낮은 %K: 녹색 */
}

.neutral-stochastic {
    background-color: var(--secondary-color);
    /* 중립 %K: 노란색 */
}

.high-stochastic {
    background-color: var(--danger-color);
    /* 높은 %K: 빨간색 */
}

/* 공포 및 탐욕 지수 스타일 */
.fear-greed-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gauge {
    position: relative;
    width: 150px;
    height: 75px;
    background: linear-gradient(to left, var(--success-color) 0%, var(--secondary-color) 50%, var(--danger-color) 100%);
    border-radius: 150px 150px 0 0;
    overflow: hidden;
    margin: 20px auto;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    background-color: var(--dark-bg-color);
}

.gauge .dial {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0, 255, 0, 0.1) 5px, rgba(0, 255, 0, 0.1) 10px);
    opacity: 0.5;
}

.gauge .needle {
    position: absolute;
    width: 2px;
    height: 75px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: rotate(0deg) translateX(-50%);
    transition: transform 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 5px var(--primary-color);
}

.gauge .center-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 5px var(--primary-color);
}

.gauge-text {
    margin-top: 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 0 0 5px var(--primary-color);
    animation: glitch 2s infinite;
}

/* 공포 및 탐욕 지수 색상 클래스 */
.fear {
    color: var(--danger-color);
    /* 공포: 빨간색 */
}

.greed {
    color: var(--success-color);
    /* 탐욕: 녹색 */
}

.neutral-fear-greed {
    color: var(--secondary-color);
    /* 중립: 노란색 */
}

/* ====================== 카드 슬라이드 스타일 ====================== */

.card-slide {
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 20px;
    background-color: var(--card-bg-color);
}

.card-container {
    display: flex;
    width: 500%;
    animation: slide 30s ease-in-out infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0%);
    }

    10% {
        transform: translateX(0%);
    }

    20% {
        transform: translateX(-20%);
    }

    30% {
        transform: translateX(-20%);
    }

    40% {
        transform: translateX(-40%);
    }

    50% {
        transform: translateX(-40%);
    }

    60% {
        transform: translateX(-60%);
    }

    70% {
        transform: translateX(-60%);
    }

    80% {
        transform: translateX(-80%);
    }

    90% {
        transform: translateX(-80%);
    }

    100% {
        transform: translateX(0%);
    }
}

.youtube-card,
.ad-card {
    flex: 1;
    padding: 30px 40px;
    color: var(--card-text-color);
    cursor: pointer;
}

.youtube-card a,
.ad-card a {
    text-decoration: none;
    color: inherit;
}

.youtube-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.youtube-card p,
.ad-card p {
    font-size: 14px;
}

.ad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-card img {
    width: 100px;
    margin-bottom: 20px;
}

/* ====================== 고정 광고 스타일 ====================== */

.fixed-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 100px;
}

@media (max-width: 768px) {
    .fixed-ad {
        width: 320px;
        height: 100px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ====================== 코인 리스트 스타일 ====================== */

.coin-header {
    display: flex;
    align-items: center;
}

.coin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.coin-card {
    background-color: #1f2433;
    border-radius: 10px;
    padding: 20px;
    width: calc((100% - 80px) / 3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.coin-card:hover {
    transform: translateY(-5px);
}

.coin-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rank {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
}

.image-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.coin-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.coin-name {
    font-size: 18px;
    font-weight: 700;
    margin-left: 20px;
}

.coin-symbol {
    font-size: 12px;
    color: var(--danger-color);
    margin-left: 20px;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.coin-img.loading+.spinner {
    display: block;
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--danger-color);
    display: none;
}

.price-info {
    margin-top: 10px;
    text-align: left;
}

.kimchi-premium {
    color: var(--secondary-color);
}

.arrow {
    font-size: 1.2em;
    color: var(--primary-color);
    display: block;
    margin-top: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================== 플로팅 터미널 스타일 ====================== */

.floating-button {
    position: fixed;
    top: 120px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-button:hover {
    background-color: #0056b3;
}

.terminal-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 450px;
    height: 600px;
    background-color: #1e1e1e;
    color: #00ff00;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.terminal-container.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-header {
    background-color: #333;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-header h3 {
    margin: 0;
    font-size: 16px;
}

.terminal-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.terminal-display {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
    font-family: var(--font-family-mono);
    background-color: #1e1e1e;
    color: #00ff00;
    line-height: 1.5;
    white-space: pre-wrap;
    border-top: 1px solid #444;
}

.typed-cursor {
    display: inline-block;
    width: 10px;
    background-color: #00ff00;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

/* ====================== 기타 애니메이션 ====================== */

@keyframes glitch {
    0% {
        text-shadow: 0 0 5px var(--primary-color), 2px 2px 5px var(--primary-color);
    }

    50% {
        text-shadow: -2px -2px 5px var(--primary-color), 2px 2px 5px var(--primary-color);
    }

    100% {
        text-shadow: 0 0 5px var(--primary-color), -2px -2px 5px var(--primary-color);
    }
}

.glitch-text {
    position: relative;
    color: var(--primary-color);
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--danger-color);
    animation: glitch 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--success-color);
    animation: glitch 2s infinite linear alternate-reverse;
}

.dominance-container span {
    animation: glitch 1s infinite;
}

.bitcoin-dominance {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    /* flex: 1 1 300px; */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    position: relative;
}

.dominance-and-ratio {
    display: flex;
    /* 가로 정렬 */
    justify-content: space-between;
    /* 요소 간 간격 분배 */
    align-items: flex-start;
    /* 상단 정렬 */
    gap: 20px;
    /* 요소 간 간격 */
    /* width: 100%; */
    /* 부모 컨테이너 너비 */
    flex-wrap: nowrap;
    /* 강제로 가로 정렬 유지 */
}

/* ====================== 카드 리스트 반응형 ====================== */

.coin-card {
    width: calc((100% - 80px) / 3);
}

@media (max-width: 1200px) {
    .coin-card {
        width: calc((100% - 60px) / 2);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px 10px;
    }

    .header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 10px;
    }

    .header-left .logo {
        width: 40px;
        margin-bottom: 5px;
    }

    .header-left h1 {
        font-size: 20px;
        margin: 0;
    }

    .header-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-nav a {
        margin: 5px 10px;
        font-size: 10px;
        padding: 8px 10px;
        border-radius: 5px;
        background-color: rgba(0, 123, 255, 0.1);
        transition: background-color 0.3s, color 0.3s;
    }

    .header-nav a:hover,
    .header-nav a.active {
        background-color: #007bff;
        color: #ffffff;
    }

    #dark-mode-btn {
        display: none;
    }

    .card-container {
        width: 500%;
        flex-direction: row;
        animation: slide 30s ease-in-out infinite;
    }

    .card-slide {
        overflow: hidden;
        margin-bottom: 24px;
        border-radius: 20px;
        background-color: var(--card-bg-color);
        height: 200px;
    }

    .youtube-card,
    .ad-card {
        flex: 1 0 20%;
        padding: 15px 20px;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .coin-card {
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .header-nav a {
        font-size: 10px;
        padding: 6px 10px;
    }

    .header-left h1 {
        font-size: 12px;
    }

    .coin-card {
        width: calc(100% - 40px);
    }
}

/* ====================== 터미널 내 도움말 버튼 ====================== */

/* 추가적인 스타일이 필요한 경우 여기에 작성 */

/* ====================== 끝 ====================== */
/* 검색창 컨테이너 */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 600px;
}

/* 검색 인풋 */
.coin-search {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    outline: none;
    background-color: #111111;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.coin-search:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* placeholder 스타일 (크로스 브라우저) */
.coin-search::-webkit-input-placeholder {
    color: #999;
}

.coin-search:-ms-input-placeholder {
    color: #999;
}

.coin-search::placeholder {
    color: #999;
}

/* ====================== 이벤트 카운트다운 섹션 스타일 ====================== */

.events-countdown {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    position: relative;
}

.events-countdown h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    background-color: #1f2433;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: none;
    /* 초기에는 숨김 */
}

.event-item.visible {
    display: block;
    /* visible 클래스가 추가되면 표시 */
}

.event-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

.event-details {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #ffffff;
}

.countdown {
    font-size: 1em;
    font-weight: bold;
    color: var(--countdown-color);
}

.toggle-events-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-events-btn:hover {
    background-color: var(--secondary-color);
}

/* ====================== 반응형 디자인 조정 ====================== */

/* ====================== 이벤트 카운트다운 섹션 스타일 ====================== */

.events-countdown {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    position: relative;
}

.events-countdown h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    background-color: #1f2433;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: none;
    /* 초기에는 숨김 */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.event-item.visible {
    display: block;
    /* visible 클래스가 추가되면 표시 */
    opacity: 1;
    transform: translateY(0);
}

.event-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

.event-details {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #ffffff;
}

.countdown {
    font-size: 1em;
    font-weight: bold;
    color: var(--countdown-color);
}

.toggle-events-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-events-btn:hover {
    background-color: var(--secondary-color);
}

/* ====================== 반응형 디자인 조정 ====================== */

/* 모바일 화면에서 이벤트 카운트다운 섹션 전체 너비 조정 */
@media (max-width: 768px) {
    .events-countdown {
        width: 100%;
        padding: 15px;
    }

    .toggle-events-btn {
        top: 10px;
        right: 15px;
        padding: 6px 12px;
        font-size: 14px;
    }

    .event-item h4 {
        font-size: 1em;
    }

    .event-details {
        font-size: 0.85em;
    }

    .countdown {
        font-size: 0.9em;
    }
}

.ai-prediction {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border-top: 2px solid var(--primary-color);
    border-radius: 0 0 15px 15px;
    text-align: left;
}

.ai-prediction h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.ai-prediction p {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.5;
}

.highlight-number {
    color: var(--secondary-color);
    /* 노란색 계열 (원하는 색상으로 변경 가능) */
    font-weight: bold;
    font-family: var(--font-family-mono);
    text-shadow: 0 0 5px var(--secondary-color);
}

.highlight-term {
    color: var(--secondary-color);
    /* 노란색 계열 (원하는 색상으로 변경 가능) */
    font-weight: bold;
    font-family: var(--font-family-mono);
    text-shadow: 0 0 5px var(--secondary-color);
}