/* =========================================
   VARIABLES & FONTS
   ========================================= */
@font-face {
  font-family: 'Possibility';
  src: url('fonts/Possibility-Bold.otf') format('opentype'); /* Update the path/name if yours is different */
  font-weight: bold; 
  font-style: normal;
}

:root {
  --epcot-pink: #D65778;       
  --epcot-blue: #3E64A8;       
  --epcot-teal: #4CB5A6;       
  --epcot-yellow: #E3D15E;     
  --epcot-purple-light: #E6DFEB; 
  --epcot-purple-dark: #855FAD;  
  --epcot-white: #F4EFE6;      
  --epcot-text: #2B5E56;       /* Deep retro navy/denim for text */
  
  --main-font: 'Possibility', Arial, sans-serif;
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--main-font); /* This applies the font globally! */
  background-color: var(--epcot-purple-light);
  background-image: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E"),
    linear-gradient(var(--epcot-teal) 2px, transparent 2px),
    linear-gradient(90deg, var(--epcot-teal) 2px, transparent 2px);
  background-size: 200px 200px, 50px 50px, 50px 50px;
  background-position: center center;
  background-blend-mode: multiply, normal, normal;
  cursor: url('PICS/arrow.cur'), auto;
}

.clickable {
  cursor: url('PICS/appstatic.cur'), pointer;
}

.draggable {
  cursor: url('PICS/appbusystatic.cur'), move;
}

/* =========================================
   CORE LAYOUT
   ========================================= */
#container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  background-color: var(--epcot-white);
  padding: 10px;
  border: 4px solid var(--epcot-blue);
  box-shadow: 10px 10px 0px var(--epcot-pink);
}

#header {
  width: 100%;
  height: 120px;
  position: relative;
  background-color: var(--epcot-pink);
  border: 4px solid var(--epcot-blue);
}

.header-overlay {
  width: 850px;
  height: auto;
  position: absolute;
  top: 1px;
  z-index: 10;
}

#navbar {
  height: 38px;
  background-color: var(--epcot-teal);
  color: var(--epcot-white);
  font-size: 16px;
  width: 100%;
  border: 4px solid var(--epcot-blue);
  border-radius: 25px;
  margin-top: -15px;
  position: relative;
  padding: 6px;
  box-shadow: 4px 4px 0px var(--epcot-pink);
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
}

#navbar li a {
  color: var(--epcot-white);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#navbar li a:hover {
  color: var(--epcot-yellow);
}

#flex {
  display: flex;
  margin-top: 20px;
}

aside {
  flex: 0 0 210px; /* Locks the width so they never shrink or stretch unevenly */
  width: 210px; 
  padding: 10px;
  font-size: 15px;
  background-color: var(--epcot-white);
  margin-bottom: 10px;
}

.sidebar-box {
  background-color: var(--epcot-white);
  padding: 10px;
  border: 3px solid var(--epcot-teal);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 4px 4px 0px var(--epcot-yellow);
}

.sidebar-box h1 {
color: #E3D15E;
text-shadow: 2px 2px var(--epcot-blue);
text-align: center;
font-size: x-large;
}

main {
  flex: 1;
  padding: 0 15px;
}

