* {
  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 {
  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;
}

.drop-btn {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  transition: 0.2s;
}

.drop-btn:hover {
  background: #f0f0f0;
}

.menu-item {
  position: relative;
  font-size: 30px;
  cursor: pointer;
}

.menu-item span {
  padding: 6px 10px;
}

.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;
}

.logo {
  position: absolute;
  left: 20px;         
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  height: 45px;      
  width: auto;        
  display: block;
}


.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 120px;
}



.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; 
}

#startBtn, #nextBtn, #restartBtn {
  background: #222;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

#testArea, #resultArea {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  width: 90%;
  max-width: 700px;
  min-height: 400px;
  margin-bottom: 20px;
}

#resultArea h3 {
  margin-bottom: 20px;
}


/* Стилі для кнопок вибору (склади та варіанти лексики) */
#syllables, #answers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.syllable, .answer-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #222;
    min-width: 100px;
}

.syllable:hover, .answer-btn:hover {
    border-color: #222;
    background: #fff;
    transform: translateY(-2px);
}

/* Кольори для перевірки */
.correct {
    background: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
}

.wrong {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
}

/* Стилі для таблиці відповідностей */
.match-table {
    border-collapse: separate;
    border-spacing: 5px;
    margin: 20px 0;
}

.match-table td {
    width: 45px;
    height: 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    background: #fff;
    transition: 0.2s;
}

.match-table td:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.match-table th {
    padding: 5px;
    color: #666;
}

#leftOptions, #topOptions {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
}


h1{
  text-align: center;
}

@media (max-width: 1024px) {

  .navbar {
    width: 90%;
    gap: 20px;
    padding: 0 20px;
  }


}

/* Телефони */
@media (max-width: 768px) {

  .navbar {
    width: 95%;
    height: 50px;
    gap: 10px;
  }

  .menu-item {
    font-size: 18px;
  }

  .logo img {
    height: 32px;
  }

}

/* Дуже маленькі телефони */
@media (max-width: 480px) {

  .menu-item {
    font-size: 16px;
  }

 
  }
