:root {
  --darkThemeBackground: #202020;
  --darkThemeForeground: white;
  --darkThemeButton: #606060;

  --lightThemeBackground: white;
  --lightThemeForeground: black;
}

body {
  font-family: 'Segoe UI';

  margin: auto;
  padding-bottom: 10px;
  text-align: center;
  overflow: hidden;
}

button {
  display: inline-block;
  text-align: center;
  margin-bottom: 10px;
  width: 100%;
  font-size: larger;
}

textarea {
  width: 100%;
}

button:hover {
  cursor:pointer;
}

.slider {
  width: 100%;
}

.yt {
  box-shadow: 0px 0px 10px 10px #101010;
  position: relative;
  display: block;
  width: 100%; /* width of iframe wrapper */
  height: 0;
  margin: auto;
  padding: 0% 0% 56.25%; /* 16:9 ratio */
  overflow: hidden;
}

.ytVideo {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.body-center {
  
  margin: auto;
  min-width: 500px;
  max-width: 1000px;
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  .body-center{
    min-width: 100%;
    max-width: 100%;
  }
}

.center {
  text-align: center;
}

.error {
  color: red;
}

.videoTitle {
  font-weight: bold;
}

@media (prefers-color-scheme: light) {
  button, body {
    background: var(--lightThemeBackground);
    color: var(--lightThemeForeground);
  }

  .overlay {
    background-color: var(--lightThemeForeground);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--darkThemeBackground);
    color: var(--darkThemeForeground);
  }

  .overlay {
    background-color: var(--darkThemeBackground);
  }
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border: 1px solid #dddddd;
  text-align: center;
  padding: 8px;
  width: 50%;
  height: 22px;
}

.overlay-background {
  position: fixed;
  /* Sit on top of the page content */
  display: none;
  /* Hidden by default */
  width: 100%;
  /* Full width (cover the whole page) */
  height: 100%;
  /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  align-content: center;
  /* Black background with opacity */
  z-index: 2;
  /* Specify a stack order in case you're using a different order for other elements */
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 50%;
  border-radius: 10px;
  padding: 10px;
  border-color: white;
  border-style: solid;
  border-width: 1px;
}