@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Special+Elite&family=Orbitron:wght@400;700&family=Cinzel+Decorative:wght@700&family=Berkshire+Swash&family=Jolly+Lodger&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    color: #b30000;
    font-family: 'Special Elite', cursive;
    min-height: 100vh;
    background-color: #000000;
    position: relative;
    overflow-y: auto;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Project Title Styling */
.project-title {
    font-family: 'Jolly Lodger', cursive;
    font-size: 3.5rem;
    color: #00c8ff;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 
        0 0 10px rgba(0, 200, 255, 0.7),
        0 0 20px rgba(0, 150, 255, 0.5),
        0 0 30px rgba(0, 100, 255, 0.3),
        2px 2px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    font-weight: 400;
    opacity: 0.95;
    transform: scale(1.05, 1.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 200, 255, 0), rgba(0, 200, 255, 0.8), rgba(0, 200, 255, 0));
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(0, 200, 255, 0.7),
            0 0 20px rgba(0, 150, 255, 0.5),
            0 0 30px rgba(0, 100, 255, 0.3),
            2px 2px 2px rgba(0, 0, 0, 0.7);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(0, 220, 255, 0.9),
            0 0 25px rgba(0, 170, 255, 0.7),
            0 0 35px rgba(0, 120, 255, 0.5),
            2px 2px 3px rgba(0, 0, 0, 0.9);
    }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.container::before {
    content: none;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 40px;
    background-color: rgba(0, 20, 40, 0.6);
    color: #00e1ff;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 150, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
}

.social-button:hover {
    background-color: rgba(0, 30, 60, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 180, 255, 0.4);
    color: #ffffff;
}

.twitter-button {
    /* Specific styles for Twitter button if needed */
}

.chart-button {
    /* Specific styles for Chart button if needed */
}

/* Enhanced Realistic Fog Effect */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.fog-1, .fog-2, .fog-3 {
    position: absolute;
    width: 300%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='5' seed='0' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='1600' height='900' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
    opacity: 0.2;
    top: 0;
    left: 0;
}

.fog-1 {
    filter: blur(5px);
    animation: fogDrift 120s linear infinite;
    opacity: 0.15;
    background-size: cover;
}

.fog-2 {
    filter: blur(10px);
    animation: fogDrift 90s linear infinite;
    animation-delay: -30s;
    transform: scale(1.2);
    opacity: 0.12;
}

.fog-3 {
    filter: blur(15px);
    animation: fogDrift 70s linear infinite;
    animation-delay: -10s;
    transform: scale(1.5);
    opacity: 0.1;
}

@keyframes fogDrift {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-66.66%); /* Move exactly 2/3 of width for seamless loop */
    }
}

/* Floating particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle at center, rgba(0, 200, 255, 0.8) 0%, rgba(0, 200, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    animation: float-particle var(--particle-duration) ease-in-out infinite;
    animation-delay: var(--particle-delay);
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(var(--particle-x-start));
    }
    20% {
        opacity: var(--particle-opacity);
    }
    80% {
        opacity: var(--particle-opacity);
    }
    100% {
        opacity: 0;
        transform: translateY(0) translateX(var(--particle-x-end));
    }
}

/* Chest Styling */
.chest-container {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    margin-top: 10px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.4));
    width: 100%;
    display: flex;
    justify-content: center;
    max-height: 50vh;
}

.chest-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.15) 0%, rgba(0, 150, 255, 0) 70%);
    filter: blur(15px);
    border-radius: 50%;
    z-index: -1;
    animation: pulsatingGlow 4s infinite ease-in-out;
}

@keyframes pulsatingGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.chest-image {
    max-width: 400px;
    height: auto;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.4));
    max-height: 50vh;
    object-fit: contain;
}

.chest-image:hover {
    transform: scale(1.05) rotate3d(1, 0, 0, 5deg);
    filter: drop-shadow(0 0 25px rgba(0, 200, 255, 0.6));
}

/* Shake Animation */
.shake {
    animation: chestShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes chestShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Keyhole Smoke Effect */
.keyhole-smoke {
    position: absolute;
    width: 10px;
    height: 100px;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -60%);
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
}

.keyhole-smoke::before,
.keyhole-smoke::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 20px;
    background: linear-gradient(to top, rgba(0, 255, 230, 0), rgba(0, 255, 230, 0.8));
    border-radius: 10px;
    filter: blur(5px);
    animation: smoke 4s infinite ease-out;
}

.keyhole-smoke::after {
    left: 7px;
    height: 30px;
    background: linear-gradient(to top, rgba(0, 230, 255, 0), rgba(0, 200, 255, 0.6));
    animation-duration: 6s;
    animation-delay: 0.5s;
}

