@font-face {
  font-family: sm;
  src: url("john/fonts/font.otf");
}

body {
  margin: 0;
  top: 0;
  padding: 0;
  position: absolute;
}

#time {
  font-size: 70px;
  left: 0;
  line-height: 200px;
  margin-top: -100px;
  position: absolute;
  text-align: center;
  top: 20%;
  width: 100%;
}

#search {
  width: 100px;
  height: 100px;
  position: absolute;
  bottom: 0;
  left: 10%;
  transform: translateX(-50%);
}

#controller {
  width: 100px;
  height: 100px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

#gear {
  width: 100px;
  height: 100px;
  position: absolute;
  fill: rgb(32, 191, 17);
  opacity: 0.9;
  bottom: 0;
  left: 90%;
  transform: translateX(-50%);
}

#vantajs {
  width: 100%;
  height: 100vh;
  background-color: #0d0c0c;
  position: relative;
}

h1 {
  color: #20bf11;
  font-family: sm;
  opacity: 0.9;
  font-size: 10px;
}

h2 {
  color: #20bf11;
  font-family: sm;
  opacity: 0.9;
  font-size: 25px;
  text-align: center;
  position: relative;
}

.center {
  border-radius: 35px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Ensures proper centering */
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  height: 40%;
  width: 40%;
  backdrop-filter: blur(8px); /* Chrome and Opera */
  box-shadow: inset 0 0 0 200px rgba(255, 255, 255, 0.08);
}

/* Add a zoom-in animation */
@keyframes zoomIn {
  0% {
    transform: scale(0) translate(-50%, -50%); /* Start scaled down and centered */
    opacity: 0;
  }
  100% {
    transform: scale(1) translate(-50%, -50%); /* End at full scale and still centered */
    opacity: 1;
  }
}

.zoom-in {
  animation: zoomIn 1s forwards ease-out;
}

/* Fix the display logic */
.zoomable-content {
  opacity: 0;
  display: none; /* Hidden initially */
  transform: scale(0); /* Start with scale 0 */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.zoom-in {
  display: block; /* Ensure it shows */
  transform: scale(1); /* Full scale */
  opacity: 1; /* Full opacity */
}

img {
  opacity: 1;
  width: 225px;
  height: 225px;
  border-radius: 30px;
  overflow: hidden;
}

.card {
  width: 22%;
  height: 55vh;
  overflow: hidden;
  left: 2%;
  top: 2%;
  margin: 10px;
  background-color: rgba(13, 12, 12, 0.9);
  transition: all 0.2s ease;
  display: inline-block;
  border-radius: 30px;
  border-collapse: separate;
  border: 3px solid #20bf11;
  position: relative;
}

p {
  color: #20bf11;
  font-family: sm;
  opacity: 0.9;
  font-size: 50px;
  bottom: 10%;
  text-align: center;
  padding-bottom: 15%;
}

.card:hover {
  transform: scale(1.1);
}

.img {
  align-items: center;
  position: relative;
  left: 13%;
  bottom: 2%;
}

img {
  opacity: 1;
}

p:hover {
  cursor: url(../img/2023_12_18_0o9_Kleki.png), auto;
}

/* Loading screen styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0c0c;
  display: flex;
  flex-direction: column; /* Stack spinner and text vertically */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 16px solid #f3f3f3; /* 2x the size */
  border-top: 16px solid #20bf11; /* 2x the size */
  border-radius: 50%;
  width: 120px; /* 2x the size */
  height: 120px; /* 2x the size */
  animation: spin 1.5s linear infinite;
  margin-bottom: 20px; /* Add space between spinner and text */
}

#loading-screen p {
  color: #20bf11;
  font-family: "sm";
  font-size: 40px; /* 2x the size */
  text-align: center;
  margin-top: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Basic body styles */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow-x: hidden;
  background-color: #0d0c0c;
}

.AMOO {
  font-size: 100;
}

#wrapper {
  width: 100%;

  border: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Centering the content with absolute positioning */
.content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%; /* Adjust size as needed */
  height: 40%;
  display: none; /* Hidden initially */
  border-radius: 35px;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 200px rgba(255, 255, 255, 0.08);
}

.action-button {
  font-family: sm;
  position: absolute; /* Allows precise placement */
  top: 50%; /* Move to 50% vertically */
  left: 50%; /* Move to 50% horizontally */
  transform: translate(-50%, -50%); /* Center the button */
  font-size: 200px;
  padding: 20px 40px;
  cursor: pointer;
  background: transparent;
  color: #20bf11;

  opacity: 1;
  border-radius: 50px;
  border: 3px solid #20bf11;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.action-button:hover {
  background-color: rgba(32, 191, 17, 0.1); /* Adds a subtle hover effect */
  transform: translate(-50%, -50%) scale(1.05); /* Slight zoom on hover */
}

/* Add a zoom-in animation */
@keyframes zoomIn {
  0% {
    transform: scale(0) translate(-50%, -50%); /* Start scaled down and centered */
    opacity: 0;
  }
  100% {
    transform: scale(1) translate(-50%, -50%); /* End at full scale and still centered */
    opacity: 1;
  }
}

.zoom-in {
  animation: zoomIn 1s forwards ease-out;
}

/* Loading screen styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0c0c;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #20bf11;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-screen p {
  color: #20bf11;
  font-family: "sm";
  margin-top: 20px;
  font-size: 20px;
  text-align: center;
}
