/* p {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
} */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
}

/* Container that holds all the DIVs */
.grid-container {
  display: grid;
  grid-gap: 10px;                        /* Add gap between each grid item */
  /* width: 90%;                            Set overall width of the grid container */
  margin: 0 auto;                        /* Center the grid container horizontally */
}

/* For the first row (utc-time, t1-time, t2-time) */
#utc-time, #t1-time, #t2-time, #met, #pet1, #pet2, #pet3 {
  border: 1px solid #ccc;
  text-align: center;
  padding: 20px;
}

/* Optional: Adding responsive behavior (e.g., for smaller screens) */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;  /* Stack all items in one column on small screens */
  }
  #met {
    grid-column: span 1;
  }
}

/* Optional: Adding responsive behavior (e.g., for smaller screens) */
@media (min-width: 769px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal-width columns */
    grid-template-rows: auto auto auto;    /* 3 rows with automatic height */
  }
  #met {
    grid-column: span 3;                   /* Make the met div span all 3 columns */
  }
}

/* Main clocks */
/* #utc-time-text, #t1-time-text, #t2-time-text, #met-time, #pet1-time, #pet2-time, #pet3-time { */
.time-display {
  font-size: 36px;  /* Medium-to-large font size */
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* PETs */
/* #utc-time-text, #t1-time-text, #t2-time-text, #met-time, #pet1-time, #pet2-time, #pet3-time { */
.timer-display {
  font-size: 24px;  /* Medium-to-large font size */
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Text around clocks */
/* #utc-subscript, #t1-subscript, #t2-subscript, #utc-date, #t1-date, #t2-date{ */
.caption{
  font-size: 18px;  /* Medium-to-large font size */
  margin: 0;
  padding: 0;
}

button {
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
}

#settings-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* background-color: #fff; */
  border: 1px solid #ccc;
  /* border-radius: 50%; */
  padding: 10px;
}


/* Modal Background */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  color: black;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  text-align: left;
}

/* Button Styling */
button {
  margin-top: 10px;
  padding: 10px;
  border: none;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

.dark-mode {
  background-color: #333;
  color: white;
}

.light-mode {
  background-color: #f9f9f9;
  color: black;
}
