/* ===========================
   Text Decoration
=========================== */
.retro-btn,
.retro-btn:hover,
.retro-btn:active,
.retro-btn:focus,
a.retro-btn,
a.retro-btn:hover,
a.retro-btn:focus,
a.retro-btn:active {
    text-decoration-line: none;
}

nav a.retro-btn {
    text-decoration-line: none;
}

/* ===========================
   Container & Grid Layout
=========================== */
.container {
    max-width: 1000px;
    margin: 50px auto;
    display: grid;
    grid-gap: 13px;
    grid-template-columns: 230px minmax(0, 1fr);
}

/* ===========================
   Base Styles
=========================== */
html, body {
    font-family: Arial, Helvetica, sans-serif;
    height: 100%;
    margin: 0;
    transition: background-image 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* ===========================
   Body & Backgrounds
=========================== */
body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    cursor: url("images/Wii_Pointer.cur"), auto;
}

/* Background toggle classes */
.bg-one {
    background-image: url("images/background_image.jpg");
    color: black;
}

.bg-two {
    background-image: url("images/background_image_alt2.jpg");
    color: white;
}

/* ===========================
   Links adapt to background
=========================== */
a {
    color: inherit; /* inherit text color from body */
    transition: color 0.5s ease-in-out;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===========================
   Cursor hover & click
=========================== */
a:hover,
button:hover {
    cursor: url("images/Wii_Pointer_Hover.cur"), pointer;
}

a:active,
button:active {
    cursor: url("images/Wii_Pointer_Click.cur"), pointer;
}

/* ===========================
   Header
=========================== */
header {
    grid-row: 1 / 2;
    grid-column: 1 / 3;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.25);
}

.header-img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

/* ===========================
   Navigation
=========================== */
nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;

    width: 180px;
    padding: 12px;
    height: max-content;

    grid-row: 2 / 3;
    grid-column: 1 / 2;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.25);

    text-decoration: none !important;
}

/* Profile Image */
.circle-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 5px solid rgba(255, 255, 255, 0.5);
}

/* ===========================
   Retro Buttons
=========================== */
.retro-btn {
    font-family: "Chicago", "Geneva", monospace;
    font-size: 14px;
    display: inline-block;
    width: 175px;
    padding: 5px;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition:
        filter 0.15s ease,
        transform 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
    color: inherit; 
    text-decoration: none; 
}

.retro-btn:hover {
    filter: brightness(1.3);
    color: #fff;
    text-decoration: none;

    transform: translateY(-1px) scale(1.02);

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 6px 24px rgba(0, 0, 0, 0.2);

    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

.retro-btn.active {
    background: rgba(255, 255, 255, 0.679);
    box-shadow:
        inset 0 1px 2px rgba(181, 248, 255, 0.421),
        0 6px 20px rgba(0, 0, 0, 0.25);
}

.retro-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

/* ===========================
   Toggle Buttons
=========================== */
.nav-buttons {
    display: flex;               /* horizontal layout */
    justify-content: center;     /* center the buttons */
    gap: 10px;                   /* space between buttons */
    margin-top: 20px;            /* spacing above buttons */
    width: 100%;                 /* span full width of nav */
    box-sizing: border-box;      /* include padding if nav has it */
}


.toggle-btn {
    width: 40px;            
    height: 40px;           
    border-radius: 50%;     
    font-size: 20px;        
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit; 
}

.toggle-btn:hover {
    filter: brightness(1.3);
    transform: scale(1.1); 
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 6px 18px rgba(0, 0, 0, 0.2);
}


/* ===========================
   Main Content
=========================== */
main {
    grid-row: 2 / 3;
    grid-column: 2 / 3;

    height: max-content;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.25);

    color: inherit; /* inherit from body */    
}

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

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
}

/* Wrapper */
.retro-select {
    position: relative;
    display: inline-block;
    width: 200px;
}

/* Select styled like .retro-btn */
.retro-select select {
    font-family: "Chicago", "Geneva", monospace;
    font-size: 14px;
    width: 75%;
    padding: 5px 30px 5px 5px; /* room for arrow */
    text-align: left;

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.15);

    color: inherit;
    cursor: pointer;

    transition:
        filter 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Hover state (same vibe as buttons) */
.retro-select select:hover {
    filter: brightness(1.3);
    transform: translateY(-1px) scale(1.02);

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Focus state */
.retro-select select:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

/* Custom dropdown arrow */
.retro-select::after {
    content: "▾";
    position: absolute;
    right: 59px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(100, 100, 100, 0.85);
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

.retro-select select:not([value="all"]) {
    background: rgba(255, 255, 255, 0.679);
    box-shadow:
        inset 0 1px 2px rgba(181, 248, 255, 0.421),
        0 6px 20px rgba(0, 0, 0, 0.25);
}

/* New bubble on top-right of button */
.retro-btn {
    position: relative; /* make button a positioning context */
}

/* The "New!" bubble */
.new-bubble {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(255, 255, 100, 0.85);  /* yellow glassy tint */
    color: black;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 180, 0.8);
    
    /* inner and outer glow */
    box-shadow:
        inset 0 0 5px rgba(255, 255, 200, 0.7),
        0 0 6px rgba(255, 255, 150, 0.6);

    pointer-events: none;

    animation: neon-glow 1.8s infinite alternate;
}

/* Neon retro glow animation */
@keyframes neon-glow {
    0% {
        box-shadow:
            inset 0 0 3px rgba(255, 255, 180, 0.5),
            0 0 5px rgba(255, 255, 140, 0.4);
    }
    50% {
        box-shadow:
            inset 0 0 8px rgba(255, 255, 220, 0.9),
            0 0 15px rgba(255, 255, 180, 0.8);
    }
    100% {
        box-shadow:
            inset 0 0 3px rgba(255, 255, 180, 0.5),
            0 0 5px rgba(255, 255, 140, 0.4);
    }
}


/* ===========================
   Announcement Balloon Container
=========================== */
.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

/* Balloon container */
.xp-balloon {
    position: absolute;       
    bottom: 110%;             
    left: 50%;                
    transform: translateX(-50%);
    width: 220px;
    padding: 10px 15px;
    background-color: #ffffe0;
    border: 1px solid #808080;
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    color: black;
    z-index: 9999;
    display: none;           
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
}

.xp-balloon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffe0;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #5555558b;
}

