/* Reset and base styles */
:root {
    --glowy-color: rgba(255, 255, 255, 0.911);
    --sage-green: rgb(152, 168, 121);


    --primary-color: rgb(189, 166, 118);
    --secondary-color: #2ecc71;
    --text-dark: #2c3e50;
  }
  

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* Remove height: 100% to allow natural scrolling */
    overflow-x: hidden;
}

body {
    font-family: 'Ms gothic';
    line-height: 1.2;
    color: #dad0c7;
    background-image: url("../images/ophelia-dither7.png");
    background-size: cover;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;

    /* Change from flex to normal flow */
    padding: 20px 0;
    min-height: 100vh; /* Use min-height instead of height: 100% */
}
body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: radial-gradient(ellipse 60% 200%, rgba(20, 26, 14, 0.849) 0%, rgba(56, 83, 32, 0.4) 90%, rgba(37, 51, 25, 0.1) 100%);
    z-index: 0;
    mix-blend-mode: multiply;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Container that scales uniformly */
.container {
    width: 520px;
    margin: 0 auto; /* Center the container normally */
    transform-origin: top center;
    /* Only apply scaling transform - no centering needed at full size */
    transform: scale(calc(min(100vw / 940px, 100vh / 800px)));
}

/* Header */
.header {
    text-align: center;
    padding: 0px 0;
}


.blog-title {
    font-size: 8px;
    color: var(--glowy-color);
    text-shadow: 0 0 10px #ecc149,
        0 0 20px #ecc149,
        0 0 30px #ecc149,
        0 0 60px #ecc149;
    transition: text-shadow 0.3s ease-in-out;
}


.nav {
    margin-top: 0px;
}

.nav a {
    text-decoration: none;
    color: #ffdb80;
    margin: 0 10px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0s ease;
    display: inline-block;
}

.nav a:hover {
    transform: translate(2px, -2px);
}

/* Main content area */
.main-content {
    background: rgba(254, 255, 253, 0.027);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px dashed rgb(189, 166, 118);
    display: flex;
    justify-content: center;
    padding: 24px;
}

/* Content section */
.content-section {
    width: 500px;
}

.content-text p{
    font-size: 13px;
    line-height: 1.2;
    transition: transform 0s ease;
    display: inline-block;
}

.content-text p:hover{
    transform: translate(-2px, 2px);
}

