body {
  background-color: #6f9ceb;
  color: white;
  font-family: Verdana;
  padding:20px;
  overflow-x: hidden; 
}

.construct{
  display: inline-block;
  position: relative;
  background-image: url("/rectangle.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.construct-content{
  position:absolute;
  left: 13%;
  top:13%;
  width: 78%;
  height:70%;
}

.blogpage{
  height:600px;
}

#back{
  background-color: #404b55;
  border: 5px solid white;
  border-radius: 25px;
  padding:10px;
  transition: 0.5s;
  color: white;
  text-decoration:none;
}

#back:hover{
  background-color: #606b75;
}

* {
  box-sizing: border-box;
}

.header {
  background-color:#004e98;
  border-radius: 25px;
  padding: 30px;
  font-size: 40px;
  display:flex;
  flex-direction:column;
}

#headerheader{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#categories{
  display:flex;
  align-items:center;
  justify-content: space-between;
  font-size: 18px;
  color:white;
  margin-top: 20px;
}

#categories button{
  cursor: pointer;
  padding: 8px 16px;
  margin: 0 5px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 18px;
  color: white;
  background-color: #404b55;
}

#categories button:hover {
  background-color: #606b75;
  text-decoration: underline;
}
#categories button a{
  color:white;
  text-decoration:none;
  }

#categories p.active {
  background-color: white;
  color: #004e98 ;
  font-weight: bold;
  border-color: white;
}

.header img{
  height:200px;
}

h2{
  padding-left: 30px;
  padding-right:30px;
}

#data-container{
  float: left;
  width: 75%;
}

.rightcolumn {
  float: left;
  width: 25%;
  padding-left: 20px;
}

.card {
  background-color:#004e98;
  color:white;
  width: 100%;
  font-family: Verdana;
  border-radius: 25px;
  padding:20px;
  margin-top:20px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.footer {
  padding: 20px;
  text-align: center;
  background-color:#004e98;
  border-radius: 25px;
  margin-top: 20px;
}

@media screen and (max-width: 800px) {
  .leftcolumn, .rightcolumn {
    width: 100%;
    padding: 0;
  }
}

embed {
  width: 100%;
  height:100%;
  color:white;
}

iframe {
  width: 100%;
  height:100%;
  color:white;
  border:none;
}

/* More specific selector to override general 'a' styles */
.pagination a {
  color: #004e98;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #004e98;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #004e98;
  color: white;
}

/* Active state with higher specificity */
.pagination a.active {
  background-color: #004e98;
  color: white;
  font-weight: bold;
  border-color: #004e98;
}

.pagination .disabled {
  color: #dddddd;
  cursor: not-allowed;
  pointer-events: none;
  border: 1px solid #dddddd;
  background-color: transparent;
}

.pagination {
  text-align: center;
  margin-top: 2rem;
}


.loading-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2147483647;
  transition: opacity 0.3s ease;
  isolation: isolate; 
  color:black;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none; 
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db; 
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}