footer {
  background-color: var(--epcot-pink);
  border: 4px solid var(--epcot-blue);
  color: var(--epcot-white);
  padding: 10px;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

/* =========================================
   WINDOW UI FRAMEWORK
   ========================================= */
.window-frame {
  background-color: var(--epcot-white);
  border: 4px solid var(--epcot-blue);
  border-radius: 15px; /* Rounded corners all the way around now */
  margin-bottom: 20px;
  box-shadow: 6px 6px 0px var(--epcot-pink);
  overflow: hidden; /* Keeps window body from poking out of the rounded corners */
}

.window-body {
  padding: 15px;
  background-color: var(--epcot-white);
  font-size: 14px;
}

.program-layout {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.program-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================
   PROGRAM CONTENTS & BOXES
   ========================================= */
.welcome-box {
  background-color: var(--epcot-yellow);
  border: 4px solid var(--epcot-blue);
  color: var(--epcot-blue);
  font-size: 12px;
  height: 50px;
  width: 100%; /* Changed from 280px so it flexes with the middle column */
  display: flex;
  align-items: center;      
  justify-content: center;
  text-align: center;
  border-radius: 10px;
}

.intro-box {
  flex-grow: 1;
  background-color: var(--epcot-purple-light);
  color: var(--epcot-black);
  padding: 15px;
  font-size: 14px;
  border: 3px solid var(--epcot-teal);
  border-radius: 10px;
  width: 100%; /* Changed from 280px */
}

.announcements-box {
  background: var(--epcot-purple-light);
  border: 3px solid var(--epcot-teal);
  border-radius: 10px;
  padding: 15px;
  width: 100%; /* Changed from 280px */
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
}
/* =========================================
   BUTTONS & IMAGES
   ========================================= */
.button-grid {
  display: grid;
  grid-template-columns: 110px 110px;
  gap: 2px;
  padding-left: 8px;
}

.mini-buttons {
  display: grid;
  grid-template-columns: 110px 110px;
  gap: 2px;
  padding-left: 8px;
}

.image-button {
  display: inline-block;
  text-decoration: none;
}

.image-frame {
  background-color: var(--epcot-white);
  border: 3px solid var(--epcot-teal);
  border-radius: 8px;
  display: inline-block;
  transition: all 0.2s ease;
}

.image-button:hover .image-frame {
  border-color: var(--epcot-pink);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--epcot-blue);
}

.image-frame img {
  display: block;
  width: 100px;
  height: auto;
  image-rendering: auto;
  border: none;
  border-radius: 4px;

}

.mini-buttons img {
  width: 100px;
  height: 30px;
  display: block;
  border: none;
  image-rendering: auto;
}

.image-container {
  text-align: center;
}

.image-container img {
  max-width: 90%;
  height: auto;
  image-rendering: pixelated;
  align-content: center;
}

/* =========================================
   MARQUEES
   ========================================= */
.top-marquee-wrapper {
  overflow: hidden;
  padding: 8px 0;
  max-width: 1000px;
  margin: 15px auto;
  background-color: var(--epcot-purple-dark);
  border: 4px solid var(--epcot-yellow);
  border-radius: 20px;
  box-shadow: 4px 4px 0px var(--epcot-teal);
}

.top-marquee-content {
  display: flex;
  gap: 500px;
  animation: marquee-images 18s linear infinite;
}

.top-marquee-content img {
  height: 50px;
}

.bottom-marquee-wrapper {
  overflow: hidden;
  padding: 8px 0;
  max-width: 1000px;
  margin: 15px auto;
  background-color: var(--epcot-purple-dark);
  border: 4px solid var(--epcot-yellow);
  border-radius: 20px;
  box-shadow: 4px 4px 0px var(--epcot-teal);
}

.bottom-marquee-content {
  display: flex;
  gap: 30px;
  animation: marquee-images 15s linear infinite;
}

.bottom-marquee-content img {
  height: 40px;
}

@keyframes marquee-images {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* =========================================
   SIDEBAR COMPONENTS
   ========================================= */
/* Music Player */
.musicbox {
  padding: 0;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.player-controls button {
  padding: 2px;
  cursor: pointer;
  transition: transform 0.1s ease;
  background-color: transparent;
  border-color: transparent;
}

.player-controls button:active {
  transform: scale(0.9);
}

.player-controls img {
  max-width: 30px;
  max-height: 30px;
}

#now-playing-img {
  display: block;
  margin: 6px auto 10px;
  max-width: 180px;
  width: 100%;
  border: 4px solid var(--epcot-teal);
  border-radius: 8px;
}

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

.tracklist li {
  padding: 6px;
  cursor: pointer;
  border-bottom: 2px dashed var(--epcot-pink);
  font-size: 12px;
  font-weight: bold;
}

.tracklist li:hover {
  background-color: var(--epcot-yellow);
  color: var(--epcot-blue);
}

/* Creature */
.creature-frame {
  margin-bottom: 1rem;
  align-content: center;
}

.creature-body {
  padding: 10px;
  text-align: center;
}

.creature-habitat {
  position: relative;
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
}

.creature-img {
  width: 150px;
  max-width: 150px;
}

/* Slideshow & Visuals */
.sidebar-pic {
  width: 165px;
  height: auto;
  border-radius: 8px;
}

.slideshow-container {
  width: 165px;
  height: 165px;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--epcot-teal);
  border-radius: 8px;
}

.slideshow-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.caption-container {
  width: fit-content;
  height: fit-content;
  padding-top: 10px;
  padding-bottom: 10px;
}

.caption {
  width: 165px;
  height: 90px;
  display: block;
  border: none;
  padding-top: 5px;
  image-rendering: pixelated;
}

/* =========================================
   MISCELLANEOUS / OVERLAYS
   ========================================= */
#gif-overlays {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gif-overlay {
  position: absolute;
  z-index: 99;
}

