body {
  background-color: gold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-y: auto;
  margin: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding-top: 70px;
}
.main-content {
  padding-top: 20px;
  overflow-y: hidden;
  height: auto;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  text-align: center;
  height: 170px;
}

#logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 7vw;
  height: 7vh;
  margin: 1rem;
  cursor: pointer;
  z-index: 200;
}

.title-container {
  text-align: center;
  position: relative;
}
.title {
  font-size: 1.5rem;
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.container {
  margin: 0 auto;
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
  border: 10px solid black;
  background-color: olive;
  line-height: 1.5rem;
  width: 40vw;
  max-width: 80vw;
  overflow: hidden;
  height: 61vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.container-name {
  color: white;
  margin-top: 3rem;
  line-height: 1.5rem;
  font-weight: bold;
}
.container-date {
  color: white;
  margin-top: 1rem;
  line-height: 1.5rem;
  font-weight: bold;
}

.container-name button,
.container-date button {
  border: 3px solid black;
  border-radius: 10%;
  background: gold;
  padding-left: 10px;
  padding-right: 10px;
  width: 50px;
  height: 35px;
  line-height: 1.3;
  font-weight: bold;
  cursor: pointer;
}
.container-refresh button {
  margin-top: 1rem;
  border: 3px solid black;
  border-radius: 10%;
  background: gold;
  width: 180px;
  height: 70px;
  line-height: 1.3;
  font-weight: bold;
  font-size: 1.3rem;
  cursor: pointer;
}
.container-today {
  color: black;
}
#result,
#dateResult {
  height: 2rem;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  font-weight: lighter;
  line-height: 1.5rem;
}
#dateResult {
  text-align: center;
  line-height: 2.9rem;
  display: block;
  word-wrap: break-word;
  overflow: hidden;
  height: 8.2rem;
  margin-top: 5px;
}

input[type="text"],
button {
  max-width: 90%;
  box-sizing: border-box;
}
.footer {
  text-align: center;
  clear: both;
  margin-top: 10px;
}
.footer p {
  font-size: 1.8rem;
}
.footer p a {
  text-decoration: none;
}

