/* kutb.us — looks like shit on purpose */

body {
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Comic Neue', sans-serif;
  background: #fff;
  color: #000;
  padding: 30px;
  max-width: 550px;
  margin: 0 auto;
}

/* question */
.question {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #000;
}

/* buttons - big, dumb, colorful */
.dest-btn {
  display: block;
  width: 100%;
  padding: 18px;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Comic Neue', sans-serif;
  font-size: 1.4em;
  font-weight: bold;
  border: 3px solid #000;
  cursor: pointer;
  margin-bottom: 10px;
}

.btn-alkmaar {
  background: #ff6b6b;
  color: #000;
}

.btn-alkmaar:hover {
  background: #ff4444;
}
.btn-alkmaar.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-tuitjenhorn {
  background: #4ecdc4;
  color: #000;
}

.btn-tuitjenhorn:hover {
  background: #3ab5ad;
}
.btn-tuitjenhorn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* road line */
.road-line {
  border: none;
  border-top: 3px solid #333;
  margin: -8px 0 15px 0;
  max-width: 550px;
}

/* bus - full viewport width so it enters from actual screen edge */
.bus-container {
  margin: 15px 0 0 0;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.bus-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  transform: translateX(-100vw);
}

.bus-container.drive-in .bus-svg {
  animation: driveIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bus-container.arrived .bus-svg {
  transform: translateX(0);
  animation: idleBounce 3s ease-in-out infinite;
}

@keyframes driveIn {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0); }
}

@keyframes idleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

.exhaust {
  animation: puff 1.5s ease-out infinite;
}
.e2 { animation-delay: 0.5s; }
.e3 { animation-delay: 1s; }

@keyframes puff {
  0% { opacity: 0.3; r: 4; }
  100% { opacity: 0; r: 8; transform: translate(-8px, -6px); }
}

/* joke */
.joke-text {
  font-size: 1.3em;
  line-height: 1.5;
  color: #000;
  margin: 10px 0;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 1.5em;
}

.joke-text.visible {
  opacity: 1;
}

.joke-text a {
  color: #0066cc;
}

/* milestone */
.milestone {
  background: yellow;
  border: 2px solid #000;
  padding: 8px 12px;
  margin: 10px 0;
  font-weight: bold;
}

.milestone.hidden {
  display: none;
}

/* check again */
.again-btn {
  padding: 10px 20px;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Comic Neue', sans-serif;
  font-size: 1em;
  background: #ddd;
  border: 2px solid #000;
  cursor: pointer;
  margin: 8px 0;
}

.again-btn:hover {
  background: #ccc;
}

.again-btn.loading {
  color: #888;
}

/* back */
.back-link {
  font-size: 0.9em;
  color: #666;
}

/* hold you over */
.holdover-link {
  color: #0000EE;
  text-decoration: underline;
  font-size: 0.95em;
}

.holdover-link:visited {
  color: #551A8B;
}

/* hidden */
.hidden {
  display: none;
}

/* footer stuff */
.check-counter {
  font-size: 0.8em;
  color: #aaa;
  margin-top: 30px;
}

.credit {
  font-size: 0.7em;
  color: #ccc;
  margin-top: 5px;
}

.credit a {
  color: #bbb;
}

/* mobile */
@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .bus-container {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .question {
    font-size: 1.3em;
  }

  .dest-btn {
    font-size: 1.2em;
    padding: 15px;
  }

  .joke-text {
    font-size: 1.1em;
  }
}
