* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-family:
    "Oswald",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  color: #333;
  padding-top: 80px;
}

.container {
  text-align: center;
  max-width: 600px;
  padding: 40px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  line-height: 1.2;
}

#day-counter {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

#day-number {
  font-weight: 600;
  color: #333;
}

#check-button {
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: inline-block;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 80px;
  padding: 18px 15px;
  margin: 8px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, #d90000, #9e0000);
  box-shadow:
    inset -8px 0 8px rgba(0, 0, 0, 0.15),
    inset 0 -8px 8px rgba(166, 8, 8, 0.25),
    0 0 0 2px rgba(59, 0, 0, 0.75),
    3px 5px 8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

#check-button::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  bottom: 14px;
  right: 12px;
  background: linear-gradient(90deg, #b10000, #da0000);
  border-radius: 10px;
  box-shadow:
    -10px -10px 10px rgba(255, 90, 90, 0.25),
    10px 5px 10px rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(73, 0, 0, 0.267);
  border-bottom: 1px solid rgba(49, 0, 0, 0.267);
  border-top: 1px solid rgba(72, 0, 0, 0.6);
}

#check-button i {
  position: relative;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.4em;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10;
}

#check-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset -8px 0 8px rgba(0, 0, 0, 0.15),
    inset 0 -8px 8px rgba(0, 0, 0, 0.25),
    0 0 0 3px rgba(0, 0, 0, 0.75),
    6px 8px 8px rgba(0, 0, 0, 0.3);
}

#check-button:active,
#check-button.pressed {
  transform: translateY(0.5px);
  box-shadow:
    inset -4px 0 4px rgba(0, 0, 0, 0.2),
    inset 0 -4px 4px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(0, 0, 0, 0.75),
    2px 4px 8px rgba(0, 0, 0, 0.25);
}

#check-button.loading {
  opacity: 0.7;
  transform: translateY(4px);
}

#result {
  margin-top: 40px;
}

#answer {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#expand-button {
  font-size: 0.9rem;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  margin-bottom: 20px;
}

#expand-button:hover {
  color: #333;
}

#full-response {
  color: #333;
  text-align: left;
  line-height: 1.6;
  margin-top: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
}

.hidden {
  display: none;
}

.loading {
  opacity: 0.7;
}

.loading::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }

  40% {
    content: ".";
  }

  60% {
    content: "..";
  }

  80%,
  100% {
    content: "...";
  }
}

.main-content {
  padding-bottom: 60px;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  text-align: center;
  padding: 12px 0;
  z-index: 100;
}

footer p {
  font-family: "Courier New", Consolas, Monaco, monospace;
  font-size: 0.8rem;
  font-weight: normal;
  color: #999;
  margin: 0;
}

footer a {
  color: #999;
  text-decoration: none;
}

footer a:hover {
  color: #666;
  text-decoration: underline;
}

/* About page styles */
.about-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Privacy page styles */
.privacy-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

.privacy-content h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  color: #dc2626;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p,
.privacy-content li {
  margin-bottom: 0.8rem;
  color: #333;
}

.privacy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.privacy-content a {
  color: #dc2626;
  text-decoration: none;
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* Job selector styles */
.job-selector {
  position: fixed;
  bottom: 32px; /* Desktop: above single-line footer */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 101;
  background: #fff;
  padding: 8px 16px;
  width: 100%;
}

/* Mobile: adjust for multi-line footer when portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .job-selector {
    bottom: 48px; /* Higher to clear 2-line footer */
  }
}

#more-jobs-link {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-family: "Courier New", Consolas, Monaco, monospace;
  font-weight: 600;
}

#more-jobs-link:hover {
  text-decoration: underline;
  color: #000;
}

.arrow-left {
  display: inline-block;
  animation: arrowPulseLeft 2s ease-in-out infinite;
}

.arrow-right {
  display: inline-block;
  animation: arrowPulseRight 2s ease-in-out infinite;
}

#more-jobs-link:hover .arrow-left,
#more-jobs-link:hover .arrow-right {
  animation: none;
}

@keyframes arrowPulseLeft {
  0%,
  20%,
  30%,
  50%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(-4px);
  }
}

@keyframes arrowPulseRight {
  0%,
  20%,
  30%,
  50%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(4px);
  }
  40% {
    transform: translateX(4px);
  }
}

.jobs-dropdown {
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: scroll;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.jobs-list a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.1rem 0;
}

.jobs-list a:hover {
  color: #dc2626;
}

.engineering-jobs,
.other-jobs {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.engineering-jobs {
  margin-bottom: 0.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #ccc;
}

.about-content h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  color: #333;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.goodbye .blue,
.goodbye .nice {
  display: none;
}

.about-content strong {
  color: #d90000;
  font-weight: 600;
}

.cta {
  text-align: center;
  margin: 3rem 0;
}

.back-button {
  display: inline-block;
  padding: 12px 24px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #ddd;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #eee;
  border-color: #ccc;
  transform: translateY(-1px);
}

/* Simple loading animation with dots */
.loader {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.hidden {
  display: none !important;
}

.dot {
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  opacity: 0.3;
  animation: fade 1s infinite;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fade {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }

  40% {
    opacity: 1;
  }
}
