@charset "UTF-8";

html {
  background-color: black;
}
body {
  background: url("images/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
img {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 8px;
  column-gap: 8px;
  margin-top: 2px;
  filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.5));
}
#countdown {
	font-variant-numeric: tabular-nums;
}
.flash {
  animation: flash 1s linear infinite;
  color: #b21f27;
}
@keyframes flash {
  50% {
    opacity: 1;
    color: #f8d904;
  }
}
.cards {
  max-height: 100vh;
  align-content: center;
  height: 100vh;
	width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
}
.flashcard {
  display: grid;
  align-content: center;
  max-width: 1200px;
  max-height: 100px;
  height: 100vh;
  margin: 0 auto;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}
.logos {
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 5vw;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  color: white;
  margin: 0 auto;
  width: 100%;
  filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.5));
}
.buttons.justify-center {
  display: grid;
  align-content: center;
  width: 100%;
	min-width: 0;
}
.buttonrow3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  align-content: space-evenly;
}
.buttonrow {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  align-content: space-evenly;
}
.buttonrowsingle {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
  align-content: space-evenly;
}
.button {
  height: 8vh;
  font-size: 6vw;
  margin: 2vh 2vh 2vh 2vh;
  display: block;
  padding: 12px 12px;
  border-radius: 24px;
  border: white solid 3px;
  color: white;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 600;
}
.button:disabled {
  background-color: silver !important;
  color: dimgray !important;
}
.drop-shadow {
  filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.5));
}
.timer {
  display: grid;
  align-content: center;
  font-size: 80vw;
  font-family: "Anton", Arial, sans-serif;
  font-weight: 500;
  color: #f8d904;
  margin: 0;
  text-align: center;
  height: 100%;
  width: auto;
	min-width: 0;
  background: url(images/logo.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; /*text-shadow: -0.02em -0.02em 0 #222, 0.02em -0.02em 0 #222, -0.02em 0.02em 0 #222, 0.02em 0.02em 0 #222;*/
  -webkit-text-stroke: 0.02em #222;
  letter-spacing: 0.04em;
}
.countdown {
/*  visibility: hidden; */
  visibility: visible; 
  width: 100%;
  height: 100%;
  opacity: 1;
}
.settings {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 14px;
  text-align: center;
  padding: 1rem;
  z-index: 5;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.5;
}
.settingsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 7;
  display: flex;
  justify-content: center;
  align-items: center;
}
.settingsButton {
  width: 100%;
  background-color: green;
  color: white;
  border: 2px solid white;
  padding: 12px 0;
  font-size: 24px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-family: "Roboto", Arial, sans-serif;
}
.settingsInput {
  font-size: 22px;
  text-align: center;
  border-radius: 6px;
  font-family: "Roboto", Arial, sans-serif;
}
.settingsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.settingsCaption {
  color: white;
  font-size: 18px;
  font-family: "Roboto", Arial, sans-serif;
  width: 75%;
}
.settingsControl {
  width: 74px;
  height: 36px;
}
.settingsInput,
.settingsToggle {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: block;
  text-align: center;
  object-fit: contain;
  padding: 0;
  margin: 0;
}
.settingsForm {
  padding: 2rem;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  width: 280px;
  max-width: 90%;
}
.hidden {
  display: none !important;
}
#flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.05s ease-in-out;
}
.input-error {
  border: 2px solid red !important;
  background-color: red;
  color: white;
}
.help-buttons {
  position: fixed;
  top: 16px;
  left: 0;
  width: calc(100vw - 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  background-color: transparent;
  padding: 8px 16px;
  border-radius: 12px;
}
.help-buttons img {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  z-index: 4;
}
.help-buttons img:hover {
  transform: scale(1.2);
}
@media (orientation: landscape) {
  .cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .flashcard {
    grid-template-columns: repeat(1, 1fr);
  }
  .timer {
    font-size: 35vw;
  }
  .button {
    height: 8vw;
    font-size: 3vw;
    margin: 5vh 2vh 5vh 2vh;
    display: block;
    padding: 12px 12px;
    border-radius: 24px;
    border: white solid 3px;
    color: white;
    transform: translate(4px);
  }
  .logos img {
    max-width: 100vw;
  }
}