@keyframes smoke {
    0% {
        transform: translateY(0) scaleX(1) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scaleX(1.2) rotate(5deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-60px) scaleX(0.8) rotate(-5deg);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Teaser Text Styling */
.teaser-text {
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.3rem;
    color: rgba(220, 220, 230, 0.9);
    font-style: italic;
    max-width: 600px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 15px rgba(0, 150, 255, 0.7);
    animation: textPulse 8s infinite;
    opacity: 0.9;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* Timer Styling */
.timer-container {
    z-index: 2;
    text-align: center;
    perspective: 500px;
    position: relative;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
    margin-top: 15px;
    opacity: 0.8 !important;
}

.timer-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: #00c8ff;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.timer {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #00e1ff;
    text-shadow: 0 0 5px rgba(0, 230, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
}

.timer span {
    display: inline-block;
    min-width: 55px;
    background: rgba(0, 20, 40, 0.4);
    padding: 6px 3px;
    border-radius: 5px;
    margin: 0 2px;
    box-shadow: 0 0 5px rgba(0, 180, 255, 0.2);
    border: 1px solid rgba(0, 150, 255, 0.15);
}

/* Media Queries */
@media (max-width: 768px) {
    .chest-image {
        max-width: 280px;
    }
    
    .timer {
        font-size: 1.8rem;
    }
    
    .timer span {
        min-width: 40px;
        padding: 5px 2px;
    }
    
    .teaser-text {
        font-size: 1.1rem;
        max-width: 90%;
        margin-bottom: 25px;
    }
    
    .chest-container {
        margin-bottom: 30px;
    }
}

@media (min-width: 1200px) {
    .chest-image {
        max-width: 450px;
    }
    
    .teaser-text {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .timer-container {
        padding: 20px 30px;
    }
    
    .timer {
        font-size: 2.4rem;
    }
    
    .timer span {
        min-width: 65px;
    }
}

/* Enhanced mobile-first responsive design */
/* Small phones (portrait) */
@media (max-width: 375px) {
    .project-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        margin-top: 20px;
    }
    
    .chest-image {
        max-width: 280px;
        height: auto;
    }
    
    .timer-container {
        padding: 10px 15px;
        margin-bottom: 20px;
    }
    
    .timer {
        font-size: 1.6rem;
    }
    
    .timer span {
        min-width: 35px;
        padding: 0 3px;
    }
    
    .timer-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .teaser-text {
        font-size: 0.9rem;
        max-width: 90%;
        margin-top: 15px;
    }
    
    .social-buttons {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .social-button {
        width: 90px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .container {
        justify-content: normal;
        padding-top: 30px;
        padding-bottom: 50px;
    }
}

/* Phones (portrait and landscape) */
@media (min-width: 376px) and (max-width: 767px) {
    .project-title {
        font-size: 2.5rem;
    }
    
    .chest-image {
        max-width: 90%;
        height: auto;
    }
    
    .timer {
        font-size: 2rem;
    }
    
    .timer span {
        min-width: 45px;
    }
    
    .timer-label {
        font-size: 1.1rem;
    }
    
    .teaser-text {
        font-size: 1rem;
        max-width: 90%;
    }
}

/* Tablets and small laptops */
@media (min-width: 768px) and (max-width: 1199px) {
    .chest-image {
        max-width: 380px;
    }
    
    .timer {
        font-size: 2.2rem;
    }
    
    .timer span {
        min-width: 50px;
    }
    
    .teaser-text {
        font-size: 1.1rem;
        max-width: 80%;
    }
    
    .chest-container {
        margin-bottom: 30px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .chest-image {
        max-width: 450px;
    }
    
    .teaser-text {
        font-size: 1.2rem;
        max-width: 70%;
    }
    
    .timer-container {
        padding: 20px 30px;
    }
    
    .timer {
        font-size: 2.5rem;
    }
    
    .timer span {
        min-width: 60px;
    }
}

/* iPhone-specific fixes */
@supports (-webkit-touch-callout: none) {
    .container {
        min-height: -webkit-fill-available;
        height: auto;
        overflow-y: auto;
        position: relative;
        overflow-x: hidden;
        justify-content: flex-start;
        padding-top: 40px;
    }
    
    .bg-image {
        background-attachment: scroll;
        position: fixed;
    }
    
    html, body {
        height: -webkit-fill-available;
        position: relative;
        overflow-y: auto;
    }
    
    .chest-container {
        max-height: 40vh;
    }
    
    .chest-image {
        max-height: 40vh;
    }
    
    /* Fix for notch areas on newer iPhones */
    @media (max-width: 896px) and (orientation: landscape) {
        .container {
            padding: 20px 20px 50px;
        }
        
        .chest-container {
            max-height: 70vh;
        }
        
        .chest-image {
            max-height: 70vh;
        }
    }
    
    @media (max-width: 428px) {
        .container {
            padding: 40px 15px 80px;
        }
        
        .chest-container {
            margin-top: 0;
            margin-bottom: 10px;
        }
        
        .teaser-text {
            margin-bottom: 15px;
        }
    }
} 