@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: 'Nunito Sans', sans-serif;

  background: #FFF7E8;
  color: #5F554D;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 24px;
}

main {
  width: 100%;
  max-width: 520px;
}

section {
  width: 100%;
  text-align: center;
}

h1,
h2 {
  font-family: 'Baloo 2', cursive;
}

h1 {
  margin: 0 0 12px;

  font-size: 3rem;
  line-height: 1.05;

  color: #B99AD9;
}

h2 {
  margin: 12px 0 10px;

  font-size: 2rem;
  line-height: 1.15;

  color: #6F6258;
}

p {
  margin: 0 auto 24px;

  font-size: 1.05rem;
  line-height: 1.6;
}

.intro-text {
  max-width: 340px;
  margin-bottom: 34px;
}


/* BUTTONS */

button {
  border: none;
  border-radius: 34px;

  padding: 16px 32px;
  margin-top: 18px;

  font-family: "Baloo 2", cursive;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.15s ease;
}


/* VANILLA / MAIN ACTIONS */

#createButton,
#yesButton,
#joinButton {
  background: #F7E7C6;
  color: #4b3b38;
}

#createButton:hover,
#yesButton:hover,
#joinButton:hover {
  background: #EFD9AE;
  transform: translateY(-1px);
}


/* SOFT PINK / SECONDARY ACTIONS */

#showJoinButton,
#noButton,
#backButton {
  background: #F3D9DE;
  color: #4b3b38;
}

#showJoinButton:hover,
#noButton:hover,
#backButton:hover {
  background: #E8C8CF;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}


/* INTRO LOGO */

.date-planner-logo {
  width: 320px;
  max-width: 85vw;
  height: auto;

  display: block;

  margin: 0 auto 18px auto;
}

/* FILTER SCREEN LOGO */

.filter-logo {
  width: 220px;
  max-width: 70vw;
  height: auto;

  display: block;

  margin: 0 auto 20px auto;
}

/* JOIN SCREEN */

#joinScreen {
  background: #FFFDF7;

  border-radius: 30px;

  padding: 34px 26px;

  box-shadow: 0 16px 40px rgba(111, 98, 88, 0.10);
}

#joinScreen h1 {
  font-size: 2.6rem;
}

#roomCodeInput {
  width: 100%;

  margin: 4px 0 20px;

  padding: 18px;

  border: 3px solid #EADCC8;
  border-radius: 20px;

  background: #FFF7E8;

  font-family: 'Baloo 2', cursive;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 6px;

  color: #6F6258;

  outline: none;

  text-transform: uppercase;
}

#roomCodeInput:focus {
  border-color: #B99AD9;
}

#roomCodeInput::placeholder {
  color: #C8B9AA;
}


/* GAME */

#game {
  text-align: center;
}

.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 12px;

  margin-bottom: 16px;

  padding: 0 6px;
}

#roomCodeText,
#progressText {
  margin: 0;

  font-size: 0.9rem;
  font-weight: 700;

  color: #8D7E72;
}


/* DATE CARD */

#dateCard {
  background: #FFFDF7;

  border-radius: 34px;

  padding: 34px 26px 24px;

  box-shadow: 0 18px 45px rgba(111, 98, 88, 0.11);

  border: 2px solid rgba(240, 228, 207, 0.8);

  text-align: center;
}

.date-card-gif {
  width: 90px;
  height: auto;

  display: block;

  margin: 0 auto 18px auto;
}

#dateDescription {
  max-width: 360px;
  margin-bottom: 0;
}


/* DATE CHOICE BUTTONS */

.choice-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;

  margin-top: 18px;
}

#yesButton,
#noButton {
  margin: 0;
  width: auto;
}


/* WAITING */

#waiting {
  background: #FFFDF7;

  border-radius: 34px;

  padding: 42px 28px;

  box-shadow: 0 18px 45px rgba(111, 98, 88, 0.11);
}

.waiting-icon {
  width: 90px;
  height: 90px;

  margin: 0 auto 18px;

  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 3rem;

  background: #F0E4CF;
}


/* RESULTS ICON */

.results-icon {
  margin: 0 auto 18px;
}

.icecream-gif {
  width: 140px;
  max-width: 45vw;
  height: auto;

  display: block;

  margin: 0 auto 18px auto;
}


/* RESULTS */

#results {
  padding-bottom: 30px;
}

#results > p {
  margin-bottom: 28px;
}

#matchList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-card {
  background: #FFFDF7;

  border-radius: 26px;

  padding: 22px 20px;

  text-align: left;

  border: 2px solid #F0E4CF;

  box-shadow: 0 10px 25px rgba(111, 98, 88, 0.08);
}

.match-card h2 {
  margin-top: 0;

  font-size: 1.55rem;

  color: #B99AD9;
}

.match-card p {
  margin-bottom: 0;

  font-size: 0.98rem;
}


/* VANILLA LAND LOGO */

.vanilla-land-icon {
  width: 280px;
  max-width: 80vw;
  height: auto;

  display: block;

  margin: 0 auto 20px auto;
}


/* VANILLA LAND GAME ICONS */

.game-icon {
  width: 220px;
  max-width: 70vw;
  height: auto;

  display: block;

  margin: 0 auto;
}

.game-link {
  display: inline-block;

  text-decoration: none;
}

.game-link:hover {
  transform: scale(1.03);
}


/* SMALL SCREENS */

@media (max-width: 420px) {

  body {
    padding: 18px;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  #dateCard {
    padding: 28px 20px 20px;
  }

  .game-top {
    font-size: 0.85rem;
  }
}
