@import url("https://fonts.googleapis.com/css?family=Lato:400,700|Montserrat:900");
html {
  display: grid;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  display: grid;
  background: #183059;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

.container {
  position: relative;
  margin: auto;
  overflow: hidden;
  width: 650px;
  max-width: 100%;
  height: 480px;
  box-sizing: border-box;
}

h1 {
  font-family: "Lato", sans-serif;
  text-align: center;
  margin-top: 2em;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #F6F4F3;
}

#timer {
  color: #F6F4F3;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lato", sans-serif;
  font-size: 0.7em;
  letter-spacing: 5px;
  margin-top: 25%;
}

.days, .hours, .minutes, .seconds {
  display: inline-block;
  padding: 20px;
  width: 100px;
  border-radius: 5px;
  margin: 0 3px; /* add spacing between boxes on desktop */
}

.days {
  background: #EF2F3C;
}

.hours {
  background: #F6F4F3;
  color: #183059;
}

.minutes {
  background: #276FBF;
}

.seconds {
  background: #F0A202;
}
.numbers {
  font-family: "Montserrat", sans-serif;
  color: #183059;
  font-size: 4em;
}

.white {
  position: absolute;
  background: #F6F4F3;
  height: 85px;
  width: 75px;
  left: 30%;
  top: 2%;
}
.white .triangle {
  border-bottom: 14px solid #F6F4F3;
}
.white .string {
  background: #F6F4F3;
  border: 1px solid #F6F4F3;
}

.red {
  position: absolute;
  background: #EF2F3C;
  left: 18%;
  top: 9%;
  height: 65px;
  width: 70px;
}
.red .triangle {
  border-bottom: 14px solid #EF2F3C;
}
.red .string {
  background: #EF2F3C;
  border: 1px solid #EF2F3C;
}

.blue {
  position: absolute;
  background: #276FBF;
  height: 80px;
  width: 80px;
  left: 60%;
  top: 5%;
}
.blue .triangle {
  border-bottom: 14px solid #276FBF;
}
.blue .string {
  background: #276FBF;
  border: 1px solid #276FBF;
}

.balloon {
  border: 1px solid #000;
  border-radius: 50% 50% 50% 50%/40% 40% 60% 60%;
  z-index: 2;
}

.eye {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 40%;
  left: 22%;
  background: #000;
  border-radius: 50%;
}
.eye:after {
  content: "";
  left: 35px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
  position: absolute;
}

.mouth {
  position: absolute;
  top: 45%;
  left: 43%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.happy {
  border: 2px solid;
  border-color: transparent #000 #000 transparent;
  transform: rotate(45deg);
}

.triangle {
  position: absolute;
  left: 40%;
  bottom: -10%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.string {
  position: absolute;
  height: 70px;
  width: 1px;
  left: 48%;
  top: 100%;
  z-index: -1;
}

.star {
  width: 20px;
  height: 20px;
  background: #F6F4F3;
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-red {
  width: 30px;
  height: 30px;
  margin-left: 51px;
  margin-top: -5px;
  background: #EF2F3C;
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Records Section */
.records-section {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 20px;
  color: #F6F4F3;
  font-family: "Lato", sans-serif;
  box-sizing: border-box;
  width: 100%;
}

.records-section h2 {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2em;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #F6F4F3;
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin: 8px 0;
  background: rgba(246, 244, 243, 0.1);
  border-radius: 6px;
  border-left: 4px solid #EF2F3C;
  box-sizing: border-box;
}

.record-name {
  font-weight: bold;
  font-size: 1em;
  color: #F6F4F3;
}

.record-time {
  font-size: 0.9em;
  color: #F0A202;
}

.no-records {
  text-align: center;
  color: rgba(246, 244, 243, 0.6);
  font-style: italic;
  padding: 20px;
}

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  text-transform: uppercase;
  padding: 10px;
  font-family: "Lato", sans-serif;
  font-size: 0.7em;
}
footer p {
  letter-spacing: 3px;
  color: #EF2F3C;
}
footer a {
  color: #F6F4F3;
  text-decoration: none;
}
footer a:hover {
  color: #276FBF;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 20px;
  }
  
  /* Hide balloons on mobile */
  .balloon {
    display: none;
  }
  
  /* Stack timer boxes vertically on mobile */
  .days, .hours, .minutes, .seconds {
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 200px;
  }
  
  #timer {
    margin-top: 10%;
  }
  
  h1 {
    font-size: 0.8em;
    margin-top: 1em;
  }
  
  .numbers {
    font-size: 3em;
  }
  
  footer {
    position: relative;
    text-align: center;
    padding: 20px;
    width: 100%;
  }
  footer p { margin: 0 auto; text-align: center; }

  /* Make report button centered on mobile */
  .report-btn {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    width: 80%;
    margin: 0 auto;
    border-radius: 6px;
    padding: 14px 16px;
  }

  /* Records section on mobile */
  .records-section {
    margin: 20px auto 100px;
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .record-item {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin: 8px 0;
  }

  .record-name {
    flex-shrink: 0;
    font-size: 0.95em;
  }

  .record-time {
    font-size: 0.8em;
    text-align: right;
    flex-shrink: 1;
  }
}

/* Modal + Button Styles */
.report-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  background: #EF2F3C;
  color: #F6F4F3;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.report-btn:hover { background: #c52530; }

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.modal.open { display: block; }

.modal-content {
  background: #F6F4F3;
  color: #183059;
  width: 90%;
  max-width: 420px;
  margin: 10% auto;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.modal-content h2 {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.modal-content label {
  display: block;
  margin: 12px 0 6px;
  font-family: "Lato", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="datetime-local"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #cfd6e4;
  font-size: 14px;
  font-family: "Lato", sans-serif;
  box-sizing: border-box;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.submit-btn {
  background: #276FBF;
  color: #F6F4F3;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  cursor: pointer;
}
.submit-btn:hover { background: #1f5ea3; }

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

.form-error { color: #EF2F3C; font-size: 13px; margin-top: 8px; }