*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: none;
}

:root {
  --black: #4D4C59;
  --purple: #6C63FF;
	--light-grey: #C8C8C8;
  --text-color: #9C9AB6;
  --white: #ffffff;
}

body {
  background-color: var(--white);
  font-family: 'Poppins', sans-serif;
  color: var(--black);
}

main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.title {
  font-size: 30px;
  letter-spacing: 4px;
  font-weight: 700;
  text-align: center;
  color: var(--purple);
}

.countdown {
  display: flex;
  text-align: center;
  gap: 10px;
}

.countdown p {
  font-weight: 300;
  font-size: 16px;
  color: var(--light-grey);
}

.countdown h3 {
  font-size: 60px;
  font-weight: 500;
}

#day::after, #hour::after, #minute::after {
  content: ':';
  margin: 0 -1px 0 12px;
}

.phrase {
  color: var(--text-color);
  font-size: 16px;
  text-align: center; 
  font-weight: 400;
}

.btn {
  background-color: var(--purple);
  width: 140px;
  height: 44px;
  color: var(--white);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

.btn:hover {
  box-shadow: 1px 1px 10px var(--purple);
  transition: all 200ms ease-in-out;
}

.rocket {
  width: 32rem;
}

/* FORM */
dialog::backdrop {
  background: rgba(77, 76, 89, 0.836);
}

dialog {
  width: 500px;
  height: 260px;
  margin: auto auto;
  padding-top: 60px;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#closeBtn {
  cursor: pointer;
  font-size: 24px;
  padding: 5px;
  top: 0;
  right: 5px;
  position: absolute;
  color: var(--black);
}

input[type=email], input[type=text] {
  width: 400px;
  height: 40px;
  border: 1px solid var(--black);
  color: var(--black);
  border-radius: 4px;
  padding-left: 4px;
  margin-top: 2px;
  font-size: 14px;
}

input[type=email]:focus, input[type=text]:focus {
  border: 1px solid var(--purple);
}

form .btn {
  margin-top: 10px;
}

footer {
  bottom:0;
  left:0;
  right:0;
}

/* MEDIA QUERIES */
@media screen and (max-width: 765px) {
  .rocket {
    margin-bottom: 3rem;
  }
}

@media screen and (max-width: 600px) {
  dialog {
    width: 100%;
    height: 100%;
    margin: auto auto;
    padding: 0 0 0 0;
    border-radius: 0;
  }

  form {
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
  }

  #closeBtn {
    font-size: 34px;
    padding: 8px;
    right: 8px;
  }

  input[type=email], input[type=text] {
    width: 90%;
    font-size: 16px;
  }

  form .btn {
    width: 90%;
    margin-top: 0;
  }
}

@media screen and (max-width: 500px) {
  .title {
    font-size: 20px;
  }

  .countdown p {
    font-size: 14px;
  }

  .countdown h3 {
    font-size: 40px;
  }

  .phrase {
    font-size: 14px;
  }
}