/* =========================
   Root Variables
/* =========================
   Root Variables
/* =========================
   Root Variables
========================= */
:root {
    --background-dark: #040C24;
    --text-dark: #5f72b3;
    --heading-dark: #d6af40;
    --link-dark: #d6af40;;
    --hover-dark: #d1a424;
    --border-dark: #9c761e;
    --header-image-dark: url(https://64.media.tumblr.com/cbe41f6d507022f632bec871256b71e7/f2313893e8abbf1a-a8/s540x810/dd718eb5da1cea3ccbb00d5854f687f270865257.pnj);
    --body-bg-gif-dark: url(https://usagif.com/wp-content/uploads/gifs/starfall-gif-46.gif);
    --dark-linear-gradient: linear-gradient(#040C24, #182451);
    --alt-linear-gradient: linear-gradient(#182451, #040C24);
    --footer: #182451;

    --background-light: #fce29a;
    --text-light: #7d2a00;f
    --heading-light: #631f00;
    --nav-link-light: #ab3000;
    --nav-hover-light: #c95b00;
    --border-light: #fc923a;
    --header-image-light: url('https://file.garden/aX7td7USiCB-HBZF/Gabriel%20Webpage/Archangel%20Portrait.png');
    --body-bg-gif-light: url('https://i.pinimg.com/originals/fe/a5/3a/fea53ac58aebd04b59de22c9bf9ca8ae.gif');
    --light-linear-gradient:#fce29a;
}

/* =========================
   Fonts
========================= */
@font-face {
    font-family: ULTRAKILL;
    src: url('https://t-wingsecstasy.neocities.org/VCR_OSD_MONO.ttf');
}

/* =========================
   Base Body
========================= */
body {
    cursor: url(https://64.media.tumblr.com/8a5c80bcba171c327c9b99374b00178e/9035b9700bc04fe7-d9/s250x400/7a39a488de6ef6be83d0abc87e7a391107ec1004.pnj), default;
    font-family: 'ULTRAKILL', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-dark);
    background-image: var(--body-bg-gif-dark);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    line-height: 1.6;
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s, background-image 0.3s;
    overflow-x: hidden;
}

body.light-mode {
    background-color: var(--background-light);
    background-image: var(--body-bg-gif-light);
    color: var(--text-light);
}

* {
    box-sizing: border-box;
}

/* =========================
   Container
========================= */
#container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
}

/* =========================
   Header & Navbar
========================= */
#header {
    width: 100%;
    height: 150px;
    background-color: var(--background-dark);
    background-image: var(--header-image-dark);
    background-size: cover;
    background-position: center;
    transition: background-color 0.3s, background-image 0.3s;
    background-color: transparent;
}

body.light-mode #header {
    background-color: var(--background-light);
    background-image: var(--header-image-light);
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--background-dark);
    height: 50px;
    gap: 10px;
    overflow: hidden;
    padding: 0 10px;
    transition: background-color 0.3s;
    font-size: 20px;
}

body.light-mode #navbar {
    background-color: var(--background-light);
}

#navbar ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
    flex-wrap: wrap;
}

#navbar li a {
    color: var(--link-dark);
    font-weight: 800;
    text-decoration: none;
    transition: color 0.3s;
}

#navbar li a:hover {
    color: var(--hover-dark);
    text-decoration: underline;
}

body.light-mode #navbar li a {
    color: var(--nav-link-light);
}

body.light-mode #navbar li a:hover {
    color: var(--hover-light);
}

/* Theme Toggle */
#themeToggle {
    position: absolute;
    right: 10px;
    font-size: 1.8em;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    user-select: none;
    transition: color 0.3s;
}

#themeToggle:hover,
#themeToggle:focus {
    color: var(--hover-dark);
}

body.light-mode #themeToggle:hover {
    color: var(--hover-light);
}

/* =========================
   Layout
========================= */
#flex {
    display: flex;
    flex: 1;
}

aside { 
    width: 200px; 
    padding: 20px; 
    background-color: var(--background-dark); 
    font-size: smaller; 
    color: var(--text-dark); 
    border-color: var(--border-dark); 
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; 
} 

body.light-mode aside { 
    background: var(--background-light); 
    color: var(--text-light); 
    border-color: var(--border-light);
}

main {
    flex: 1;
    padding: 20px;
    background-color: var(--background-dark);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
    background: var(--dark-linear-gradient);
}

body.light-mode main {
    background: var(--background-light);
    color: var(--text-light);
}

/* =========================
   Links
========================= */
#container a {
    color: var(--link-dark);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    transition: transform 0.3s ease;
}

#container a:hover {
    color: var(--hover-dark);
    text-decoration: underline;
    transform: scale(1.1);
}

body.light-mode #container a {
    color: var(--nav-link-light);
}

body.light-mode #container a:hover {
    color: var(--nav-hover-light);
}

small {
  opacity: 0.7;
  }
