:root{
  --aperture-blue: #0199FF;
  --aperture-red: #e10600 /*#ff0033*/;
}


/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7f9;
  color: #111;
  padding: 2rem;
  line-height: 1.6;
  /* position: relative; */
}

main, .container {
  max-width: 960px;
  margin: auto;
  background: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  border-top: 8px solid var(--aperture-blue);
}

#timer {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.75);
  color: var(--aperture-red);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  padding: 10px 16px;
  border-top: 3px solid var(--aperture-red);
  border-bottom: 3px solid var(--aperture-red);
  border-radius: 8px;
  z-index: 9999;
  text-align: center;
  letter-spacing: 1px;
  user-select: none;
  transition: opacity 0.3s ease;
}

.death-screen {
  border-top: 8px solid var(--aperture-red);
}
.love-screen {
  border-top: 8px solid #FD9DBE;
  overflow: scroll;
  height: 45rem;
}
#times-up-screen {
  z-index: 999;
}

.death-img {
  display: block;
  margin: 0 auto 1rem;
}
#love-letter {
  width: 100%;
  max-width: 600px;
  height: 150px;
  /* background-color: #111; */
  /* color: #00fff7;*/
  /* border: 2px solid #FD9DBE; */
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  padding: 1rem;
  resize: both;
  margin: 0 auto;
  display: block;
  /* box-shadow: 0 0 10px #00fff7; */
  /* transition: border-color 0.3s ease, box-shadow 0.3s ease; */
}

.container {
  position: fixed;
  top: 50%;
  /* left: 25%;
  right: 25%; */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  max-width: 720px;
  display: none;
  height: 80%;
  overflow: scroll;
}

#loading {
  animation: spin 4s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


h1, h2 {
  text-align: center;
  color: #003049;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.logo-img {
  display: block;
  margin: 0 auto 1rem;
  width: 150px;
}

/* Form Structure */
form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

fieldset {
  border: 2px solid #ccc;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #fefefe;
}

legend {
  font-weight: bold;
  color: #005f73;
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

.form-group {
  margin-top: 1rem;
}

.form-group label, .form-group p {
  /* display: block; */
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group p{
  display: block;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.5rem;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5rem;
}

#yes-opt-out-div{
  width: 4rem;
  height: 2rem;
}

/* Signature Pad */
#signature-pad{
  width: 100%;
  height: 150px;
  border: 2px dashed #999;
  background-color: #fff;
  margin-bottom: 1rem;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: #007acc;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #005f99;
}

.btn-container {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

/* Optional flavor */
.italic-txt {
  color: #666; 
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  main, .container {
    padding: 1.5rem 2rem;
  }

  .container {
    width: 90%;
    max-width: 100%;
  }

  .logo-img {
    width: 120px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1rem;
  }

  .form-group {
    margin-top: 1rem;
  }

  fieldset {
    padding: 1rem;
  }

  #timer {
    font-size: 1rem;
    padding: 6px 10px;
  }

  #love-letter {
    height: 120px;
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
  }

  .btn-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Phones */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }

  main, .container {
    padding: 1rem;
    border-radius: 8px;
  }

  .container {
    width: 95%;
    transform: translate(-50%, -50%);
  }

  .logo-img {
    width: 100px;
    margin-bottom: 0.5rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 0.95rem;
  }

  input[type="text"],
  input[type="number"],
  input[type="date"],
  select {
    font-size: 0.95rem;
    padding: 0.4rem;
  }

  label, p {
    font-size: 0.95rem;
  }

  ul li {
    margin-bottom: 0.4rem;
  }

  .btn-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  #timer {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
}