/* Body */
body {
  background-color: #fffbcc !important;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}


/* new modifications */

/*  #f9d776;  #fffbcc 50px or*/  
header {
  background-color:#f4c542;  /* warm golden yellow */
}

nav a {
  color: #333; /* dark text */
}


footer {
  background-color: transparent !important;
  color: #333; /* or white if needed for contrast */
  padding: 10px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .index {
    background-image: url('../Data/UppavaQ.png');
    background-repeat: no-repeat;
    background-size: 50% auto; /* tiles twice horizontally */
    background-position: top center;
  }
}


/* ----- */
/* Background image for index */
.index {
  background-image: url('../Data/UppavaQ.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}



/* Header */
header {
  background-color: #fffbcc;
  padding: 10px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

/* Utility classes */
.text-center {
  text-align: center;
}

/* Input boxes */
.small {
  width: 100%;
  max-width: 80px;
  padding: 6px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Buttons */
#goButton, #prevButton, #nextButton, #playButton {
  padding: 6px 12px;
  font-size: 1em;
  border-radius: 4px;
  border: 1px solid #666;
  cursor: pointer;
  min-width: 60px;
}

/* Sentence first line */
#results p:first-child {
  margin-top: 20px;
  text-align: center;
  font-size: 1.2em;
}

/* Clickable words container (RTL) */
.awrd-container {
  text-align: right;
  direction: rtl;
  padding: 10px;
}

/* Clickable words */
.awrd-word {
  cursor: pointer;
  margin: 0 5px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  font-size: 20px;
  background-color: #ffe680;
}

.awrd-word:hover {
  background-color: #333;
  color: #fff;
}

/* dmword display */
#dmword-display {
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.table-center table {
  margin: 0 auto 20px auto;
  border-collapse: collapse;
  width: 100%;
}

.table-center th, .table-center td {
  border: 1px solid #666;
  padding: 6px 12px;
}

/* Footer */
footer {
  margin-top: 50px;
  padding: 10px;
  background-color: #fffbcc;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .logo {
    font-size: 1.2em;
  }

  .awrd-word {
    font-size: 18px;
  }

  .small {
    max-width: 60px;
  }

  #goButton, #prevButton, #nextButton, #playButton {
    font-size: 0.9em;
    padding: 5px 10px;
    min-width: 50px;
  }

  header, footer {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
  }
}
