body.dark-mode {
  background-color: white;
  color: #81007f;
  font-family: 'Karla', sans-serif;
}

body, 
html {
 overflow-x: hidden; 
}

#home {
  margin-top: 20px;
}

.flag-container {
  background-color: #81007f;
  display: flex;
  left: 0;
  right: 0;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
  border: 2px solid #6d864d;
  border-radius: 5px;
}

.flag-container:hover {
  background-color: #6c0068;
}

.flag-container img {
  flex: 0 0 auto;
  width: 50px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.flag-container img:hover {
  transform: scale(1.1);
}

.flag {
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.content-container {
  max-width: 80%;
  margin: 0 auto;
  background-color: #ffffff;
  color: #ffffff;
  padding: 20px;
  border-radius: 5px;
}

.article-title {
  font-size: 30px;
  margin-bottom: 15px;
  text-align: center;
  color: #6d864d;
}

.article-paragraph {
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  color: #81007f;
  max-width: 100%;
}

.article-paragraph.rtl {
  text-align: right;
  direction: rtl;
}

.image-display img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border: 1px solid #6d864d;
  border-radius: 5px;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.8);
}

.read-aloud {
  padding: 10px 15px;
  margin-top: 15px;
  font-size: 18px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

.read-aloud:hover {
  background-color: #0056b3;
}

footer {
  position: relative;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

footer p {
  font-size: 14px;
  color: white;
}

#languageStatus {
  width: 100vw;
  text-align: center;
  margin-top: 10px;
  color: #6d864d;
}

audio {
  width: 100%;
  height: 50px;
}

#clickMe {
  display: none;
}

#clickMe {
  position: absolute;
  left: 10%;
  transform: translateX(-50%);
  top: 50%;
  cursor: pointer;
  width: 60px;
  height: auto;
}

/* Mobile only — move GIF 50px lower so it doesn't overlap the flag icons */
@media (max-width: 768px) {
  #clickMe {
    top: calc(50% + 50px);
  }
}
