/*
* Global Selectors
*/
@font-face {
  font-family: "pixel";
  src: url("../src/fonts/Minecraft.ttf") format("truetype");
}

@font-face {
  font-family: rocketship;
  src: url("../src/fonts/Supersonic\ Rocketship.ttf");
}
:root {
  --primary-green: #61ce8c;
  --green-dark: #48bc76;
  --green-light: #8fe9b3;
  --primary-purple: #ad6bf9;
  --font: "Comic Sans MS", "Comic Sans", cursive;
}

* {
  padding: 0;
  margin: 0;

  font-size: 1vw;
}
body {
  display: flex;
  flex-direction: column;
  padding: 3vw;
  justify-content: center;
  background-color: rgb(118, 104, 124);
  overflow-x: hidden;
  font-family: var(--font);
}

header,
main,
#marquee,
footer {
  box-sizing: border-box;
}

/*
* HEADER
*/

header {
  display: flex;
}

#left {
  width: 50%;
  box-sizing: border-box;
}

#section-logo {
  width: 40vw;
  height: 12vw;
  background-color: var(--primary-green);
  border-top-left-radius: 5vw;
}

#logo {
  position: relative;
  font-family: rocketship;
  text-align: center;
  color: var(--primary-purple);
  text-shadow: 0.25vw 0.25vw black;
  top: 1vw;
  left: -10vw;
  rotate: -10deg;
  font-size: 3vw;
  cursor: pointer;
}

.animated-spin {
  animation-name: spin;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-direction: forward;
}

#separator {
  display: flex;
  width: 30vw;
  justify-content: flex-start;
}

#right {
  margin-top: 1vw;
  margin-left: 2vw;
  background-color: var(--primary-purple);
  width: 40vw;
  height: 15vw;
}

#right h2 {
  font-size: 3vw;
  position: relative;
  top: -1.5vw;
  text-shadow: 0.25vw 0.25vw black;
}

#right p {
  position: relative;
  top: -1.5vw;
  font-size: 1vw;
  padding: 0.5vw;
}

#smoking-pirate {
  top: -11vw;
  left: 27vw;
  position: relative;
  height: 15vw;
}

#message-container {
  position: relative;
  left: -1vw;
  background-color: black;
  border-radius: 0.5vw;
  width: 100%;
  width: 42vw;
  height: 3vw;
  color: white;
  display: flex;
  align-items: center;
  font-size: 2vh;
  letter-spacing: 0.25vw;
  justify-content: center;
}

#message {
  font-family: "pixel";

  float: right;
  text-align: center;
  animation-name: pulse;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  z-index: 1;
}

#spacer-container {
  display: flex;
  width: 40vw;
  height: 3vw;
}

#entrance {
  background-color: rgb(49, 49, 49);
  border-left: 1vw solid var(--primary-purple);
  min-width: 10vw;
  height: 100%;
}

#entrance > .nav-link {
  height: 5vw;
  margin-top: 1vw;
}

#spacer {
  background-color: #61ce8c;
  width: 100%;
  border-bottom-right-radius: 30vw;
}

.nav-link {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  list-style: none;
  height: 2vw;
  font-weight: bold;
}

.nav-link > a {
  color: white;
  text-decoration: none;
  margin: 0 1.5vw;
}

/*
* MAIN
*/

main {
  display: flex;
}

/*
* NAV
*/
nav {
  background-color: rgb(49, 49, 49);
  border-left: 1vw solid var(--primary-purple);
  min-width: 10vw;
}

nav h3 {
  font-family: rocketship;
  color: var(--primary-green);
  letter-spacing: 0.3vw;
  font-size: 1.25vw;
  padding: 0.5vw 0;
  padding-left: 1vw;
}

nav ul {
  margin-bottom: 0.5vw;
}

/*
* CONTENT
*/

#content {
  width: 100%;
  display: grid;
  grid-auto-rows: 9.8vw;
  padding: 0.25vw;
  grid-template-columns: repeat(8, 9.8vw);
  gap: 0.5vw;
  height: 40.75vw;
}

.item {
  display: flex;
  flex-direction: column;
}

#marx-ad {
  justify-content: space-between;
}

#terrabsurda {
  border-top: 0.5vw solid rgb(240, 240, 240);
  border-right: 0.5vw solid gray;
  border-left: 0.5vw solid lightgray;
  border-bottom: 0.5vw solid rgb(107, 107, 107);
}
#favs {
  display: flex;
  flex-direction: row;
}

#favs > p {
  background-color: #61ce8c;
  width: 2vw;
  height: 100%;
  text-wrap: wrap;
}
#faves > p > span {
  font-family: rocketship;
}

#favs-buttons img {
  height: 2vw;
}

/*
* STAMP MARQUEE
*/

#marquee {
  background-color: black;
  display: flex;
  align-items: center;
  overflow-x: hidden;
  height: fit-content;
  box-sizing: border-box;
}

.stamp-container {
  display: flex;
  padding: 0.5vw 0;
  border-top: 0.2vw solid var(--primary-green);
  border-bottom: 0.2vw solid var(--primary-green);
  margin: 0.15vw 0;
  /*animation: loop 10s infinite linear;*/
}

.stamp-container img {
  width: 6vw;
  height: 3vw;
  padding: 0 0.5vw;
}

/*
* FOOTER
*/

footer {
  display: flex;
  justify-content: space-evenly;
  background-color: var(--primary-green);
  align-items: center;
  padding: 1vw 0;
  border-bottom-left-radius: 10% 30px;
  border-bottom-right-radius: 10% 30px;
}

/*
* POPUPS
*/

#pop-up {
  background-color: rgba(0, 0, 0, 0.589);
  z-index: 3;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

#td {
  background-image: url("../src/img/notepad-background.png");
  background-position: center;
  background-size: cover;
  font-family: var(--font);
  width: 25vw;
  height: 15vw;
  padding: 5vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#td h2 {
  font-size: 2.5vw;
}

.close {
  position: absolute;
  top: 5%;
  left: 90%;
  cursor: pointer;
}

/*
* KEYFRAMES
*/
@keyframes loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes spin {
  from {
    transform: rotate(-10deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.hidden {
  display: none;
}

.scrolling-disabled {
  overflow: hidden;
  max-width: 100vw;
  max-height: 100vh;
}
