/* Format all elements */
* {
  box-sizing: border-box;
}

:focus {
  outline: none;
}
::-moz-focus-inner {
  border: 0;
}

body .hidden {
  display: none;
}

/* Format the webpage background and main areas */
body {
  color: #eee;
  background: #000;
  font-family: Inter, Arial, sans-serif;
}

.content {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Format the game logo */
#logo h1 {
  color: #eee;
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: min(50px, 8vw);
  text-align: center;
  margin: 0;
  margin-bottom: 10px;
}

body .ccLogo {
  position: relative;
  background: #eee;
  height: 75px;
  width: 100px;
  margin: 0;
}

.ccLogo::after {
  content: 'CC';
  position: absolute;
  color: #eee;
  background: #000;
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
  font-size: 50px;
  width: 80px;
  height: 60px;
  top: 0;
  left: 0;
  border-radius: 20%;
  margin-left: 10px;
  margin-top: 8px;
  text-align: center;
}

/* Format the main content areas */
#introduction h1 {
  color: #bbb;
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: min(50px, 9vw);
  text-align: center;
  margin: 0;
  margin-bottom: 10px;
}

#introduction .text {
  color: #eee;
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: min(20px, 5vw);
  text-align: center;
  margin: 10px 10vw;
}

#captions.content {
  justify-content: space-between;
}

#captions h1 {
  color: #bbb;
  background: #000;
  width: 100%;
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: min(30px, 7vw);
  text-align: center;
  padding-bottom: 10px;
  margin: 0;
}

#captions .infiniteScroll {
  overflow-y: auto;
  width: 100%;
}

#captions .row {
  animation: fadeIn 0.6s;
}

#captions .row.time {
  color: #999;
  font-family: Inter, Arial, sans-serif;
  font-weight: 300;
  font-size: min(20px, 5vw);
  text-align: left;
  margin: 3vh 5vw 3vh 2vw;
}

#captions .row.text {
  color: #eee;
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: min(35px, 8vw);
  text-align: left;
  margin: 5vh 5vw;
}

#captions .text.info {
  color: #ddd;
  font-style: italic;
  font-size: min(25px, 6vw);
}

#captions .text.sound {
  color: #aaa;
  font-style: italic;
  font-size: min(25px, 6vw);
}

#captions .text.error {
  color: #eaa;
  font-style: italic;
  font-size: min(30px, 7vw);
}

#captions #scrollButton {
  color: #eee;
  background: #222;
  width: 100%;
  font-size: min(20px, 5vw);
  text-align: center;
  padding: 10px;
}

#scrollButton.invisible {
  opacity: 0;
}

#scrollButton.flash {
  animation: flash 3s;
}

@keyframes flash {
  0% {background: #222;}
  7% {background: #666;}
  33% {background: #222;}
  40% {background: #666;}
  66% {background: #222;}
  73% {background: #666;}
  100% {background: #222;}
}

#error.content {
  color: #ff2200;
  background-color: #ffd3cc;
}

#error h1 {
  font-size: min(30px, 7vw);
  text-align: center;
}

#error .text {
  text-align: center;
  font-size: min(20px, 5vw);
}

/* Format the inputs and buttons */
button {
  color: #000;
  background-color: #eee;
  font-size: 24px;
  font-family: Inter, Arial, sans-serif;
  font-weight: bold;
  border: none;
  outline: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin-top: 1.5rem;
  cursor: pointer;
}

button:disabled {
  background-color: #aaa;
  cursor: auto;
}

/* Format the overlay */
#overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: #0006;
  z-index: 100;
}



