/* Reset and basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure the page uses the full height */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #ffeef0;
  color: #333;
  line-height: 1.6;
}

/* Popup Notification Style */
.popup-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff5555;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 300px; /* Set a fixed width for the popup */
  z-index:2000;
  margin-bottom: -60px;
}

.popup-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Progress bar above the popup */
.popup-notification .progress-bar-wrapper {
  position: relative;
  height: 5px;
  background-color: rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  border-radius: 5px;
}

.popup-notification .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: orange;
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* Navigation styling */
/* hamburger2 Button */
.hamburger2 {
    width: 35px;
    height: 30px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin: 5px;
    padding:2px;
}

.hamburger2 span {
    width: 100%;
    height: 5px;
    background: #FF6980;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

    /* hamburger2 Animation */
    .hamburger2.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger2.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger2.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}


nav a {
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
  padding: 10px 20px;
  background-color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s;
  animation: pop-in 1s ease-out;
  z-index: 1;
}

nav a.active {
  background-color: #ff94a4;
}

nav a:hover {
  background-color: #ffb6c1;
  color: #fff;
}

/* Main content area */
.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
  padding: 30px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 250px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
  animation: float 5s ease-in-out infinite;
  display: block; /* Makes the card a block element, so it behaves like a link */
  text-decoration: none; /* Remove the default underline of anchor tags */
  color: #333; /* Ensure the text color is readable */
}

.card:hover {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ff6347;
}

.card p {
  font-size: 1rem;
  color: #777;
}

/* Animation for floating effect */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Pop-in effect for links */
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/*STYLES 2*/
.container {
  padding: 0px 30px;
  flex: 1;
}
.main-container {
  padding: 20px 20px;
}

h2 {
  color: #333;
  background-color: ;
  margin: 30px 0px 20px 0px;
}

h3 {
  color: #444;
  margin: 20px 0px;
  background-color: ;
}

section {
  margin-bottom: 40px;
}

ul {
  list-style-type: none; 
  padding: 0;
}

ul li {
  margin: 5px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  table-layout: fixed; /* Ensures content is well-distributed */
  overflow-x: auto; /* Allows scrolling on smaller screens */
}

/* Custom Alert Box Styles */
.alert-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2); /* Glass effect */
    backdrop-filter: blur(10px); /* Blur background */
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    width: 320px;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -55%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show animation */
.alert-box.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Alert message */
.alert-box p {
    margin: 10px 0;
    font-size: 17px;
    font-weight: 500;
}

/* OK Button */
.alert-box button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.alert-box button:hover {
    background: linear-gradient(135deg, #0056b3, #004299);
    transform: scale(1.05);
}

/* Hidden state */
.hidden {
    display: none;
}

@media screen and (max-width: 768px) {
  table th,
  table td {
    padding: 8px; /* Slightly smaller padding for mobile */
  }
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

table th {
  background-color: #ff6b6b;
  color: white;
}

/* Button for opening dialog */
button.open-dialog {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    cursor: pointer;
}

button.open-dialog:hover {
    background-color: #45a049;
}

/* Dialog box styling */
.dialog {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.dialog-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*scroll button*/
.scroll-btn {
  position: fixed;
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  z-index: 1;
  height: 3rem;
  width: 3rem;
}

/* push notification button */
.floating-button {
    position: fixed;
    height: 3.5rem;
   width: 3.5rem;
    bottom: 50%;
    left: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Hidden by default */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.floating-button:hover {
    background-color: #45a049; /* Darker Green */
}


#scroll-up {
  bottom: 6rem;
  right: 20px;
}

#scroll-down {
  bottom: 2rem;
  right: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

.modal-content  {
	transform: scale(0.9); /* Scale down to 50% */
        transform-origin: center; /* Adjust origin for scaling */
	}
	
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

  .main-content {
    flex-direction: column;
    align-items: center;
  }
  
	.hamburger2 {
		display: flex;
	}

	.nav-menu{
        display: none;
        flex-direction: column;
        gap: 15px;
    }


   footer {
        font-size: 12px;
        padding: 15px 5px;
    }
    
}

