/*fonts*/

@font-face {
  font-family: "PixelFont";
  src: url("fonts/RasterForgeRegular-JpBgm.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaRegular.ttf") format("truetype");
}

@font-face {
  font-family: "AvantGardeBook";
  src: url("fonts/ITCAvantGardeGothicCEBook.otf") format("opentype");
}

@font-face {
  font-family: "AvantGarde";
  src: url("fonts/ITCAvantGardeGothicMedium.otf") format("opentype");
}

/* Loading shtuff */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-gif {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

#loading-text {
  font-family: "PixelFont", sans-serif;
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

#progress-container {
  width: 300px;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: #4caf50;
  animation: fill 1.5s linear forwards;
}

@keyframes fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Main content styling */

.container {
  max-width: 910px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Futura", sans-serif;
  font-size: 14px;
  background: linear-gradient(180deg, #c5eaff, #d6caf5, #b6cef5);
  background-size: 800% 800%;
  -webkit-animation: GradientBGShift 40s ease infinite;
  -moz-animation: GradientBGShift 40s ease infinite;
  animation: GradientBGShift 40s ease infinite;
  position: relative;
  overflow-x: hidden;
}

@-webkit-keyframes GradientBGShift {
  0% {
    background-position: 59% 0%;
  }
  50% {
    background-position: 42% 100%;
  }
  100% {
    background-position: 59% 0%;
  }
}
@-moz-keyframes GradientBGShift {
  0% {
    background-position: 59% 0%;
  }
  50% {
    background-position: 42% 100%;
  }
  100% {
    background-position: 59% 0%;
  }
}
@keyframes GradientBGShift {
  0% {
    background-position: 59% 0%;
  }
  50% {
    background-position: 42% 100%;
  }
  100% {
    background-position: 59% 0%;
  }
}

.h1 #error {
  text-align: center;
  font-size: 24px;
}

#main-content {
  position: relative;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 10px;
  margin: 5px;
  margin-right: 120px;
  margin-left: 120px;
  font-size: 24px;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.5);
}

#Thumbnail {
  width: 50%;
  height: auto;
  display: block;
  margin: 20px auto;
  transition: transform 0.5s ease;
}

#Thumbnail:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px white);
}

#Thumbnail:click {
  transform: scale(0.95);
}

#go-back a img {
  position: absolute;
  left: -60px;
  width: 30px;
  height: auto;
  transition: transform 0.5s ease;
}

#go-back a:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px white);
}
#floating-cinna {
  position: absolute;
  top: -180px;
  right: 50px;
  width: 220px;
  height: auto;
  pointer-events: none;
}

#floating-cinna-sleepy {
  position: absolute;
  top: -135px;
  right: 75px;
  width: 190px;
  height: auto;
  pointer-events: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 10px;
}

.grid-container > a {
  grid-column: span 2;
  margin: 10px;
  background-color: #cbcff2;
  border: 2px solid white;
  border-radius: 10px;
  padding: 10px;
  color: white;
  font-size: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    filter 0.3s ease;
}

.grid-container > a:hover {
  background-color: #dde7ff;
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px white);
}

.grid-container > a:nth-child(4) {
  grid-column: 2 / span 2;
}

.gradient-text {
  background: -webkit-linear-gradient(#5e9fcf, #5482b6);
  background: linear-gradient(#5e9fcf, #5482b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#dev-name {
  img {
    margin-top: 80px;
    margin-left: 120px;
    width: auto;
    height: 70px;
    transition: transform 0.5s ease;
  }
}

#dev-name a:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px white);
}

#links-on-site a img {
  width: auto;
  margin: 30px;
  height: 200px;
  transition: transform 0.5s ease;
}

#links-on-site a:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px white);
}

#links-on-site {
  text-align: center;
  text-decoration: none;
}

#contact-info {
  text-align: center;
}

#contact-info ul {
  list-style: none;
  padding: 10px;
  margin: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#contact-info img {
  width: auto;
  height: 50px;
  transition: transform 0.5s ease;
}

#contact-info a:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px white);
}