.content-text h2 {
    margin: 30px 0 15px 0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.no-format-link {
    text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a {
    color: #ffdb80;
    text-decoration: underline;
}

a:visited {
    color: #ffdb80;
}



@media (max-height: 800px) {
    body {
        padding: 10px 0;
    }
}

@media (max-width: 500px) {
    .container {
        position: relative;
        left: 50%;
        margin: 0;
        transform: translateX(-50%) scale(0.6);
        transform-origin: top center;
    }
}

@media (max-width: 768px) and (min-width: 501px) {
    .container {
        position: relative;
        left: 50%;
        margin: 0;
        transform: translateX(-50%) scale(0.75);
        transform-origin: top center;
    }
}

@media (max-width: 400px) {
    .container {
        position: relative;
        left: 50%;
        margin: 0;
        transform: translateX(-50%) scale(0.55);
        transform-origin: top center;
    }
    
    body {
        font-size: 16px;
    }
}




.sitelog-container {
    max-width: 600px;
    margin: 0 auto;
    border: 1px dashed var(--primary-color);
    padding: 0;
    background-color: #423e215b;
}

.sitelog-header {
    background: rgba(20, 40, 20, 0.336);
    padding: 3px 6px;
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 16px;
    font-weight: bold;
    font-size: 10px;
}

.window-title {
    flex-grow: 1;
    text-align: left;
    letter-spacing: 1px;

}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-button {
    width: 14px;
    height: 14px;
    font-size: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.window-button:hover {
    background: #6d8d6d;
}

.scrollable-content {
    height: 100px;
    overflow-y: auto;
    padding: 0px;
    scrollbar-width: thin;
    scrollbar-color: #b8ab7f #484a2b;
}

.scrollable-content::-webkit-scrollbar {
    width: 12px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #2d4a2b;
    border-radius: 6px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #b8a67f;
    border-radius: 6px;
    border: 2px solid #2d4a2b;
}



.log-entry {
    margin-bottom: 20px;
    padding: 12px;
    border-left: 1px solid var(--primary-color);
}


.log-date {
    color: #e8dbb8;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.log-text {
    line-height: 1.1;
    font-size: 13px;
}

#a{font:10px/1 monospace;white-space:pre;text-shadow:0 0 10px #ffcd6f,0 0 40px #ffac31;}


.ascii-bird-container {
    position: absolute;       /* Remove from normal document flow */
    top: 30px;                 /* Distance from the top of the page */
    left: -100px;                /* Distance from the left side of the page */
    font-family: monospace;    /* Keep ASCII art aligned properly */
    font-size: 14px;           /* Adjust size as needed */
    line-height: 1;          /* Tighter line spacing for ASCII art */
    cursor: pointer;           /* Indicate it's clickable */
    z-index: 1000;             /* Keep it above other elements */
    padding: 5px;              /* Optional: padding around ASCII art */
    border-radius: 4px;        /* Optional: rounded corners */
  }
  
  

  .nav-link.disabled {
    pointer-events: none;
    color: rgb(173, 139, 106) !important;
    cursor: default;
    text-decoration: none;
  }
  .nav-link:visited.disabled {
    color:  rgb(173, 139, 106)!important;
  }
  .nav-link:hover.disabled {
    color:  rgb(173, 139, 106) !important;
  }
  .nav-link:active.disabled {
    color:  rgb(173, 139, 106) !important;
  }



  
  .gradient-shape {
    position: absolute;
    top: -4%;
    left: -7%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #000000 0%, #ffffff00 80%);
    border-radius: 10%;
    opacity: .5;
    z-index: -1;

    pointer-events: none;
  }
  
  .content-layer {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
  }

  .button-container {
    display: flex;
    font-size: 0;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center; /* or space-around / space-between if you want spacing logic */
  }
  .button-container a {
    margin: 0;
    padding: 0;
    display: inline-block; /* Needed for transform animations */
    transition: 0.2s ease-in-out;
  }
  
  .button-container a:hover {
    animation: bounceHover 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  
  /* Keyframes for bounce + rotate */
  @keyframes bounceHover {
    0% {
      transform: scale(1) rotate(0deg);
    }
    40% {
      transform: scale(1.2) rotate(1deg);
    }
    60% {
      transform: scale(0.95) rotate(-1deg);
    }
    80% {
      transform: scale(1.05) rotate(1deg);
    }
    100% {
      transform: scale(1) rotate(0deg);
    }
  }
  


  .button-container-forest {
    display: flex;
    font-size: 0;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center; /* or space-around / space-between if you want spacing logic */
  }
  .button-container-forest a {
    margin: 0;
    padding: 0;
    display: inline-block; /* Needed for transform animations */
    transition: 0.2s ease-in-out;
  }
  
  .button-container-forest a:hover {
    animation: bounceHover 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 0 12px 4px #8ae000
  }

/* Keyframes for hover float effect */
@keyframes hoverFloat {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-10px); }
    70%  { transform: translateY(-6px); }
    100% { transform: translateY(-8px); }
  }
  .button-container-sky {
    display: flex;
    font-size: 0;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center; /* or space-around / space-between if you want spacing logic */
  }
  .button-container-sky a {
    margin: 0;
    padding: 0;
    display: inline-block; /* Needed for transform animations */
    transition: 0.2s ease-in-out;
  }
  
  .button-container-sky a:hover {
    animation: hoverFloat 1.8s ease-in-out forwards;
    box-shadow: 0 0 12px 4px #85d2ff
  }

  /* Art Nouveau Minimal Audio Player Styles */
audio {
    width: 320px;
    height: 48px;
    background: linear-gradient(135deg, 
      rgba(20, 25, 15, 0.9) 0%,
      rgba(30, 40, 20, 0.85) 50%,
      rgba(25, 35, 18, 0.9) 100%);
    border: 1px dashed rgba(180, 200, 140, 0.3);
    padding: 8px 16px;

    backdrop-filter: blur(8px);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary-color);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  /* Subtle Art Nouveau ornamental border */
  audio::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(180, 200, 140, 0.15);
    pointer-events: none;
  }
  
  /* Organic flowing accent */
  audio::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
      transparent 0%,
      rgba(180, 200, 140, 0.4) 20%,
      rgba(180, 200, 140, 0.6) 50%,
      rgba(180, 200, 140, 0.4) 80%,
      transparent 100%);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  /* Hover state with Art Nouveau inspired glow */
  audio:hover {
    border-color: rgba(180, 200, 140, 0.5);
    box-shadow: 
      inset 0 1px 6px rgba(209, 201, 156, 0.2),
      0 2px 8px rgba(180, 200, 140, 0.2),
      0 0 30px rgba(180, 200, 140, 0.15);
  }
  
  
  

  
  /* Webkit audio controls styling */
  audio::-webkit-media-controls-panel {
    background: rgb(22, 34, 22);

  }
  
  audio::-webkit-media-controls-play-button,
  audio::-webkit-media-controls-pause-button {
    background-color: rgb(122, 109, 74);
    border: 5px solid var(--primary-color);

    
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0s ease;
  }
  
  audio::-webkit-media-controls-play-button:hover,
  audio::-webkit-media-controls-pause-button:hover {
    transform: scale(1.05);
  }
  
  audio::-webkit-media-controls-timeline {
    color: white;
    border-radius: 2px;
    margin: 0 8px;
    height: 3px;
  }
  
  audio::-webkit-media-controls-current-time-display,
  audio::-webkit-media-controls-time-remaining-display {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  audio::-webkit-media-controls-volume-slider {
    background: rgba(180, 200, 140, 0.2);
    border-radius: 2px;
    height: 3px;
  }
  
  audio::-webkit-media-controls-mute-button {
    border-radius: 3px;
    transition: all 0.2s ease;
  }
  
  audio::-webkit-media-controls-mute-button:hover {
    background-color: rgba(180, 200, 140, 0.8);
  }
  

  /* Responsive adjustments */
  @media (max-width: 768px) {
    audio {
      width: 280px;
      height: 44px;
      font-size: 10px;
    }
  }