.theme-button-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.theme-button-column .image-button {
  display: block;
}

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media only screen and (max-width: 800px) {
  #flex {
    flex-wrap: wrap;
  }
  aside {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }
  .sidebar-box {
    flex: 1 1 calc(50% - 10px);
  }
  main {
    order: 1;
  }
  #leftSidebar {
    order: 2;
  }
  #rightSidebar {
    order: 3;
  }
  #navbar ul {
    flex-wrap: wrap;
  }
}

/* =========================================
   TYPOGRAPHY & COLOR ACCENTS
   ========================================= */

/* Main body text stays as your soft, readable vintage charcoal */
body {
  color: var(--epcot-text);
}

/* Make your main titles stand out in the deep vintage denim blue */
h1, h2, h3 {
  color: var(--epcot-blue);
}

/* Give your welcome header a nice punch of the retro dusty rose */
.welcome-box {
  color: var(--epcot-pink);
  font-weight: bold;
}

/* Accent links or highlights with the bright seafoam teal */
a {
  color: var(--epcot-teal);
}

a:hover {
  color: var(--epcot-purple-dark);
}

/* =========================================
   COUNTDOWN BOX
   ========================================= */
.countdown-sidebar-box {
  background-color: var(--epcot-purple-dark);
  border: 4px solid var(--epcot-yellow);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 4px 4px 0px var(--epcot-teal);
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

#countdown-timer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: -5px; /* Pulls the header closer by reducing whitespace */
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item span {
  font-size: 100px;
  font-weight: bold;
  color: var(--epcot-yellow);
  text-shadow: 4px 4px 0px var(--epcot-pink);
  line-height: 1;
}

/* Snug sizing for the countdown header image */
.countdown-header-img img {
  width: 100%; /* Adjust this percentage if you want it slightly larger or smaller */
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* =========================================
   SIMPLE BLINKIES GRID
   ========================================= */
.gallery-box {
  color: var(--epcot-yellow);
  font-size: 12px;
  height: 30px;
  width: 300px; /* Changed from 280px so it flexes with the middle column */
  display: flex;
  align-items: center;      
  justify-content: center;
  text-align: center;
  border-radius: 10px;
}
 /* Target the h1 directly to force the yellow color */
.gallery-box h1 {
  color: var(--epcot-yellow);
  text-shadow: 2px 2px 0px var(--epcot-pink);
}

.simple-blinkies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
}

.simple-blinkies-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border: solid 4px var(--epcot-teal);
  border-radius: 4px;
  justify-self: center;
}

.gallery-window-frame {
  background-color: var(--epcot-purple-dark);
  border: 4px solid var(--epcot-yellow);
  border-radius: 20px;
  box-shadow: 4px 4px var(--epcot-teal);
  margin-bottom: 20px;
  overflow: hidden; /* Keeps window body from poking out of the rounded corners */
  padding-top: 10px;
  align-items: center;
}

.gallery-window-body {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers horizontally */
  justify-content: center; /* Centers vertically */
  height: 100%; /* Ensure the parent has height to center within */
}
.big-button-container {
  padding-left: 8px;
}

.big-button-container .image-frame img {
  width: 212px; 
  height: auto;
}
.short-button-container {
  padding-left: 8px;
}

.short-button-container .image-frame img {
  width: 212px; 
  height: 60px; /* You can change this number to make it as short as you need! */
  object-fit: cover; 
}