
#SelectButton {
  max-width: 240px; /* Встановіть бажану мінімальну ширину */
  }

#div-top {
  padding-top: 16px;
}

#div-bottom {
  padding-bottom: 12px;
}

#div-btn {
  padding: 4px;
}

#div-btn button {
  min-height: 42px;
}

#div-btn a {
  color: #363636;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none; 
}

#div-btn a:hover {
  color: black;
  font-size: 0.9rem;
  font-weight: 400;
  /* text-decoration: underline;  */
}

#div-info {
  font-size: 0.9rem;
}

#div-small {
  font-size: 0.75rem;
}

#text-box {
  /* background-color: rgb(51, 51, 51); */
  background-color: rgba(12, 111, 106, 1);
  border: 5px solid #b4b4b4;
  border-radius: 4px;
  padding-top: 10px; 
  padding-bottom: 14px; 
  padding-left: 16px;  
  padding-right: 16px;    
  /* font-style: italic; */
  font-weight: 400;
  color: #fefefe;
}

#wordDisplay {
  /* background-color: rgb(51, 51, 51); */
  background-color: rgba(12, 111, 106, 1);
  border: 5px solid #b4b4b4;
  border-radius: 4px;
  padding-top: 10px; 
  padding-bottom: 14px; 
  padding-left: 16px;  
  padding-right: 16px;    
  /* font-style: italic; */
  font-weight: 400;
  font-size: 20pt;
  color: #fefefe;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 160px;
}

#translationContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100px;
}

#showTranslationBtn {
  display: block;
  /*background-color: red;*/
}

#translationDisplay {
  display: none;
}

#nextWordBtn {
  display: none;
}

.translation-visible {
  font-size: 20pt;
  /*color: #f11212;*/
  text-align: center;
  padding: 10px;
  background-color: #fefefe;
  display: block;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
  }
  
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  

#video-text {
    font-size: 0.9rem;
  }

/* Стиль для великих екранів */
#text_to_sp {
  column-count: 2;
  column-gap: 48px; /* Відстань між колонками */
}

/* Стиль для маленьких екранів */
@media (max-width: 1000px) {
  #text_to_sp {
      column-count: 1;
  }
}

.textbooks-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start; /* елементи починаються зліва */
}

.textbook-card {
  display: flex;          /* робимо картку flex-контейнером */
  flex-direction: column;
  flex: 0 0 360px; /* Фіксована ширина 300px, не росте і не зменшується */
  box-sizing: border-box;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  background: #f9f9f9;
  p {
    margin-bottom: 0;
  }
}

.textbook-card .bottom-block {
  margin-top: auto; /* відсуває цей блок вниз */
}

.textbook-card iframe {
  width: 400px;
  height: 300px;
  border: none;
}

.textbook-card .bottom-block {
  margin-top: auto; /* відсуває цей блок вниз */
  display: flex;
  align-items: flex-start;        /* вирівнювання по верхньому краю */
  gap: 5px;                      /* відстань між блоками */
}

.textbook-card .book-block {
  width: 120px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-style: italic;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: center;
}

.textbook-card .links-block {
  display: flex;
  flex-direction: column; /* щоб посилання йшли вертикально */
  justify-content: flex-start; /* вирівнювання зверху */
  align-items: flex-start;     /* вирівнювання ліворуч */
  text-align: left;
  margin: 0; /* прибираємо можливі зовнішні відступи */
}

.textbook-card .book-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* обрізає і зберігає пропорції */
}

.textbook-card .links-block ul {
    list-style: disc;   /* або circle, square — як треба */
    padding-top: 18px;
    padding-left: 18px;  /* відступ зліва, можна 0 */
    display: flex;
    flex-direction: column;
    gap: 8px;           /* відстань між рядками */
}
