@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");

:root {
    --background-color: #191932;
    --text-color: #EBDCB2;
    --primary-color: #087864;
    --secondary-color: #993333;
    --accent-color: #087864;
    --border-color: #0A0A0A;
}

body {
  background: var(--background-color);
  margin: 10;
  margin-bottom: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: monospace;
  color: var(--text-color);
  font-size: 20px;
  padding-bottom: 150px; /* Increased space for the fixed footer */
}


.container {
    max-width: 1200px;
    padding: 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masking-container {
    margin-bottom: 2rem;
}

.masked-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: transparent;
    background-image: url('https://images.unsplash.com/photo-1732535725600-f805d8b33c9c?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: 200%; /* Enlarged for smooth animation */
    background-position: 0 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-background 5s infinite alternate linear;
}

@keyframes animate-background {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#countdown-matrix-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2; /* Ensure it stays above the rain effect */
  margin: 2rem 0;
}

#countdown.matrix-text {
  color: var(--accent-color);
  font-size: 3rem; /* Increased font size */
  font-family: monospace;
  position: relative;
  text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
  z-index: 2; /* Ensure it stays above the rain effect */
}

#countdown.matrix-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, -2px);
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--accent-color), 0 0 15px var(--accent-color);
}

#countdown-matrix-container .rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(8, 120, 100, 0.1) 0,
    rgba(8, 120, 100, 0.2) 2px,
    transparent 4px
  );
  animation: rain 10s linear infinite;
  z-index: 1; /* Place it behind the text */
}

/* Animation for the rain effect */
 @keyframes rain {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Glitch effect for the text */
 @keyframes glitch {
  0%, 100% {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(0);
  }
  33% {
    clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
    transform: translate(-5px, -5px);
  }
  66% {
    clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%);
    transform: translate(5px, 5px);
  }
}

#countdown span {
    display: inline-block;
    margin: 0 0.5rem;
}

a {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

a:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Ghost and Pumpkin CSS */
.ghost-container {
    position: relative;
    width: 200px;
    height: 250px;
    margin: 2rem auto;
}

.ghost {
    position: absolute;
    width: 150px;
    height: 200px;
    background-color: rgba(200, 200, 255, 0.7);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px 10px rgba(200, 200, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.ghost::before,
.ghost::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    top: 40px;
}

.ghost::before {
    left: 20px;
}

.ghost::after {
    right: 20px;
}

.ghost .eye {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: black;
    border-radius: 50%;
    top: 50px;
}

.ghost .eye.left {
    left: 35px;
}

.ghost .eye.right {
    right: 35px;
}

.ghost .mouth {
    position: absolute;
    width: 40px;
    height: 20px;
    border-bottom: 5px solid black;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    bottom: 120px;
    left: 55px;
}

.pumpkin {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: #FF7518;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: blink 3s infinite;
}

.pumpkin::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background-color: black;
    border-radius: 50%;
    top: 25px;
    left: 20px;
}

.pumpkin::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background-color: black;
    border-radius: 50%;
    top: 25px;
    right: 20px;
}

.pumpkin .mouth {
    position: absolute;
    width: 50px;
    height: 25px;
    border-bottom: 6px solid black;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    bottom: 20px;
    left: 25px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        left: 10%;
        top: 20%;
    }
    25% {
        left: 80%;
        top: 30%;
    }
    50% {
        left: 50%;
        top: 70%;
    }
    75% {
        left: 20%;
        top: 50%;
    }
}

@keyframes pumpkin-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 30px var(--primary-color);
    }
}

/* Parallax */
.parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .masked-text {
        font-size: 3rem;
    }

    .ghost-container {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .masked-text {
        font-size: 3rem;
    }

    #countdown.matrix-text {
        font-size: 1.8em;
    }

    .ghost-container {
        transform: scale(0.6);
    }
}

/* Easter Egg */
.easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    background: var(--background-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    z-index: 100;
    display: none;
}

/* To-Do List */
#todo-list-container {
    background-color: rgba(25, 25, 50, 0.7); /* Semi-transparent Midnight Blue */
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    width: 70%; /* Adjusted width for flex layout */
    max-width: 800px;
    height: 400px;
    overflow-y: scroll;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    color: var(--text-color);
    font-family: 'Garamond', serif;
}

#todo-list-container::before {
    content: none; /* Removed old paper texture */
}

#todo-list-container h2 {
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.todo-item {
    background-color: rgba(8, 120, 100, 0.2); /* Semi-transparent Peacock Green */
    border-left: 5px solid var(--border-color);
    padding: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.todo-item h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
}

.todo-item ul {
    margin: 0;
    padding-left: 1.5rem;
}

.todo-item.highlight {
    background-color: rgba(153, 51, 51, 0.8); /* Semi-transparent Coral Rouge */
    border-left-color: var(--primary-color);
    transform: scale(1.02);
}

