@import url("https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&family=Lato:wght@300;400;700;900&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  border-radius: 10px;
}
:root {
  --input-color: #e74c3c;
}
p {
  font-weight: bolder;
}
h1 {
  color: white;
}
body {
  height: 100vh;

  font-family: "Arvo", serif;
  font-family: "Lato", sans-serif;
  font-size: 20px;
  background-color: #1b1717;
}

.curr-time {
  width: 100%;
  margin: 40px auto;
  text-align: center;
  color: white;
}

.text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 80%;

  margin: 0 auto;
}

.input {
  background-color: var(--input-color);
  padding: 40px 20px;
  position: relative;
}
.output {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background-color: white;
  color: black;
  padding: 40px 20px;
  position: relative;
  gap: 10px;
}
.output p {
  display: flex;
  justify-content: space-between;
}
.output p input {
  border: 1px solid black;
}

.output p input:focus {
  outline: none;
}
.input button,
.output button {
  position: absolute;
  bottom: 5px;
  padding: 0.5em;
  border: none;
  cursor: pointer;
}
.input button {
  right: 10px;
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .text {
    grid-template-columns: 1fr;
  }
}
.main-header.time-header {
  background-color: white;
}
