/* Basis reset og font */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f172a;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fullscreen timer-visning */
body.fullscreen {
  justify-content: center;
  align-items: center;
}

#timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Segoe UI', sans-serif;
}

#timer span {
  font-size: 20vw;
  line-height: 1;
  color: white;
}

/* Header med titel */
header {
  padding: 1.5rem 2rem;
  text-align: left;
}

header h1 {
  font-size: 2.5rem;
}

/* Main layout */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
  gap: 3rem;
}

/* Bokse til join/opret/kontrol */
.card {
  background-color: #334155;
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* Input og knapper */
input {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  border: none;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

button {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.5rem;
  background-color: #3b82f6;
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #2563eb;
}

/* Input til tid */
.time-inputs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.time-inputs input {
  width: 5rem;
}

#timer.small-timer span {
  font-size: 5rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

#id-display {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #94a3b8;
  font-style: italic;
}

/* Mobilvenlighed */
@media screen and (max-width: 500px) {
  header h1 {
    font-size: 2rem;
  }

  input,
  button {
    font-size: 1.2rem;
  }

  #timer span {
    font-size: 16vw;
  }
}
