:root {
  /* Start with a transparent color to prevent the default color from appearing on load */
  --timer-color: rgb(255, 255, 255);
  --bg-color: rgb(0, 0, 0, 0);
  --shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

body {
  /* These properties are set in OBS browser as default custom CSS. */
  /* It might help to set the same value to avoid flickering on loading. */
  margin: 0px auto;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--timer-color);
}

#timer {
  font-size: min(30vw, 150px);
  margin-bottom: 20px;
  font-family: 'Roboto Black', monospace;
  text-shadow: var(--shadow);
}

#progress-container {
  width: 80%;
  height: 30px;
  border: 4px solid var(--timer-color);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--timer-color);
  box-shadow: var(--shadow);
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgb(0,0,0,0.5); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  color: #000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.url {
  color: #555;
  font-weight: bold;
}
