* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6f8;
  color: #222;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen {
  min-height: 100vh;
  padding: 30px;
}


/* LOGIN */

#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}

.login-card h1 {
  margin-top: 0;
  margin-bottom: 28px;
  text-align: center;
  font-size: 2rem;
}

label {
  display: block;
  margin-bottom: 18px;
  font-weight: bold;
}

input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px;
  border: 1px solid #ccc;
  border-radius: 9px;
  font-size: 1rem;
}

.login-card button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 9px;
  font-weight: bold;
  font-size: 1rem;
}

.error {
  margin-top: 18px;
  color: #b00020;
}


/* ADULT */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.top-bar h1 {
  margin: 0;
}

.top-bar p {
  margin: 5px 0 0;
}

.secondary-button,
.small-button {
  padding: 10px 16px;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: white;
}


/* COMMON */

.placeholder-card {
  max-width: 700px;
  padding: 30px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* CHILD */

#child-screen {
  background: #eef6ff;
}

.child-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.child-header h1 {
  font-size: 2.5rem;
}

.child-placeholder {
  margin: 50px auto;
  text-align: center;
}

.big-emoji {
  font-size: 6rem;
}

.child-placeholder h2 {
  font-size: 2rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
}

.event-card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.event-emoji {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 16px;
}

.event-title {
  margin: 0;
  font-size: 1.8rem;
}

.event-countdown {
  margin: 12px 0 0;
  font-size: 1.4rem;
  font-weight: bold;
}

.adult-badge {
  position: absolute;
  right: 14px;
  top: 14px;

  display: flex;
  align-items: center;
  gap: 7px;

  padding: 5px 9px 5px 5px;
  background: #f4f4f4;
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: bold;
}

.adult-avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}

.empty-message {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 60px;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: normal;
}

.remember-option input {
  width: auto;
  margin: 0;
}