* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: initial;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  position: relative;
}

.row-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 20px; */
  position: relative;
  width: 50%;
  height: fit-content;
}

#time {
  font-size: 7em;
  color: #1d1d1f;
}

#day-night {
  position: absolute;
  right: 0;
  font-size: 4em;
  color: gray;
  /* bottom: 0; */
}

.row-2 {
  position: absolute;
  bottom: 0;
  margin-bottom: 20px;
  font-size: 1.5em;
}

#upper-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 40px;
  cursor: pointer;
  margin: 20px;
  font-size: 15px;
  font-family: initial;
  font-weight: bold;
}

#upper-layer {
  position: fixed;
  width: 100%;
  height: 100vh;
  cursor: pointer;
  z-index: 50;
  top: 0;
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
}

.layer-container {
  background-color: white;
  width: 50%;
  height: 100%;
  overflow-y: scroll;
  z-index: 100;
}

.alarm-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  /* max-width: 400px; */
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #4a5568;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

input[type='time'],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #2d3748;
  transition: all 0.2s ease-in-out;
  background-color: #f7fafc;
  box-sizing: border-box;
}

input[type='time']:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: #4f46e5;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.submit-btn:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

@media screen and (max-width: 780px) {
  #time {
    font-size: 3em;
  }

  .layer-container {
    width: 100%;
  }

  .row-2 {
    font-size: 1em;
    text-align: center;
  }

  .row-1 {
    width: 60%;
  }

  #day-night {
    font-size: 1em;
    bottom: 0;
    right: 0;
    /* left: 20%; */
    /* margin: 30px; */
  }
}