/* ========================= Footer ========================= */ 
footer { 
  background-color: var(--footer);
  text-align: center; 
  color: var(--text-dark);
  transition: background-color: 0.3s, color 0.3s; 
}

.blinkie {
  width: 140px;
  height: 35px;
  
  }
body.light-mode footer {
  background-color: var(--background-light);
  color: var(--text-light);
}

/* =========================
   Boxes
========================= */
.box {
    background-color: #000;
    border: 1px solid black;
    padding: 15px;
    margin: 15px 0;
    color: var(--text-dark);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.light-mode .box {
    background-color: var(--light-linear-gradient);
    border-color: var(--border-light);
    color: var(--text-light);
}

/* =========================
   Headings
========================= */
h1, h2 {
    color: var(--heading-dark);
    transition: color 0.3s;
}

h3 {
  color: var(--link-dark);
  }

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: var(--heading-light);
}

/* =========================
   Main Images & Hover
========================= */
main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

main img:hover {
    transform: scale(1.02);
}

/* =========================
   Modal Lightbox
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: auto;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.modal-content.zoomed {
    transform: scale(var(--zoom-scale));
    cursor: zoom-out;
}

#caption {
    margin-top: 10px;
    text-align: center;
    color: #fff;
    font-size: 1em;
    max-width: 98%;
    word-wrap: break-word;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #bbb;
}

/* =========================
   Responsive Flex Layout
========================= */
@media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }
    aside {
        width: 100%;
    }
    main {
        order: 1;
    }
    #leftSidebar { order: 2 !important;
    background: var(--alt-linear-gradient) !important;}
    #rightSidebar { display: none !important;}
    #navbar ul {
        justify-content: center;
        gap: 30px;
    }
    #themeToggle {
        font-size: 1.5em;
        right: 5px;
    }
    #gif {
        display:none;
    }
    #footer {
      background-color: var(--background-dark) !important;
      }
    
    #gif-flip {
        display:none;
    }
    #navbar {
        text-align: left;
        gap: 20 px;
        
    }
  
    #divider {
display:none;
}
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 1em 0;
}

#leftSidebar, #rightSidebar {
  background: var(--dark-linear-gradient);
   display: flex;
    flex-direction: column;
  }

#gif {
  height: 20%;
  width: 90%
}

#gif-flip {
  height: 20%;
  width: 90%;
  transform: scaleX(-1);
}

#divider {
 height: 2%;
 width: 100%;
}

/* BOTH BUTTONS DO NOT LOSE THEM YOU VEGETABLE */
#fontToggle {
    position: static;
    margin-right: 5px;
    right: 60px;
    font-size: 1.2em;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    user-select: none;
    transition: color 0.3s;
    /* eye button */
    flex-shrink: 0;
}

#musicToggle {
    position: static;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 1.4em;
    flex-shrink: 0;
    transition: color .3s;
    margin-left: auto;
}

#musicToggle:hover {
    color: var(--hover-dark);
}

body.light-mode #musicToggle:hover {
    color: var(--nav-hover-light);
}


@media only screen and (max-width: 750px) {
 #navbar {
   gap: 20px;
   font-size: 15px }
}

@media only screen and (max-width: 650px) {
 #navbar ul { gap: 15px; }
}

@media only screen and (max-width: 550px) {
 #navbar ul { gap: 10px; }
 #navbar { font-size: 12px; }
}

#fontToggle:hover,
#fontToggle:focus {
    color: var(--hover-dark);
}

body.light-mode #fontToggle:hover {
    color: var(--nav-hover-light);
}

/* =========================
   Navbar Fix on Mobile
========================= */
@media only screen and (max-width: 450px) {
    #navbar {
        justify-content: space-between;
    }

    #navbar ul {
        gap: 5px;
        justify-content: flex-start;
    }
}
    /* Put buttons back into normal flow */
    #themeToggle,
    #fontToggle {
        position: static;
    }

    /* Wrap buttons in a flex container effect */
    #navbar {
        gap: 10px;
    }
body.sans-font {
    font-family: sans-serif;
}

/* Container for the word */
.tooltip {
  position: relative;
  border-bottom: 2px dashed;
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
  cursor: help;
}

/* Hidden explanation text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: rgb(0 0 0 / 95%);
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 100%; /* Position above the word */
  left: 50%;
  margin-left: -150px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the text on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.plug {
  height: 200px;
  display: flex; 
  justify-content: center;
    flex-direction: column;
  flex: 1;

}

/* =========================
   Infinite Loop / Marquee
========================= */

/* Window */
.loop-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;          /* Prevent flex overflow */
    overflow: hidden;
        flex: 1;
    position: relative;
}

/* Moving track */
.loop-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: loop-animation 15s linear infinite;
}

/* Each copy of the content */
.loop-list {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Optional spacing between items */
.loop-list > * {
    margin-right: 2rem;
}

@keyframes loop-animation {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