/* Cloud Effect */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.fog-container::before,
.fog-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 30%, rgba(235, 220, 178, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 30% 20%, rgba(235, 220, 178, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 40%, rgba(235, 220, 178, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(235, 220, 178, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(235, 220, 178, 0.15) 0%, transparent 30%);
    background-size: 100% 100%;
    animation: cloud-drift 120s linear infinite;
}

.fog-container::after {
    top: auto;
    bottom: 0;
    animation-delay: -60s;
    opacity: 0.8;
}

@keyframes cloud-drift {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Footer */
footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 0.3rem; /* Reduced padding */
    position: fixed;
    margin-top: 4rem;
    border-top: 10;
    bottom: 0;
    width: 100%;
    z-index: 800;
    font-size: 0..8rem;
}

footer p {
    margin: 0.2rem 0; /* Reduced margin */
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    background-color: transparent;
    padding: 0;
    font-size: inherit;
    margin-top: 0;
}

footer a:hover {
    text-decoration: underline;
}

p {
    font-size: 0.5em!important;
}

#sound-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 101;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#random-image {
    width: 60%;
    height: auto;
    display: block; /* Ensures proper centering and sizing */
    margin: 2rem auto; /* Centers the image */
}

/* Spiderweb and Spider CSS */
.web-container {
    position: fixed; /* Changed to fixed */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    z-index: -1; /* Behind other content */
    animation: grow 8s linear infinite;
}

.web-line {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transform-origin: center;
    opacity: 0;
}

.web-line:nth-child(1) { width: 2px; height: 100%; left: 50%; top: 0; animation: appear 0.5s linear 0.5s forwards; }
.web-line:nth-child(2) { width: 100%; height: 2px; left: 0; top: 50%; animation: appear 0.5s linear 1s forwards; }
.web-line:nth-child(3) { width: 2px; height: 100%; left: 25%; top: 0; transform: rotate(45deg); animation: appear 0.5s linear 1.5s forwards; }
.web-line:nth-child(4) { width: 2px; height: 100%; left: 75%; top: 0; transform: rotate(-45deg); animation: appear 0.5s linear 2s forwards; }
.web-line:nth-child(5) { width: 2px; height: 100%; left: 0; top: 25%; transform: rotate(90deg); animation: appear 0.5s linear 2.5s forwards; }
.web-line:nth-child(6) { width: 2px; height: 100%; left: 100%; top: 25%; transform: rotate(90deg); animation: appear 0.5s linear 3s forwards; }
.web-line:nth-child(7) { width: 2px; height: 100%; left: 12.5%; top: 12.5%; transform: rotate(67.5deg); animation: appear 0.5s linear 3.5s forwards; }
.web-line:nth-child(8) { width: 2px; height: 100%; left: 87.5%; top: 12.5%; transform: rotate(-67.5deg); animation: appear 0.5s linear 4s forwards; }
.web-line:nth-child(9) { width: 2px; height: 100%; left: 12.5%; top: 87.5%; transform: rotate(22.5deg); animation: appear 0.5s linear 4.5s forwards; }
.web-line:nth-child(10) { width: 2px; height: 100%; left: 87.5%; top: 87.5%; transform: rotate(-22.5deg); animation: appear 0.5s linear 5s forwards; }
.web-line:nth-child(11) { width: 2px; height: 100%; left: 5%; top: 5%; transform: rotate(33.75deg); animation: appear 0.5s linear 5.5s forwards; }
.web-line:nth-child(12) { width: 2px; height: 100%; left: 95%; top: 5%; transform: rotate(-33.75deg); animation: appear 0.5s linear 6s forwards; }
.web-line:nth-child(13) { width: 2px; height: 100%; left: 5%; top: 95%; transform: rotate(-33.75deg); animation: appear 0.5s linear 6.5s forwards; }
.web-line:nth-child(14) { width: 2px; height: 100%; left: 95%; top: 95%; transform: rotate(33.75deg); animation: appear 0.5s linear 7s forwards; }
.web-line:nth-child(15) { width: 2px; height: 100%; left: 50%; top: 0; transform: rotate(11.25deg); animation: appear 0.5s linear 7.5s forwards; }
.web-line:nth-child(16) { width: 2px; height: 100%; left: 50%; top: 0; transform: rotate(-11.25deg); animation: appear 0.5s linear 8s forwards; }

.spider {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 10%;
    left: 10%;
    z-index: 10;
}

.spider-body {
    position: absolute;
    width: 30px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.spider-leg {
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #333;
    transform-origin: 0 0;
}

.spider-leg:nth-child(1) {
    top: 20px;
    left: 5px;
    transform: rotate(30deg);
}

.spider-leg:nth-child(2) {
    top: 25px;
    left: 5px;
    transform: rotate(0deg);
}

.spider-leg:nth-child(3) {
    top: 30px;
    left: 5px;
    transform: rotate(-30deg);
}

.spider-leg:nth-child(4) {
    top: 20px;
    left: 35px;
    transform: rotate(150deg);
}

.spider-leg:nth-child(5) {
    top: 25px;
    left: 35px;
    transform: rotate(180deg);
}

.spider-leg:nth-child(6) {
    top: 30px;
    left: 35px;
    transform: rotate(210deg);
}

.eye {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: blink 3s infinite;
}

.eye.top {
    top: 15px;
    left: 20px;
}

.eye.bottom {
    top: 30px;
    left: 20px;
}

@keyframes grow {
    0% {
        transform: scale(0.3);
        opacity: 0.7;
    }
    10% {
        transform: scale(0.5);
    }
    20% {
        transform: scale(0.7);
    }
    30% {
        transform: scale(0.9);
    }
    40%, 100% {
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 45%, 55%, 100% {
        height: 12px;
    }
    50% {
        height: 2px;
    }
}

/* Web lines appear sequentially */
.web-line:nth-child(1) { animation: appear 0.5s linear 0.5s forwards; }
.web-line:nth-child(2) { animation: appear 0.5s linear 1s forwards; }
.web-line:nth-child(3) { animation: appear 0.5s linear 1.5s forwards; }
.web-line:nth-child(4) { animation: appear 0.5s linear 2s forwards; }
.web-line:nth-child(5) { animation: appear 0.5s linear 2.5s forwards; }
.web-line:nth-child(6) { animation: appear 0.5s linear 3s forwards; }
.web-line:nth-child(7) { animation: appear 0.5s linear 3.5s forwards; }
.web-line:nth-child(8) { animation: appear 0.5s linear 4s forwards; }
.web-line:nth-child(9) { animation: appear 0.5s linear 4.5s forwards; }
.web-line:nth-child(10) { animation: appear 0.5s linear 5s forwards; }
.web-line:nth-child(11) { animation: appear 0.5s linear 5.5s forwards; }
.web-line:nth-child(12) { animation: appear 0.5s linear 6s forwards; }
.web-line:nth-child(13) { animation: appear 0.5s linear 6.5s forwards; }
.web-line:nth-child(14) { animation: appear 0.5s linear 7s forwards; }
.web-line:nth-child(15) { animation: appear 0.5s linear 7.5s forwards; }

@keyframes appear {
    to {
        opacity: 1;
    }
}

/* from cocktail.html */
.cocktail-page body {
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a, #1a1a3a);
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.cocktail-page .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-container {
    position: relative;
    width: 150px;
    height: 300px;
    margin-bottom: 20px;
}

.glass {
    position: absolute;
    width: 120px;
    height: 250px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(200, 200, 255, 0.3);
    border-radius: 0 0 20px 20px / 0 0 40px 40px;
    border-top: none;
    background: rgba(240, 240, 255, 0.1);
}

.glass::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 20px;
    background: rgba(240, 240, 255, 0.2);
    border-radius: 50%;
    top: -10px;
    left: 10px;
}

.liquid {
    position: absolute;
    width: 100px;
    height: 0;
    bottom: 20px;
    left: 10px;
    background: linear-gradient(to bottom, #4a1a4a, #1a0a1a);
    border-radius: 0 0 10px 10px;
    animation: fill 15s ease-in-out infinite;
}

.garnish {
    position: absolute;
    width: 80px;
    height: 2px;
    background: #333;
    top: 20px;
    left: 35px;
    transform: rotate(15deg);
    transform-origin: left;
}

.garnish::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    top: -4px;
    right: -5px;
}

.recipe {
    max-width: 400px;
    text-align: left;
    background: rgba(30, 30, 50, 0.7);
    padding: 20px;
    border-radius: 10px;
    border-left: 2px solid #444;
}

.recipe h1 {
    color: #ffcccc;
    font-size: 24px;
    margin-top: 0;
    text-align: center;
}

.recipe h2 {
    color: #ff9999;
    font-size: 18px;
    margin-bottom: 5px;
}

.recipe p {
    margin: 5px 0;
    color: #ddd;
}

@keyframes fill {
    0%, 100% {
        height: 0;
        background: linear-gradient(to bottom, #4a1a4a, #1a0a1a);
    }
    25% {
        height: 60px;
        background: linear-gradient(to bottom, #6a3a6a, #3a1a3a);
    }
    50% {
        height: 180px;
        background: linear-gradient(to bottom, #7FFF7F, #00FF7F);
    }
    75% {
        height: 120px;
        background: linear-gradient(to bottom, #5a3a5a, #2a1a2a);
    }
}

.side-by-side-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.cocktail-container {
    flex: 1;
}

.image-container {
    flex: 1;
}

#random-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}