:root {
  font-size: 16px;
  font-family: 'Quicksand';
  font-weight: 550;
  --text-primary: #b6b6b6;
  --text-secondary: #ececec;
  --bg-primary: #23232e;
  --bg-secondary: #141418;
  --transition-speed: 400ms;
  --fa-primary: rgb(246, 200, 250);
  --fa-secondary: #6649b8;
  counter-reset: heading;
}

@font-face {
  font-family: "maple"; 
  src: url("fonts/Maplestory Bold.ttf");
}

iframe{
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

body {
  color: black;
  background-color: rgb(246, 200, 250);
  margin: 0;
  padding: 0;
  counter-reset: section
}

body::-webkit-scrollbar {
  width: 0.35rem;
}

body::-webkit-scrollbar-track {
  background: rgb(246, 200, 250);
}

body::-webkit-scrollbar-thumb {
  background: #6649b8;
}

main{
  margin-left: 7rem;
  margin-right: 2rem;
}

hr.rounded {
  border-top: 4px solid #6649b8;
  border-radius: 3px;
}

.logo {
  font-weight: bold;
  
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  font-size: 1.5rem;
  letter-spacing: 0.3ch;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo svg {
  transform: rotate(0deg);
  transition: var(--transition-speed);
  max-height: 4rem;
  min-height: 4rem;
}

.logo-text
{
  display: inline;
  position: absolute;
  left: -999px;
  transition: var(--transition-speed);
  padding-top: 1rem;
  padding-left: 1rem;
}

.navbar:hover .logo svg {
  transform: rotate(-180deg);
  
}


.navbar{
  width: 5rem;
  height: 100vh;
  position: fixed;
  background-color: var(--bg-primary);
  transition: 200ms ease;
  overflow: hidden;
}

.navbar-nav{
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item{
  width: 100%;
}


.nav-item:nth-last-child(-n+2){
  margin-top: auto;
}
.nav-item:last-child{
  margin-top: 0%;
}


.nav-link{
  display: flex;
  align-items: center;
  height: 5rem;
  color: var(--text-primary);
  text-decoration: none;
  filter: grayscale(100%) opacity(0.9);
  transition: var(--transition-speed);
}
.nav-link:hover{
  filter: grayscale(0%);
  background: var(--bg-secondary);
  color: var(--text-secondary);

}

.link-text{
  display: none;
  margin-left: 1rem;
}

.nav-link svg{
  min-width: 2rem;
  margin: 0 1.5rem;
  max-width: 2rem;
}

.navbar:hover {
  width: 16rem;
}

.navbar:hover .link-text {
  display: block;
}

.fa-primary{
  color: pink;
}

.fa-secondary{
  color: purple;
}

.fa-primary,
.fa-secondary{
  transition: var(--transition-speed);
}



h1 {
  color: rgb(67, 35, 120);
  text-align: center;
  padding: 2rem;
  font-family: maple;
}

h2{
  margin-top: 2rem;
}
h3{
  margin-top: 2rem;
   counter-increment: heading;
   background-image: linear-gradient(to right, rgba(200,200,200,1), rgba(255,0,0,0));
   
}
h3::before{
  content: counter(section) ")." ;
  counter-increment: section;
  vertical-align: super;
  font-size: smaller;
  
  
  
}


p {
  text-align: justify;
  margin-left: 2rem;
  margin-right: 2rem;
}

.gugi-regular {
  font-family: "Gugi", serif;
  font-weight: 400;
  font-style: normal;
}
.quicksand {
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.delius-unicase-regular {
  font-family: "Delius Unicase", serif;
  font-weight: 400;
  font-style: normal;
}
.delius-unicase-bold {
  font-family: "Delius Unicase", serif;
  font-weight: 700;
  font-style: normal;
}


.homebody-container {
  display: grid;
  grid-template-columns: 45% 45%;
  grid-template-rows: auto auto;
  justify-content: space-evenly;
  gap: 2rem;
  text-align: justify;
}

.homebody-container div {
  background-color: #ff00c82e;
  border: 1px solid black;
  padding: 20px;
  border-radius: 2rem;
  font-size: 100%;
  text-align: center;
  box-shadow: 3px 3px 10px, 1px 1px white inset;
  }

.bottompin-text {
  display: flex;
  position: absolute;
  bottom: 5;
  right: 0;
  text-align: right;
  margin-right: 0.5rem;
}

.useful-grid{
  display:grid;
  grid-template-columns: 30% 30% 30%;
  grid-template-rows: auto;
  justify-content: space-evenly;
  padding: 2rem;
  gap: 2rem;
  
  }

.useful-grid div {
  background-color: #00d0ff6a;
  border: 1px solid black;
  padding: 20px;
  font-size: 100%;
  text-align: center;
  box-shadow: 3px 3px 10px, 1px 1px white inset;
  border-radius: .5rem;
  color: black;
  
}

.useful-grid a{
  text-decoration: none;
}

.useful-grid div:hover{
  background-color: #6649b8;
    color: white;
  transition: 200ms;
  }



.credits {
  background-color: #ff00c82e;
  border: 1px solid black;
  padding: 20px;
  font-size: 100%;
  text-align: center;
  margin-left: 7rem;
  margin-right: 2rem;
  margin-top: 1rem;
}



















































/*FOR MOBILE DEVICES*/







@media screen and (max-width: 600px) {
  
  h1 {
    color: rgb(67, 35, 120);
    text-align: center;
    padding: 2rem;
    font-family: Maplestory OTF;
    font-size: 150%;
  }
  
  .homebody-container {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    justify-content: center;
    gap: 2rem;
    text-align: justify;
  }
  
  .homebody-container div {
    background-color: #ff00c82e;
    border: 1px solid black;
    padding: 5px;
    font-size: 85%;
    text-align: center;
    border-radius: .5rem;
  }

  .bottompin-text {
    display: flex;
    position: absolute;
    bottom: 5;
    font-size: 70%;
  }
}

/* Small screens */
@media only screen and (max-width: 600px) {
  .navbar {
    bottom: 0;
    width: 100vw;
    height: 5rem;
  }

  .logo {
    display: none;
  }

  .navbar-nav {
    flex-direction: row;
  }

  .nav-link {
    justify-content: center;
  }

  main {
    margin-left: 2rem;
  }
}

/* Large screens */
@media only screen and (min-width: 600px) {
  .navbar {
    top: 0;
    width: 5rem;
    height: 100vh;
  }

  .navbar:hover {
    width: 16rem;
  }

  .navbar:hover .link-text {
    display: inline;
  }

  .navbar:hover .logo svg
  {
    margin-left: 11rem;
  }

  .navbar:hover .logo-text
  {
    left: 0px;
  }
}