/* My CSS */

li::marker {
  color: red;
}

a {display: inline-block;}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
  
  table-layout:fixed; 
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
  
  word-wrap: break-word;
}


tr:nth-child(even) {
  background-color: #dddddd;
}


#qrcode img {
    min-width: 80%; 
    height: auto;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 33%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-body {padding: 16px;}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* W3Schools-style CSS: simple and readable, no external resources */

/* Base */
* { box-sizing: border-box; }
html { height:100%; scroll-behavior: smooth; }
body {height: 100%; margin: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; line-height: 1.4; color: #222; background: #e0ebeb; }

/* Layout container */
.container { margin: 0 auto; }

/* Header */
.header {
  padding: 20px;
  font-size: 30px;
  font-weight: bold ;
  text-align: left;
  background: #8080ff;
  color: white;
}
.header a {
    text-decoration: none; 
    color: white;
    text-shadow: 0 0 3px #FF0000;
}

.hero-text {
  text-align: center;
  top: 50%;
  left: 50%;
}


/* Navigation bar */
nav { background: #ed1c24; }
nav ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; }
nav li { float: left; }
nav li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; transition: all 0.2s; }
nav li a:hover, nav li a.active { background-color: #b9151b; }
nav::after { content: ""; display: table; clear: both; }

/* Main */
main { min-height:100%; padding: 1rem 0 2rem; }

/* Footer */
footer {text-align: center; width:100%; height: 80px; background: #111; color: #ddd; padding: 1.5rem 0; margin:0px;}
footer p { margin: 0.25rem 0; }

/* Sections & cards */
.section { padding: 1rem 0;}
.card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 1rem; margin: 0.5rem 0; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.center { text-align: center; }

/* Images */
img { max-width: 100%; height: auto; }
.img-rounded { border-radius: 8px; }
.img-frame { border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.img-hover { filter: grayscale(20%); transition: all 0.2s; }
.img-hover:hover { filter: none; transform: scale(1.01); }

/* Buttons */
.btn { display: inline-block; padding: 10px 16px; background: #ed1c24; color: #fff; text-decoration: none; border-radius: 6px; transition: all 0.2s; }
.btn:hover { background: #b9151b; }

/* Simple grid using floats (W3Schools style) */
.row::after { content: ""; display: table; clear: both; }
.col-60 { float: left; width: 60%; padding: 0 0.75rem; }
.col-50 { float: left; width: 50%; padding: 0 0.75rem; }
.col-40 { float: left; width: 40%; padding: 0 0.75rem; }
.col-33 { float: left; width: 33.33%; padding: 0 0.75rem; }
.col-25 { float: left; width: 25%; padding: 0 0.75rem; }

/* Forms */
input[type=text], input[type=email], input[type=date], input[type=time], input[type=number], textarea {
  width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; resize: vertical;
}
label { /* display: block; */ margin: 0.5rem 0 0.25rem; }
button, input[type=submit], input[type=button] { font-size: 15px; padding: 7px 10px; margin-top: 8px; margin-right: 8px; cursor: pointer;}





/* Responsive */
@media (max-width: 800px) {
  .col-60, .col-50, .col-40, .col-33, .col-25 { width: 100%; }
  .row {
    flex-direction: column;
  }  
  #qrcode img {
    width: 100%; 
    height: auto;
  }
  .modal-content {
      width:80%;
  }

}

/* youtube video iframe */

.iframe-container {
  position: relative; /* Essential for positioning the overlay relative to the container */
  width:100%;
  max-width:1000px;
  aspect-ratio: 560 / 315;
}

.iframe-container iframe {
    width:100%;
    max-width:1000px;
    aspect-ratio: 560 / 315;
    border: 2px solid #8080ff;
}

.iframe-overlay {
  position: absolute; /* Position the overlay absolutely within the container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* Semi-transparent (0, 0, 0, 0.5) black background */
  display: flex; /* For centering content within the overlay */
  justify-content: center;
  align-items: center;
  color: white; /* Text color for overlay content */
  font-size: 24px;
  z-index: 10; /* Ensure the overlay is on top of the iframe */
}

