/*body stats*/
body {
  margin: 0;
  background: linear-gradient(#9db399, #ffffff);
}

/* everything except the top menu fades between pages */
body::after {
  content: "";
  display: block;
}

.page-content {
  opacity: 0;
  animation: pageFadeIn 0.4s ease forwards;
}

.page-content.page-leaving {
  opacity: 0;
  animation: none;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
html {
    scroll-behavior: smooth;
}

h1 {
  color: blue;
  text-align: center;
  font-size: 60px;
}

p {
  color: red;
  font-size: 30px;
}

/* automatic Link Layout */
a:link {
  color: blue;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: purple;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: red;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}

/*spacing from top screen to title and fade*/
#title {
  padding-top: 280px;
  opacity: 0;
  animation: fadein 2s ease-in forwards;
  transform-origin: top center;
  transition: transform 0.3s ease;
}

#title.shrink {
  transform: scale(0.6);
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#topmenu {
  /*default menu*/
  /*display: flex;*/
  /*align-items: center;*/
  /*background-color: #333;*/

  background-image: url("./img/topmenu_ink_shade.png");
  background-size: cover;
  background-position: center;
  
  height: 250px;
  width: 100%;

  padding-left: 10px;
  padding-right: 30px;
  padding-top: 15px;
  box-sizing: border-box;
  
  position: fixed;
  top: -250px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  transition: top 0.3s;

  z-index: 1000;
}

/* left and right topmenu groups */
.menu-left,
.menu-right {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.menu-right {
  margin-left: auto;
}

/* The links inside topmenu bar */
#topmenu a {
  display: block;
  color: black;
  text-align: center;
  padding: 28px 32px;
  text-decoration: none;
  font-size: 20px;
  transition: 0.2s linear; 
}

/* boxes around the three text links */
#topmenu .menu-left a:not(:first-child) {
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid black;
  border-radius: 15px;
  padding: 12px 20px;
  transition: 
    transform 0.2s, 
    background-color 0.2s, 
box-shadow 0.2s;
}

/* hover */
#topmenu .menu-left a:not(:first-child):hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 20px white;
  text-decoration: none;
}

/* click */
#topmenu .menu-left a:not(:first-child):active {
  transform: translateY(2px);
  background-color: rgba(100, 200, 100, 0.8);
}

#topmenu .menu-left a:first-child:hover {
  background-color: transparent;
}

/* splatt logo */

#topmenu .menu-left a:first-child {
  padding: 0;
}

#topmenu .menu-left a:first-child img {
  display: block;
  width: 240px;
  height: auto;

  /* animation for actions below */
  transition: transform 0.2s ease;
}

/* hover */
#topmenu .menu-left a:first-child:hover img {
  content: url("../img/splattlogohover.png");
  transform: translateY(-5px);
}

/* while clicking */
#topmenu .menu-left a:first-child:active img {
  content: url("../img/splattlogoclicked.png");
  transform: translateY(2px) scale(0.95);
}
/* logo stash */
/* youtube */
#topmenu a:has(#splattube):hover img { 
content: url("../img/splattubehover.png"); 
} 

#topmenu a:has(#splattube):active img { 
content: url("../img/splattubeclicked.png"); 
transform: scale(0.8); 
} 

/* discord */ 
#topmenu a:has(#splattcord):hover img { 
content: url("../img/splattcordhover.png"); 
} 

#topmenu a:has(#splattcord):active img { 
content: url("../img/splattcordclicked.png"); 
transform: scale(0.8); 
} 

/* twitter */ 
#topmenu a:has(#splattwt):hover img { 
content: url("../img/splattwthover.png"); 
} 

#topmenu a:has(#splattwt):active img { content: url("../img/splattwtclick.png"); transform: scale(0.8); }

/* logos topmenu */

#splattube, 
#splattwt, 
#splattcord { 
display: block; 
height: 50px; 
width: auto; 

transition: transform 0.2s; 
} 

/* icon hover */ 
#topmenu a:has(#splattube):hover, 
#topmenu a:has(#splattwt):hover, 
#topmenu a:has(#splattcord):hover { 
  transform: translateY(-8px); 
  background-color: rgba(255, 255, 255, 0.8); 
  box-shadow: inset 0 0 50px white; 
}

/* boxes around logos */
#topmenu a:has(#splattube),
#topmenu a:has(#splattwt),
#topmenu a:has(#splattcord) {
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid black;
  border-radius: 15px;
  padding: 6px;
  transition: 
    transform 0.2s, 
    background-color 0.2s, 
    box-shadow 0.2s;
}

/* boxes outside of topmenu */

/* one large box containing all three icons */ 
.socialcontainer { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 15px; 

  background-color: rgba(255, 255, 255, 0.5); 
  border: 2px solid black; 
  border-radius: 15px; 
  padding: 15px; 
}

/* individual icon boxes */
.socialcontainer .socialbox {
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid black;
  border-radius: 15px;

  padding: 5px; 
  margin: 0;

  transition: 
    transform 0.2s, 
    background-color 0.2s, 
    box-shadow 0.2s;
}

.socialcontainer .socialbox img {
  display: block;
  height: 75px;
  width: auto;
}

.socialcontainer .socialbox:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 50px white;

  text-decoration: none;
}

/* youtube hover/click */ 
.socialcontainer .socialbox:has(img[alt="YouTube"]):hover img { 
content: url("../img/splattubehover.png"); 
transition: transform 0.2s; 
} 

.socialcontainer .socialbox:has(img[alt="YouTube"]):active img { 
content: url("../img/splattubeclicked.png"); 
transform: scale(0.8); 
transition: transform 0.2s;
} 

/* discord hover/click */ 
.socialcontainer .socialbox:has(img[alt="Discord"]):hover img { 
content: url("../img/splattcordhover.png"); 
transition: transform 0.2s;
} 

.socialcontainer .socialbox:has(img[alt="Discord"]):active img { content: url("../img/splattcordclicked.png"); 
transform: scale(0.8);
transition: transform 0.2s; 
} 

/* twitter */ 
.socialcontainer .socialbox:has(img[alt="Twitter"]):hover img { 
content: url("../img/splattwthover.png");
transition: transform 0.2s; 
} 

.socialcontainer .socialbox:has(img[alt="Twitter"]):active img { content: url("../img/splattwtclick.png"); transform: scale(0.8); 
transition: transform 0.2s;
}

.classic_box
{
  width: 80%;
  margin: 60px auto;
  padding: 30px;
  border: 3px solid black;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}


/* the bottommenu bar */
#bottommenu {
  overflow: hidden;
  background-color: #333;
  width: 100%;
}

/* the links inside bottommenu bar */
#bottommenu a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 28px 32px;
  text-decoration: none;
  font-size: 17px;
}

/* background change when mouse is on */
#bottommenu a:hover {
  background-color: #ddd;
  color: black;
}

#bottommenu a:active {
  Background-color: green;
  color: white;
}
