body {
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
  color: #000000;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  font-size:15px;
}

#mainContentHolder {
  
  /*min-height: calc(125vh - 2 * 0.1rem); */
  min-height: 1200px;
  border-left: 2px solid #ccc;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  max-width:767px;
  background-color: #fff;
}



@media screen and (max-width: 500px) {
  #mainContentHolder {
    margin: 0 !important;
    width: 100%;
    border: none !important;
    min-height: 100vh;
    background: none;
}
}

/* Desktop Styles */
@media screen and (min-width: 501px) {
  body {
    margin-left: 30px;
    margin-right: 30px;
  }
  /*guys bat nahati sa gitna yung dfy immigration*/
  #secondMainContentHolder {
  
    padding-left:20px;
    padding-right:20px;
    min-height: 100vh;
    
  }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  width: calc(100% - 4px);
}

.logo-container img {
  max-width: 100%;
  height: auto;
}

.logo-container {
  flex-basis: 70%;
  max-width: 350px;
}

.user-info {
  display: flex;
  align-items: center;
  flex-basis: 30%;
  justify-content: flex-end;
  margin-top: -3px;
  margin-right:5px;
}


.dropdown {
  position: relative;
  padding-left: 1px;
  padding-right: 1px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #f9fafb;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 0.35rem;
  text-decoration: none;
  color: #1f2937;
  font-size: 22px;
}

.dropdown-content a:hover {
  background-color: #edf2f7;
}

.dropdown:hover .dropdown-content {
  display: block;
}


/* Increase .dropbtn font size */
.dropbtn {
  
  font-size: 15px;
  color:#000000;
  
}


.signup-container {
  /*background-color: #f8f8f8;*/
  background-color: #f2f2f2;
  border-top: 2px solid #a8a8a8;
  border-bottom: 2px solid #a8a8a8;
  /*border-radius: 5px;*/
  padding: 20px;
  text-align: center;
  /*max-width: 400px;*/
  margin: 0 auto;
}

.signup-container label {
  display: block;
  font-size: 28px; /* Adjusted font size */
  margin-bottom: 10px;
}

.signup-container input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 20px; /* Adjusted font size */
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.signup-container input[type="password"] {
  width: 100%;
  padding: 10px;
  font-size: 20px; /* Adjusted font size */
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 10px;
  box-sizing: border-box;
}


.signup-container button {
  padding: 10px 20px;
  font-size: 20px; /* Adjusted font size */
  background-color: #29aae3;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.signup-container button:hover {
  background-color: #47c9f0;
}

.signupButton {
  margin-top: 5px;
}

.response-box {
  padding: 10px;
  background-color: #FADBD8;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  margin-bottom: 30px;
  font-size: 13px; /* Adjusted font size */
  color: #333;
  display: none;
}

.response-box:not(:empty) {
  display: block;
}

.policyBox {
    margin-top: 30px;
}

a {
  color: #24ace4;
}


.popup-container {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 20px;
  width: 275px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

.popup-content {
  margin-bottom: 20px;
}

.popup-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.popup-message {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
}

.popup-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #24ace4;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.popup-button:hover {
  background-color: #1c8ac8;
}

.percentage .percent-sign {
  font-weight: bold;
  color: inherit;
}

/* Overall Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black backdrop */
    font-family: 'Arial', sans-serif;
}

/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    width: 80%;
    max-width: 400px;
    background-color: #ffffff; /* Solid white */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow for depth */
    text-align: center;
}

/* Modal Header */
.modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

/* Modal Message */
.modal-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Modal Buttons */
.modal-content button {
    padding: 10px 15px;
    margin: 0 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Cancel Button - White */
.modal-content button:nth-child(3) {
    background-color: #007bff;
    color: white;
}

.modal-content button:nth-child(3):hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Continue Button - Blue */
.modal-content button:nth-child(2) {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.modal-content button:nth-child(2):hover {
    background-color: #f5f5f5; /* Light gray on hover */
}

/* Start PAGINATION CSS for communicationadmin page */
#pagination-container{
  display: flex;
  justify-content: right;
  align-items: center;
  margin-bottom: 1%;
}

.pagination-buttons{
  text-decoration: none;
  border: 1px solid black;
  padding: 2px 20px;
  margin-left: 10px;
  color: black;
  border-radius: 5px
}

.pagination-buttons:hover{
  background-color:#24ace4;
  color: white;
  border-color:#24ace4;;
}

#paginationbtn_pagenumber_select{
    margin-left: 10px;
    margin-right:  10px;
    padding: 2px 10px;
}

.paginationbtn-disabled,.paginationbtn-disabled:hover{
  pointer-events: none;
  cursor: not-allowed;
  background-color: lightgray;
  border-color: lightgray;
  color: black;
}
/* End PAGINATION CSS */

#searchresultheader{
  margin-top: 10px;
}
#search_keyword{
  font-weight: bold;
  font-style: italic;
}
#searchresultheader a{
  cursor: pointer;
  margin-left: 5px;
}

#templateDisplay{
  margin-top: -4%;
}
#search-paginate-container{
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-top: 1%;
}

@media screen and (min-width: 727px) {
  .signup-container {
    border: 2px solid #a8a8a8;
    border-radius: 5px;
  }
}