@media (min-width: 971px) and (max-width: 1100px) {
  .title-container,
  .container-name,
  .container-date {
    margin: 0 auto;
    padding: 0 5%;
  }
  header #logo {
    width: 12vh;
    margin-left: 20px;
  }
  .title-container {
    top: 5px;
    font-size: 1.8rem;
  }

  .container {
    width: 80vw;
    font-size: 1.4rem;
    margin-top: 4%;
    height: 65vh;
  }

  .container-name,
  .container-date,
  .container-refresh {
    margin-top: 1.3rem;
    line-height: 1.3rem;
    font-size: 2rem;
  }
  .container-name button,
  .container-date button {
    width: 80px;
    height: 45px;
    line-height: 1.3;
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
  }
  .container-refresh button {
    margin-top: 6rem;
    width: 215px;
    height: 80px;
    line-height: 1.3;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
  }
  input[type="text"],
  button {
    max-width: 90%;
    height: 2rem;
    box-sizing: border-box;
    font-size: 1.7rem;
  }

  #result {
    font-size: 2rem;
    font-weight: lighter;
    line-height: 1.3rem;
    margin-top: 11%;
    padding-right: 10px;
    height: 50px;
  }
  #dateResult {
    font-size: 2rem;
    font-weight: lighter;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-top: 5px;
    padding-right: 10px;
    line-height: 3.8rem;
    height: 240px;
  }
  .footer {
    text-align: center;
    clear: both;
  }
  .footer p {
    font-size: 2rem;
    line-height: 4rem;
  }
  .footer p a {
    text-decoration: none;
  }
}
@media (min-width: 851px) and (max-width: 970px) {
  .title-container,
  .container-name,
  .container-date {
    margin: 0 auto;
    padding: 0 5%;
  }
  header #logo {
    width: 100px;
    margin-left: 20px;
  }
  .title-container {
    top: 5px;
    font-size: 1.7rem;
  }
  .container {
    margin-top: -20px;
    margin-bottom: 1.6rem;
    font-size: 1.5rem;
    width: 85vw;
    height: 55vh;
  }
  .container-name,
  .container-date,
  .container-refresh {
    margin-top: 2rem;
    line-height: 1.3rem;
    font-size: 1.5rem;
  }
  .container-name button,
  .container-date button {
    width: 85px;
    height: 55px;
    line-height: 1.3;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 25px;
    cursor: pointer;
  }
  .container-refresh button {
    width: 210px;
    height: 80px;
    line-height: 1.3;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
  }
  input[type="text"],
  button {
    max-width: 90%;
    height: 1.7rem;
    box-sizing: border-box;
    font-size: 1.5rem;
  }

  #result {
    font-size: 1.3rem;
    font-weight: lighter;
    line-height: 1.5rem;
    margin-top: 7%;
    padding-right: 10px;
    height: 70px;
  }
  #dateResult {
    font-size: 1.3rem;
    font-weight: lighter;
    margin-bottom: -4rem;
    padding-top: 5px;
    padding-right: 10px;
    line-height: 3rem;
    height: 190px;
  }
  .footer {
    text-align: center;
    clear: both;
  }
  .footer p {
    font-size: 2rem;
    line-height: 4rem;
  }
  .footer p a {
    text-decoration: none;
  }
}
@media (min-width: 768px) and (max-width: 850px) {
  .title-container,
  .container-name,
  .container-date {
    margin: 0 auto;
    padding: 0 5%;
  }

  header #logo {
    width: 90px;
    margin-left: 20px;
  }

  .title-container {
    font-size: 1.4rem;
  }
  .container {
    top: -20px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    width: 80vw;
    height: auto;
    min-height: 50vh;
  }

  .container-name,
  .container-date,
  .container-refresh {
    margin-top: 1.3rem;
    line-height: 1.3rem;
    font-size: 1.3rem;
  }
  .container-name button,
  .container-date button {
    width: 70px;
    height: 35px;
    line-height: 1.3;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
  }
  .container-refresh button {
    width: 180px;
    height: 70px;
    line-height: 1.3;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 30px;
  }
  input[type="text"],
  button {
    max-width: 90%;
    height: 1.5rem;
    box-sizing: border-box;
    font-size: 1.3rem;
  }

  #result {
    font-size: 1.2rem;
    font-weight: lighter;
    line-height: 1.5rem;
    margin-top: 5%;
    padding-right: 10px;
    height: 40px;
  }
  #dateResult {
    font-size: 1.2rem;
    font-weight: lighter;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 5px;
    padding-right: 10px;
    line-height: 3rem;
    height: 190px;
  }
  .footer {
    text-align: center;
    clear: both;
  }
  .footer p {
    font-size: 1.2rem;
    line-height: 2rem;
  }
  .footer p a {
    text-decoration: none;
  }
}

