/* General Styles */
html, body {
  height: 100%;
  width: 100%;
  background-color: #dedede;
  color: black;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  transition: background-color 0.5s ease, color 0.5s ease;
}

header {
  width: 100%;
  height: 100px;
  padding: 10px 0;
  background-color: #c8c8c8;
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.header-divider {
  width: 100%;
  height: 2px;
  background-color: #7d7d7d;
  position: fixed;
  top: 100px;
  z-index: 9;
}
.link {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.5s ease, color 0.5s ease;
}

#darkModeToggle {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

main {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main .content {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.darkLightText {
  color: #646464;
}

/* Common & Simple Styles */
.orbitron {
  font-family: 'Orbitron', sans-serif;
}
.hidden {
  display: none;
}
.center {
  align-self: center;
  text-align: center;
  align-items: center;
  vertical-align: middle;
}
.rounded {
  border-radius: 20px;
}
.scrollable {
  overflow-y: auto;
}
.divider {
  width: 100%;
  height: 2px;
  background-color: #7d7d7d;
  margin: 30px 0;
}

/* Dark Mode Styles */
html.dark-mode, body.dark-mode {
  background-color: #1e1e1e;
  color: white;
}

header.dark-mode {
  background-color: #282828;
  color: white;
}

main .content.dark-mode {
  background-color: #323232;
  color: white;
}

.header-divider.dark-mode {
  background-color: #afafaf;
}

.divider.dark-mode {
  background-color: #afafaf;
}




/* ────────────────────────────────
   Question blocks
   ────────────────────────────────*/
.questionContainer {
  /* basic layout */
  margin: 25px 0;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: background-color 0.5s ease, color 0.5s ease;

  /* subtle border to set it apart from the white main card */
  border: 2px solid #2196f3;     /* material-blue accent */
  background-color: #c8c8c8;     /* very light gray */

  /* smooth reveal */
  animation: slideFade 0.35s ease-out both;
}

/* dark-mode variant */
html.dark-mode .questionContainer,
body.dark-mode  .questionContainer {
  border-color: #64b5f6;         /* lighter blue on dark bg */
  background-color: #2a2a2a;     /* almost matches your dark card */
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* centre the inputs/buttons a bit nicer */
.questionContainer h5           { margin-top: 0; }
.questionContainer button,
.questionContainer input[type="number"] {
  margin: 12px 6px 0 0;
}

/* slide-and-fade keyframes */
@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