.xp-balloon strong {
  display: block;
  margin-bottom: 5px;
}

.xp-balloon {
    color: black !important;
}


/* ===========================
   Gallery
=========================== */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.wrapper {
  max-width: 75rem;
  padding: 2rem;
  margin: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__featured {
    grid-column: 1 / -1;
    gap: .5rem;
    padding: 1rem;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    width: 100%;
    display: flex;
    margin-bottom: 1rem;
}

.gallery__image--featured {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.gallery__item {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.gallery__link:hover .gallery__image,
.gallery__link:hover .gallery__image--featured {
  transform: scale(1.2);
}

.gallery__link:hover .gallery__overlay {
  opacity: 1;
}

.gallery__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery__overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0; 
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.176);
 

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__item:hover .gallery__image {
  transform: scale(1.2);
}

.gallery__item:hover .gallery__image--featured {
  transform: scale(1.2);
  opacity: 1;

}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.5s, filter 0.5s;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* dark overlay */
  display: flex;
  flex-direction: column; /* stack image + caption */
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#lightbox, #lightbox * {
    color: #fff !important;
}


.lightbox__caption {
  color: #fff !important; /* force white */
  text-align: center;
  margin-top: 12px;
  font-family: "Chicago", "Geneva", monospace;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5); /* subtle glass effect */
  padding: 6px 12px;
  border-radius: 8px;
  text-shadow: 0 0 2px rgba(0,0,0,0.8);
}

.lightbox__caption:hover {
    filter: brightness(1.3);
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 6px 24px rgba(0, 0, 0, 0.2);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(0,0,0,0.8);
}


/* ==================================================
   PHOTOS GALLERY
================================================== */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* Thumbnail tile */
.photo-item {
  aspect-ratio: 3.5 / 4.2;

  border-radius: 3px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.2);

  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.photo-item:hover {
  filter: brightness(1.5);
  transform: none;
}

.photo-link {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.4s ease;
}


/* =====================
   PHOTO LIGHTBOX
===================== */

.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 2000;
}

/* ACTIVE STATE */
.photo-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}


/* Glass container */
.photo-lightbox-glass {
  display: flex;
  gap: 16px;
  padding: 48px 16px 16px; /* extra top padding for close button */

  max-width: 90vw;
  max-height: 90vh;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.45);

  position: relative;
}


/* Image */
.photo-lightbox-image {
  max-width: 60vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Text panel */
.photo-lightbox-info {
  position: absolute;
  bottom: 50px;               /* distance from bottom */
  left: 50%;                  /* center horizontally */
  transform: translateX(-50%); /* center exactly */
  min-width: 200px;
  max-width: 80%;
  padding: 12px 16px;

  font-family: "Chicago", "Geneva", monospace;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;

  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

/* Mobile / tablet */
@media (max-width: 768px) {
  .photo-lightbox-info {
    bottom: 35px;              /* slightly above the close button */
    left: 50%;                 /* keep centered */
    right: 50%;               /* remove conflicting right */
    transform: translateX(-50%);
    max-width: 60%;            /* narrower margins on small screens */
    text-align: center;        /* optional: center text on mobile */
    font-size: 0.8rem;
    padding: 10px 12px;
  }
}

.photo-lightbox-info,
.photo-lightbox-info * {
    color: black !important;
}


.photo-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto; 
  transform: none;
  font-size: 2rem;
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  font-weight: bold;
  line-height: 0.1;

  background: rgba(0, 0, 0, 0.45);
  color: white;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  cursor: pointer;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.176),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;

  z-index: 10;
}

.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  transform: translateY(-1px);
}

.photo-lightbox-close:hover {
  transform: translateY(-1px) scale(1.1);
}

.photo-lightbox-close:active {
  transform: scale(0.95);
}


@media (max-width: 600px) {
    .photo-lightbox-close {
        top: auto;        /* remove top */
        right: 30px;      /* distance from right */
        bottom: 30px;     /* distance from bottom */
        transform: none;  /* remove horizontal translation */
        font-size: 1.8rem;
        width: 45px;
        height: 45px;
    }
}


/* Mobile */
@media (max-width: 768px) {
  .photo-lightbox-glass {
    flex-direction: column;
  }

  .photo-lightbox-image {
    max-width: 100%;
  }

/* ===========================
   Footer
=========================== */
footer {
    grid-row: 3 / 4;
    grid-column: 1 / 3;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.25);

    color: inherit; /* inherit from body */
}
}