/*
colors:
light pink: #FFE9F9
DARK PINK: #F35A9C

-------------------------------------------
variables i want to switch
body- background color, color

nav- border color, background color
nav ul li a - color , :hover - color
nav img

footer - border color
footer #connections div a - color
footer #connections div:hover - color

--------------------------------------------
font color:
- light: black 
- light hover: DARK PINK: #F35A9C
- dark: light pink: #FFE9F9
- dark hover: DARK PINK: #F35A9C

background color: 
- light: light pink: #FFE9F9
- dark: black

border color: 
- light: black
- dark: light pink: #FFE9F9

button:
- light: light pink: #FFE9F9
- light hover: DARK PINK: #F35A9C
- dark: black
- dark hover: DARK PINK: #F35A9C

button font color: 
- light: black
- light hover: black
- dark: light pink: #FFE9F9
- dark hover: black
footer and nav image sources: 


*/


:root {
  --lightPink:#FFE9F9;
  --darkPink:#F35A9C;
  --black:black;
}


/*this starts the regular css*/
body {
    background-color: var(--black);
    color: var(--lightPink);
    font-family: "Source Code Pro", monospace;
    font-weight: 300; 
    font-optical-sizing: auto;
    font-style: normal;

}
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    font-style: normal;
}
h1 {
    font-size: 400%;
}
h2 {
    font-size: 300%;
}
h3 {
    font-size: 200%;
}
h4 {
    font-size: 100%;
}
p, li {
    font-size: 150%;
}
/*this is for the toggle switch*/
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 4rem;
  height: 2rem;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--lightPink);
  -webkit-transition: .4s;
  transition: .4s;
  border: solid 2px;
  border-color: var(--lightPink);
}
.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 2.5px;
  background-color: var(--darkPink);
  -webkit-transition: .5s;
  transition: .5s;
}
input:checked + .slider {
  background-color: black;
}
input:focus + .slider {
  box-shadow: 0 0 1px black;
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
  border-radius: 10rem;
}
.slider.round:before {
  border-radius: 70%;
}
/*end toggle switch*/
nav {
    border-style: solid;
    border-width: 2px;
    border-color: var(--lightPink);
    margin: auto;
    text-align: center;
    background-color: var(--black);
    position: sticky;
    top: 0;
    overflow: hidden;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr;
    z-index: 1000;

}
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}
nav ul li {
    padding: 0.5rem 2rem 0.5rem 2rem;
}
nav ul li a {
    text-decoration: none;
    color: var(--lightPink);
    position: relative;
    display: inline-block; /* Ensures transform works as expected */
    transition: transform 0.5s ease;
    font-size: 90%;

}
nav ul li a:hover {
    text-decoration: underline;
    color: var(--lightPink);
    font-weight: bold;
    transform: translateY(-10px); /* Move up smoothly */
}
nav #viewModes{
  grid-column: 1/2;
  grid-row: 1/2;
  display: flex;
  align-items: center;
  margin-left: 1rem;
}
nav #pages {
  grid-column: 2/3;
  grid-row: 1/2;
}
nav #icons {
  grid-column: 3/4;
  grid-row: 1/2;
  display: flex;
  align-items: last baseline;
  justify-content: flex-end;
}
nav #icons a {
  text-decoration: none;
}
nav #icons img {
  width: 2rem;
  position: relative;
  transition: transform 0.5s ease;
  margin: 1rem;
}
nav #icons img:hover {
    transform: translateY(-10px); /* Move up smoothly */
  }
body, main, footer {
    width: 96%;
    margin: 0rem auto;
}
body {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

/*----------------FOOTER SECTION*/
footer {
  border-style: solid;
  border-width: 2px;
  border-color: var(--lightPink);
  margin: auto;
  text-align: center;
}
footer #connections {
  display: flex;
  align-items: baseline;
  justify-content: space-around;
}
footer #connections div a{
  text-decoration: none;
  color: var(--lightPink);
  
}
footer #connections div:hover {
  text-decoration: underline;
  color: var(--lightPink);
  font-weight: bold;
  transform: translateY(-30px);
  display: inline-block; /* Ensures transform works as expected */
    transition: transform 0.5s ease;
}
footer #connections div img{
  width: 8rem;
}
/*----------------END FOOTER SECTION*/

@media (max-width: 480px) {
    /* Hamburger menu styles */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 2rem;
        height: 2rem;
        position: absolute;
        top: 2rem;
        left: 2rem;
        cursor: pointer;
    }
    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: var(--lightPink);
        transition: all 0.3s ease-in-out;
    }
    /*I WANNA SEE IF I CAN MAKE THIS PART WITH JS*/
    /* Hide the default navigation links */
    .nav-links {
        display: none;
    }
    /* When the nav is active, show the links in a full-screen overlay */
    nav.active .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        justify-content: center;
        align-items: center;
        z-index: 99;
    }
    nav.active .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    /* Animate the hamburger menu into an 'X' */
    nav.active .hamburger-menu .bar:nth-child(2) {
        opacity: 0;
    }
    nav.active .hamburger-menu .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }
    nav.active .hamburger-menu .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }
    /*END JS SECTION FOR NOW IG*/
    nav, main  {
        margin: 0 auto;
        padding: 1rem;
    }
    nav {
      justify-content: flex-end; /* Align other nav elements to the right */
    }
    h1 {
      font-size: 200%;
    }
    h2 {
      font-size: 300%;
    }
    h3 {
      font-size: 100%;
    }
    img {
      width: 100%;
      margin: 1rem auto;
    }
    footer #connections div a img {
      width: 4rem;
    }
}
/*This is for the fade in of elements*/
.fade-in-up-on-scroll {
  opacity: 0;
  transform: translateY(200px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-up-on-scroll.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}
.subtitle-typewriter {
  visibility: hidden;
}