/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: url(../images/Gemini_Generated_Image_ddenxbddenxbdden.png);
  background-size: cover;
  background-position: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: #111;
}


/* ===== NAVBAR ===== */
/* ===== NAVBAR ABSOLUTE SAFE ===== */
.navbar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  
  width: 700px;
  height: 60px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;

  padding: 0 40px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 14px;

  z-index: 9999;
}


.menu-item {
  position: relative;
  font-size: 30px;
  cursor: pointer;
}

.menu-item span {
  padding: 6px 10px;
}

/* ===== DROPDOWN ===== */
.dropdown-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  min-width: 160px;
  flex-direction: column;
  gap: 8px;
}

.menu-item:hover .dropdown-box {
  display: flex;
}

.drop-btn {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  transition: 0.2s;
}

.drop-btn:hover {
  background: #f0f0f0;
}

.logo {
  position: absolute;
  left: 20px;         
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  height: 45px;      
  width: auto;        
  display: block;
}

/* ===== MAIN TITLE ===== */
.mainH1 {
  position: fixed;
  top: 250px;
  font-size: 80px;
  opacity: 0;
  transform: translateY(-50px);
  transition: 0.8s ease;
}

.mainH1.show {
  opacity: 1;
  transform: translateY(0);
}


/* Планшети */
@media (max-width: 1024px) {
  .navbar {
    width: 90%;
    gap: 20px;
    padding: 0 20px;
  }

  .menu-item {
    font-size: 24px;
  }

  .mainH1 {
    font-size: 70px;
    top: 200px;
  }
}

/* Телефони */
@media (max-width: 768px) {

  .navbar {
    width: 95%;
    height: 50px;
    gap: 10px;
    padding: 0 10px;
  }

  .menu-item {
    font-size: 18px;
  }

  .logo img {
    height: 32px;
  }

  .dropdown-box {
    min-width: 130px;
    padding: 8px;
  }

  .drop-btn {
    padding: 6px 10px;
    font-size: 16px;
  }

  .mainH1 {
    font-size: 42px;
    top: 160px;
    text-align: center;
  }

  .my-footer {
    height: 100px;
    font-size: 14px;
  }
}

/* Дуже маленькі телефони */
@media (max-width: 480px) {

  .navbar {
    top: 20px;
  }

  .menu-item {
    font-size: 16px;
  }

  .mainH1 {
    font-size: 32px;
    top: 140px;
  }

  .logo img {
    height: 28px;
  }
}


/* Дуже маленькі телефони, адаптація для 360px */
@media (max-width: 360px) {

  .navbar {
    top: 15px;
    width: 95%;
    height: 45px;
    gap: 8px;
    padding: 0 8px;
  }

  .menu-item {
    font-size: 14px;
  }

  .logo img {
    height: 24px;
  }

  .dropdown-box {
    min-width: 110px;
    padding: 6px;
  }

  .drop-btn {
    padding: 5px 8px;
    font-size: 14px;
  }

  .mainH1 {
    font-size: 28px;
    top: 120px;
    text-align: center;
    line-height: 1.1;
  }

  .test-box {
    width: 90%;
    padding: 20px;
  }

  .my-footer {
    height: 90px;
    font-size: 12px;
    text-align: center;
  }
}


.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  align-items: center;
}

.test-box {
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin-top: 20px;
}

.my-footer {
  width: 100%;
  height: 100px;
  background: #393636;
  color: white;
  text-align: center;
  border-top: 3px solid #555;
  margin-top: auto; 
}


.test-day-btn {
  position: fixed;
  top: -200px; 
  left: 50%;
  transform: translateX(-50%);

  padding: 16px 30px;
  background: white;
  color: black;

  width: 200px;
  height: 120px;

  font-size: 25px;
  font-weight: bold;

  border-radius: 14px;
  border: 3px solid transparent;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: top 0.5s ease;
  z-index: 10000;

 background-image:
  linear-gradient(white, white),
  linear-gradient(90deg, 
    #ff0080,
    #7928ca,
    #2afadf,
    #ff0080
  );


  background-origin: border-box;
  background-clip: padding-box, border-box;

  background-size: 100% 100%, 200% 200%;
  animation: floatSide 2s infinite alternate ease-in-out,
             borderFlow 4s linear infinite;
}
@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}



.test-day-btn.show {
  top: 150px; 

}

@keyframes floatSide {
  from { transform: translateX(-50%) translateY(0); }
  to   { transform: translateX(-50%) translateY(8px); }
}

.test-day-btn:hover {
  font-size: 28px;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
