/* Container Styles */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 85vh;  /* Ensure the container fills the viewport */
}

/* Header Styles */
.header {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  text-align: center;
}

/* Body Styles */
.body {
  padding: 20px;
}

/* normal container class, for filling out the whole page */
.main {
  flex: 1;
  min-height: 0;
  max-inline-size: 90%;
  overflow: auto;
}

/* center stuff for e.g. the grid of riddles */

.maincentered {
  flex: 1;
  display: flex;  /* Make the item a flex container */
  justify-content: center;  /* Horizontally center the inner content */
  align-items: center;  /* Vertically center the inner content */
}

.grid {
  display: grid;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  place-content: center;
}

.grid_element {
  position: relative;
  border: thin solid black;
  align-items: center;
  display: flex;
  justify-content: space-between;  /* Centers content horizontally */
  text-align: center;
  flex-direction: column;
}


/* Footer Styles */
.footer {
  background-color: #f4f4f4;
  padding: 10px;
  border-radius: 0 0 8px 8px;
  text-align: center;
}


/* for checkmarks if a riddle is solved or failed */
.overlay-image {
  position: absolute;
  /* Positioning for overlay */
  width: 100%;  /* Makes the image take up full width */
  height: auto;  /* Maintains aspect ratio */
  opacity: 0.4;  /* Adjusts the transparency */
  pointer-events: none;  /* Allows interaction with underlying content */
}



/* General message container */
.message {
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}

/* Different message types */
.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.message.info {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

/* Optional: Add transition for appearing and disappearing */
.message {
  transition: opacity 0.3s ease-in-out;
}

.errorlist {
  list-style: none;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* For multiple choice riddles */

.riddle-box {
  border: 2px solid rgb(96 139 168);
  border-radius: 5px;
  background-color: rgb(96 139 168 / 0.2);
  position: relative;
  align-items: center;
  display: flex;
  justify-content: space-between;
  text-align: center;
  flex-direction: column;
  overflow: auto;
}

.image-box {
    width: 80px; /* Set desired width, must be smaller than the 100px from the grid! */
    height: 80px; /* Set desired height, must be smaller than the 100px from the grid! * */
    background-size: contain; /* Cover the entire box */
    background-position: center; /* Center the image */
    background-repeat:no-repeat;
}

.text-box {
  margin-top: 10px;
}
/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

/* Navbar Styles */
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #333;
  padding: 15px 30px;
}

.logo {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.logo a:link {
  text-decoration: none;
  color: #fff;
}

.logo a:visited {
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #333;
  padding: 15px 30px;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff4081;
  /* A bright color for hover effect */
}

.nav-links .btn {
  background-color: #333;
  color: #fff;
  border: none;
  font-size: inherit;
  font-family: 'Arial', sans-serif;

}


/* for game status */
.game-stats,
.game-stats th,
.game-stats td {
  border: 1px solid black;
  border-collapse: collapse;
}

.game-stats th,
.game-stats td {
  text-align: center;
  padding: 10px;
}

.audio-player {
    margin-top: 10px;           /* have a margin to the box of the grid */
}

audio {
    display: none;              /* Hide the default audio controls */
}

.play-button {
    background: transparent;    /* Make button background transparent */
    border: none;               /* Remove border */
    cursor: pointer;            /* Change cursor to pointer */
}

.play-button img,
.play-button svg {
    width: 24px;                /* Set icon size */
    height: 24px;               /* Set icon size */
    fill: #007bff;              /* Set color for the icon */
}

.onlytext {
  margin-left: 10%;
}

.flavour-text {
  background-color: #d4edda;
}

.solution {
  background-color: #d4edda;
}
