/* fade In */
/* fade Toggle */
.box1{
    width:160px;
    height:160px;
    display: none;
    background-color: grey;
  }

.box1 > .box2{
    width:120px;
    height:120px;
    margin-inline: 20px;
    display: none;
    background-color: brown;
  }
  
.box2 > .box3{
    width:80px;
    height:80px;
    margin-inline: 20px;
    display: none;
    background-color: yellow;
  }
 
.box3 >.box4{
    width:40px;
    height:40px;
    margin-inline: 20px;
    display: none;
    background-color: red;
  }

  /* fade out */
.box1{
    width:160px;
    height:160px;
    /*display: none;    div's are not visible on page load */
    background-color: grey;
  }
.box1 > .box2{
    width:120px;
    height:120px;
    margin-inline: 20px;
   
    background-color: brown;
  }
.box2 > .box3{
  width:80px;
  height:80px;
  margin-inline: 20px;
  background-color: yellow;
}
 
.box3 >.box4{
  width:40px;
  height:40px;
  margin-inline: 20px;
  background-color: red;
}

#b1,#b2,#b3,#b4{
  border-color: blue;
}

#fade{
  display:flex;
  justify-content: center;
  margin: auto;
  gap: 10px;
}

#info{
  display:flex;
  justify-content: center;
  margin: auto;
  gap: 10px;
}

/* Pagination at the footer for web pages */
.pagination {   
  display: flex;      
  justify-content: center;              
}

.pagination a {
  color: blue;               
  text-decoration: none; 
  padding: 8px 15px;         
  display: inline-block;           
}

.pagination a.active {
  background-color: green;
  font-weight:bold;
}

 /* Vertical stack for buttons */
.vertical button {
  margin-top: 5px;
  display: inline; 
  margin-bottom: 8px;
  background-color: #008CBA;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Rolling square */
.stop, .roll {
  background-color: #4CAF50;
  color: white;
}

/* Pagination Table CSS */
.paging-nav {
  text-align: right;
  padding-top: 2px;
}

.paging-nav a {
  margin: auto 1px;
  text-decoration: none;
  display: inline-block;
  padding: 1px 7px;
  background: #91b9e6;
  color: white;
  border-radius: 3px;
}

.paging-nav .selected-page {
  background: #187ed5;
  font-weight: bold;
}

.paging-nav,
#tableData {
  width: 400px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.container {
  margin-top: 100px;
}

#hoverBox {
  width: 200px;
  height: 200px;
  background-color: lightblue;
  text-align: center;
  line-height: 200px;
  font-size: 18px;
  border: 2px solid #333;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.hoverbox {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

/* Image styling */
.hoverbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Overlay styling */
.hoverbox .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px;
}

/* Hover effects */
.hoverbox:hover {
    transform: scale(1.03);
}

.hoverbox:hover img {
    transform: scale(1.1);
}

.hoverbox:hover .overlay {
    opacity: 1;
}



/* Overlay background */
#overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

  /* Popup box */
#popup {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: sandybrown;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 1000;
}

#popup h2 {
  margin-top: 0;
}

.close-btn {
  float: right;
  cursor: pointer;
  font-size: 18px;
  color: #888;
}

.close-btn:hover {
  color: #000;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  box-sizing: border-box;
}

#loginBtn {
  width: 20%;
  padding: 10px;
  background: #9e3d0fe8;
  color: rgb(123, 255, 0);
  border: none;
  font-weight: bold;
  font-size: medium;
  cursor: pointer;
  border-radius: 4px;
}

#loginBtn :hover {
  background: #218838;
}

.error {
  color: red;
  font-size: 0.9em;
}

.lgn{
  aspect-ratio: 1;
  clip-path: polygon(50% 0,
    calc(50%*(1 + sin(.4turn))) calc(50%*(1 - cos(.4turn))),
    calc(50%*(1 - sin(.2turn))) calc(50%*(1 - cos(.2turn))),
    calc(50%*(1 + sin(.2turn))) calc(50%*(1 - cos(.2turn))),
    calc(50%*(1 - sin(.4turn))) calc(50%*(1 - cos(.4turn))) 
   ); 
}


button {  
  border: 5px solid #0000;
  border-radius: 25px;
  background: linear-gradient(#FF4E50,#40C0CB) border-box;
  background-clip: border-area; /* The new added value */
}

.hvr, #ovrl {
  --r: 30px; /* control the folded part */
  
  background: 
    linear-gradient(90deg,#0007,#0000 calc(var(--r)/2) calc(100% - var(--r)/2),#0007) 
    #88C425;
  border-radius: 0 0 var(--r) var(--r);
  --_m:0,#0000 100%,#000 calc(100% + 1px);
  mask:
    radial-gradient(var(--r) at 100% var(--_m)) no-repeat,
    radial-gradient(var(--r) at 0    var(--_m)) 100% 0 no-repeat,
    linear-gradient(#0000 var(--r),#000 0);
  mask-size: var(--r);
}

.tips {
  --s: 10px;  /* control the size (height of the spikes) */
  --a: 90deg; /* control the angle */
  
  mask: 
    repeating-conic-gradient(from calc(180deg - var(--a)/2) at 50% var(--s),#000 0 var(--a),#0000 0 180deg) 
    50% calc(-1*var(--s))/calc(2*var(--s)*tan(var(--a)/2));
}

iframe {
  border: 1px;
  margin-top: 2px;
}

.left {
  width: 450px;
  height: 280px;
}

.right {
  width: 900px;
  height: 900px;
}

.confetti-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevent interaction */
  overflow: hidden;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 1;
  }
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 20px;
  background: var(--confetti-color, red);
  opacity: 0.9;
  animation: confetti-fall var(--fall-duration, 4s) linear infinite;
}


.dropbtn {
  background-color: #3498db;
  color: white;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  }

  /* Dropdown content */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    max-height: 150px; /* Limit height */
    overflow-y: auto;  /* Enable vertical scroll */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
  }

  /* Dropdown links */
  .dropdown-content a {
    color: brown;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
  }

  /* Show dropdown on hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }

 .letter {
        position: absolute;
        pointer-events: none; /* Don't block mouse events */
        font-size: 2em;
        opacity: 0.8;
        transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    }

    @keyframes wave {
      0%, 60%, 100% {
        transform: translateY(0);
      }
      30% {
        transform: translateY(-10px);
      }
  }

  .wave {
    font-size: 2.5rem;
    display: inline-block;
  }

  /* Each letter will be animated separately */
  .wave span {
    display: inline-block;
    animation: wave 1.s infinite;
    animation-delay: calc(var(--i) * 0.1s);
  }

#heading1 span {
        display: inline-block;
        animation: wave 1.5s infinite;
}
/* Wave animation keyframes */
@keyframes heading-wave {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
}








