/* Reset and Base */
body {
  font-family: Arial, sans-serif;
  background-color: #1e1e1e;
  color: white;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: #2a2a2a;
  text-align: center;
  padding: 20px;
  position:relative;
  display: flex;
  flex-direction: rows;
  align-items: center;
  justify-content:center;
}

header h1 {
  font-size: 4em;
  margin-bottom: 20px;
}

header P{
  font-size:1rem;
}

header img {
  width: 100%;
  overflow:hidden;
  
}

.head-text {
  display:flex;
  flex-direction:column;
  align-items: center;
  justify-content:center;
  position:absolute;
}

div h1 {
  font-size: 3vw;
  margin: 5px;
}

/* Portal Section */
.portal-section {
  border-radius: 10px;
  padding: 10px;
  margin: 20px 0;
}

.portal-grid {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping if needed for img and icons */
  gap: 20px; /* Space between grid items */
  justify-content: center; /* Center the entire layout */
  align-items: center; /* Vertically center items */
  margin: 0 auto; /* Horizontally center the grid */
  min-height: 10em; /* Maintain height if intentional */
}

.portal-icons { 
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 50rem;
}

.portal-icons a {
  background-color: white       ;
  border-radius: 10px;
  padding:10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  text-decoration: none;
}

.portal-icons h3{
  color: black;
  text-align: center;
  margin:0;
  font-size: 20px;
}

.portal-icons a:hover {
  background-color: #4c4c4c;
}

.portal-icons img {
  width: 7rem;
  height: auto;
  object-fit: contain;
}

/* Clock Section */
.clock-section {
  min-height: 40rem;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}


.clock-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 50rem;
  margin: 0 auto;
}

.clock {
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 200px;
  color: #333;
}

.clock h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.clock p {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
}