@keyframes titleFade {
    0%   {color: #6474ff;}
    25%   {color: #649aff;}
    50%   {color: #64e0ff;}
    75%   {color: #649aff;}
    100%   {color: #6474ff;}
}

#myVideo {
  display: none;
}
body.darkMode #myVideo {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
object-fit: cover;
  display: block;
  width: 100%;      /* fit by width */
  height: auto;     /* keep aspect ratio */
  z-index: 0;
  filter: brightness(0.8);
}
main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

#homeLink {
    text-decoration: none;
    z-index: 6;
}

#socials {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: -10em;
    background-color: transparent;
    z-index: 6;
}
#webTitle{
    text-align: center;
    color: #6474ff;
    text-shadow: 2px 2px 4px rgba(110, 110, 110, 0.5);
    animation: titleFade 3s;
    animation-iteration-count: infinite;
    font-family: Arial;
    font-weight: bolder;
    font-size:3rem;
    margin-top: -0.1rem;
    padding-bottom: 1rem;
    height: 71px;
}
#webTitleLarge{
    text-decoration: none;
    text-align: center;
    color: #6474ff;
    text-shadow: 2px 2px 4px rgba(110, 110, 110, 0.5);
    animation: titleFade 3s;
    animation-iteration-count: infinite;
    font-family: Arial;
    font-weight: bolder;
    font-size:3rem;
    margin-top: -0.1rem;
    height: 71px;
        z-index: -1;
}
#homeLink{
    text-decoration: none;
    background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}
html, body {
    margin: 0;
    min-height: 100vh;
}
#homeFooter{
    text-align: center;
    bottom: 0;
    position: fixed;
    left: 0;
    width: 110%;
    font-family: monospace;
    color: #09090b;
}
#landingFooter{
    text-align: center;
    bottom: 0;
    position: fixed;
    left: 0;
    width: 100%;
    font-family: monospace;
    color: #09090b;
}
body.darkMode #mail{
    font-family: monospace;
    color: #25759c;
}
#mail{
    font-family: monospace;
    color: #303030;
}
#mail:hover{
    font-family: monospace;
    color: #000000;
    font-weight: bold;
}
body.darkMode #mail:hover{
    color: #33B4F4;
    font-weight: bold;
}
body{
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.darkMode *{
    background-color: transparent;
    color: #33B4F4;
}
body.darkMode {
  /* Base: black at top/bottom, middle will be overridden by JS */
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 15%,
    #111111 50%,
    #000000 85%,
    #000000 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  background-attachment: fixed;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.svgButton{
    width: 2em;
    height: 2em;
    background-color: transparent;
    vertical-align: -0.125em;
    fill: black;
}
body.darkMode .svgButton{
    width: 2em;
    background-color: transparent;
    height: 2em;
    vertical-align: -0.125em;
    fill: #33B4F4;
}
section, div, header, footer {
    background-color: transparent;
}
body{
    position: relative;
    height: 100%;
    top: 0;
    margin-right: 0;
    background-color: #dddae7;
}
#nav{
    height: 100%;
    width: 10%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    padding-left: 1rem;
    padding-top: 1rem;
    border-right: 2px solid #bda9a9;
    margin-right: 1%;
}
body.darkMode #nav{
    height: 100%;
    width: 10%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    padding-left: 1rem;
    padding-top: 1rem;
    border-right: 2px solid #312b2b;
    margin-right: 1%;
}
#mainTrue{
    height: 100vh;
    margin-left: 10%;
}
#articles{
    display: flex;
    flex-wrap: wrap;
}
.mainContent{
    height: 20rem;
    text-align: center;
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
    border: 3px solid #0000004f;
    border-radius: 15px;
    margin-left: 5rem;
    width: fit-content;
}
body.darkMode .mainContent{
    height: 20rem;
    text-align: center;
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
    border: 3px solid #ffffff2d;
    border-radius: 15px;
    margin-left: 5rem;
    width: fit-content;
}
body.darkMode .mainContent:hover, body.darkMode .mainContent:hover *{
    background-color: #495268;
}
.mainContent:hover,
.mainContent:hover *{
    background-color: #d3daec;
}
.socialList{
    color: rgb(33, 39, 43);
    padding-top: 10rem;
    z-index: 10;
}
.socialList>a{
    text-decoration: none;
    font-family: Helvetica;
    color: rgb(33, 39, 43);
    transition: 0.3s;
    z-index: 10;
}
body.darkMode .socialList>a{
    text-decoration: none;
    font-family: Helvetica;
    color: rgb(191, 203, 211);
    transition: 0.3s;
}
#insta:hover{
    font-family: Helvetica;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #672cd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#discord:hover{
    
    color: #5364f9;
    transition: 0.3s;
}
.socialList>#tiktok:hover{
    text-shadow: 0.05em 0.05em 0 #fe2b58, -0.05em -0.05em 0 #26f6ef;
}
#buttons{
    position: fixed;
    bottom: 0;
    right: 0;
    margin-right: 1%;
    margin-bottom: 1%;
}
#buttons #mute {
  cursor: pointer;
  color: #050908;
  background-color: transparent;
  border: 2px solid #33B4F4;
  border-radius: 1.25rem;
}
#buttons #darkmode {
    display: none;
}
#buttons body.darkMode button:hover {
    background-color: #ffffff27;
}
#buttons button:hover {
    background-color: #00000027;
}
@media (max-width: 768px) {
   #insta{
    font-family: Helvetica;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #672cd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#discord{
    
    color: #5364f9;
    transition: 0.3s;
}
.socialList>#tiktok{
    text-shadow: 0.05em 0.05em 0 #fe2b58, -0.05em -0.05em 0 #26f6ef;
} 
/* Prevent all scrolling on mobile devices */
html, body {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}
/* Make the title image fill available width on mobile while preserving aspect ratio */
#webTitleLarge img {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: auto;
    margin: 0 auto;
}
#myVideo {
    display: block;
    height: 100%;
    max-height: 100vw;
    width: auto;
    margin: 0 auto;
    object-fit: cover; 
}
}
#darkmode *{
    display: none;
    color: transparent;
    border: none;
}