@charset "UTF-8";

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", "Garamond", "Times", serif;
  background-image: url('../media/boothbackgrd.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #222;
  line-height: 1.6;
}

/* Links */
a { text-decoration: none; }

/* ===== Logo Header ===== */
#logohead { 
  text-align: center; 
  padding: 1rem 0; 
  background: #111; 
}

#logohead img {
  width: 50px;
  height: 50px;
  position: fixed;
  top: 15px;
  right: 10px;
}

/*NavBar Jazz*/
#navbar ul { 
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #4592c9;
    border-radius: 10px;
	width: 1170px;
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 16px;
    padding-right: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
	border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
#navbar li {
    float: left;
    border-right: 1px solid #23f308;
}
#navbar li:last-child {
    border-right: 1px solid #23f308;
}
#navbar li a {
    font-size: 20px;
    display: block;
    color: white;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    text-decoration: none;
}
#navbar li a:hover {
    background-color: #0a436b;
}
#navbar .active {
    background-color: #010b13;
 }


/* ===== Wrapper & Header ===== */
#wrapper {
  width: 90%;
  max-width: 1170px;
  margin: auto;
  padding: 16px;
  background-color: rgba(214, 233, 248, 0.6);
  flex: 1;
}

header h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #444;
}

/* ===== Portfolio Grid ===== */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ===== Project Cards ===== */
.project {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.project:hover { transform: translateY(-5px); }

.thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  cursor: pointer;
}

/* Thumbnail Image or Video */
.thumbnail img.video-thumb,
.thumbnail video.video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional play icon overlay */
.thumbnail::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* Info overlay on hover */
.info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.75);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
  overflow-y: auto;
  pointer-events: none;  /* allows clicks to pass through */
}

.project:hover .info { opacity: 1; }

.info ul { list-style: none; padding: 0; }
.info li { margin: 0.5rem 0; }
.info b { color: #00ff00; }

/* ===== Footer ===== */
footer {
  text-align: left;
  background-color: #589ccb;
  color: black;
  font-size: medium;
  border-radius: 10px;
  width: 90%;
  max-width: 1170px;
  margin: 16px auto 0 auto;
  padding: 16px;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-content {
  position: relative;
  width: 80%;
  max-width: 960px;
  aspect-ratio: 16/9;
}

.lightbox-content video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: #000;
}

.lightbox .close {
  position: absolute;
  top: -20px;
  right: 0;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
}

.video-title {
    position: absolute;
    top: -7px; /* raised by 4 pixels */
    left: 0;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 0.3rem 0;
    opacity: 1;
    z-index: 2;
}

.project:hover .video-title {
    opacity: 1;
}

/* ===== Mobile Responsive Adjustments ===== */
@media (max-width: 768px) {

  #navbar ul {
    flex-direction: column;
    width: 100%;
    border-radius: 0;
  }

  #navbar li {
    float: none;
    border-right: none;
    border-bottom: 1px solid #23f308;
  }

  #wrapper {
    width: 95%;
    padding: 8px;
  }

  .portfolio {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  footer {
    width: 95%;
    padding: 8px;
  }

  .thumbnail::after {
    font-size: 2rem;
  }
}

/*Sidequest Section*/
.media-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* space between columns */
  justify-items: center;
  margin-top: 1rem;
  align-items: center;
}
h3 {
	text-align: center;
}