@media (min-width: 451px) and (max-width: 767px) {
  #logo {
    width: 50px;
  }
  .title-container,
  .container {
    padding: 10px;
  }
  body {
    min-height: auto;
  }
  header {
    height: 120px;
  }

  #logo {
    width: 60px;
    height: 60px;
    margin: 0.5rem;
  }

  .title {
    font-size: 1.1rem;
    margin-left: 1rem;
  }

  .container {
    width: 80vw;
    max-width: none;
    height: auto;
    padding-left: 20px;
    padding-right: 40px;
    margin-bottom: 10px;
  }

  .container-name,
  .container-date,
  .container-refresh,
  .container-today {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .container-name,
  .container-date {
    width: 80vw;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    padding-right: 10px;
  }

  .container-name button,
  .container-date button {
    width: 60px;
    height: 40px;
  }

  .container-name {
    margin-top: 10px;
  }

  #result {
    font-size: clamp(0.8rem, 3.7vw, 1rem);
    font-weight: lighter;
    line-height: normal;
    margin-top: 4%;
    margin-bottom: -1%;
    padding-right: 10px;
  }
  #dateResult {
    font-size: clamp(0.8rem, 3.7vw, 1rem);
    font-weight: lighter;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 5px;
    padding-right: 10px;
    line-height: 1.7rem;
    height: 100px;
  }

  .container-refresh button {
    width: 130px;
    height: 60px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6rem;
  }

  input[type="text"],
  button {
    max-width: 100%;
  }

  .footer {
    font-size: 0.3rem;
    line-height: 40px;
  }
  .footer p {
    font-size: 1.1rem;
    line-height: 1.1rem;
  }
  .footer p a {
    text-decoration: none;
  }
}
@media (min-width: 376px) and (max-width: 450px) {
  body {
    max-height: 100vh;
    height: 100vh;
  }

  body,
  header,
  .container {
    font-size: clamp(0.8rem, 3.7vw, 1.1rem);
  }
  header #logo {
    width: 70px;
    margin-left: 10px;
  }
  .title-container {
    position: relative;
    margin-left: 5rem;
    margin-right: auto;
    font-size: clamp(0.8rem, 3.7vw, 0.9rem);
  }
  .container {
    width: 77vw;
    height: auto;
    margin-bottom: 0;
  }

  #result {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    font-weight: lighter;
    line-height: normal;
    margin-top: 4%;
    margin-bottom: 0%;
    padding-right: 10px;
  }
  #dateResult {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    font-weight: lighter;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 5px;
    padding-right: 10px;
    line-height: 1.5rem;
    height: 100px;
  }

  .container-name,
  .container-date,
  .container-refresh,
  .container-today {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    margin-top: 1rem;
  }

  .container-name button,
  .container-date button {
    width: 50px;
    height: 30px;
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    padding: 5px;
    margin-top: 10px;
  }

  .container-refresh button {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    width: 125px;
    height: 50px;
    line-height: 20px;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .footer {
    font-size: clamp(0.6rem, 3vw, 0.8rem);
    margin-top: -15px;
  }

  .footer p {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    line-height: 2rem;
    padding: 5px;
  }
}
@media (min-width: 282px) and (max-width: 375px) {
  body {
    max-height: 100vh;
    height: 100vh;
  }

  body,
  header,
  .container {
    font-size: clamp(0.8rem, 3.7vw, 1.1rem);
  }
  header #logo {
    width: 70px;
    margin-left: 10px;
  }
  .title-container {
    position: relative;
    margin-left: 4.7rem;
    margin-right: auto;
    font-size: clamp(0.8rem, 3.7vw, 0.9rem);
  }
  .container {
    width: 77vw;
    height: auto;
    margin-bottom: 0;
    margin-top: -20px;
  }

  #result {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    font-weight: lighter;
    line-height: normal;
    margin-top: 4%;
    margin-bottom: 0%;
    padding-right: 10px;
  }
  #dateResult {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    font-weight: lighter;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 5px;
    padding-right: 10px;
    line-height: 1.5rem;
    height: 100px;
  }

  .container-date,
  .container-refresh,
  .container-today {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    margin-top: 0.5rem;
  }

  .container-name button,
  .container-date button {
    width: 50px;
    height: 30px;
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    padding: 5px;
    margin-top: 10px;
  }

  .container-refresh button {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    width: 125px;
    height: 50px;
    line-height: 20px;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .footer {
    font-size: clamp(0.6rem, 3vw, 0.8rem);
    margin-top: -15px;
  }

  .footer p {
    font-size: clamp(0.7rem, 3.6vw, 0.9rem);
    line-height: 1.6rem;
    padding: 5px;
  }
}

@media (min-width: 278px) and (max-width: 281px) {
  body {
    max-height: 100vh;
    height: 100vh;
  }

  body,
  header,
  .container {
    font-size: clamp(0.6rem, 3.5vw, 0.9rem);
  }
  header #logo {
    width: 60px;
    margin-left: 10px;
  }

  .title-container {
    position: relative;
    margin-left: 3rem;
    margin-right: auto;
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  }
  .container {
    width: 73vw;
    height: auto;
    margin-bottom: 0;
  }

  #result {
    font-size: clamp(0.6rem, 3.5vw, 0.8rem);
    font-weight: lighter;
    line-height: normal;
    margin-top: 4%;
    margin-bottom: -5%;
    padding-right: 10px;
  }
  #dateResult {
    font-size: clamp(0.6rem, 3.5vw, 0.8rem);
    font-weight: lighter;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 5px;
    padding-right: 10px;
    line-height: 1.5rem;
    height: 100px;
  }

  .container-name,
  .container-date,
  .container-refresh,
  .container-today {
    font-size: clamp(0.6rem, 3.5vw, 0.8rem);
  }

  .container-name button,
  .container-date button {
    width: 50px;
    height: 30px;
    font-size: clamp(0.6rem, 3.5vw, 0.8rem);

    margin-top: 10px;
  }

  .container-refresh button {
    font-size: clamp(0.6rem, 3.5vw, 0.8rem);
    width: 110px;
    height: 50px;
    line-height: 20px;
    margin-top: -10px;
    margin-bottom: 4px;
  }

  .footer {
    font-size: clamp(0.5rem, 3vw, 0.7rem);
    margin-top: -10px;
  }

  .footer p {
    font-size: clamp(0.6rem, 3.5vw, 0.8rem);
    line-height: 0.7rem;
    padding: 5px;
  }
}
