/* Mobile-first approach */
@font-face {
  font-family: 'custom-local-font';
  src: url('./W95FA.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}



body {
  background-color: #008080;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-y: auto;
  font-family: 'custom-local-font', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
}

.window {
  background-color: #ffffff;
  border: 3px solid #000000;
  box-shadow: inset -3px -3px #ffffff, inset 3px 3px #808080;
  padding: 0;
  margin: 20px auto;
  width: 95%;
  max-width: 800px;
  overflow: hidden;
}

.title-bar,
.menu-bar {
  width: 100%;
  box-sizing: border-box;
}

.title-bar {
  background-color: navy;
  color: white;
  padding: 6px 8px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-bar-buttons {
  display: flex;
  gap: 4px;
}

.title-bar-button {
  background-color: #c0c0c0;
  border: 2px outset #fff;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 16px;
  font-size: 14px;
  cursor: pointer;
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  background-color: #c0c0c0;
  padding: 4px 8px;
  border-bottom: 2px solid #808080;
  font-size: 16px;
  gap: 10px;
  font-family: 'custom-local-font', sans-serif;
}

.menu-bar a {
  text-decoration: none;
  color: #000000;
}

.menu-item {
  cursor: pointer;
  padding: 4px 6px;
  white-space: nowrap;
}

.menu-item:hover {
  background-color: navy;
  color: white;
}

.content {
  padding: 15px;
}

h2 {
  font-size: 20px;
  margin-top: 0;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

.button {
  background-color: #c0c0c0;
  border: 3px outset #fff;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
}

.button:active {
  border: 3px inset #808080;
}

input,
textarea,
select {
  border: 3px inset #808080;
  background-color: #ffffff;
  font-size: 16px;
  padding: 6px 10px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.committee-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.committee-list li {
  background-color: #c0c0c0;
  border: 2px outset #fff;
  padding: 8px;
  margin: 4px 0;
  cursor: pointer;
}

.event-box {
  background-color: #ffffff;
  border: 2px solid #000000;
  box-shadow: inset -2px -2px #ffffff, inset 2px 2px #808080;
  padding: 10px;
  margin-bottom: 10px;
}

.event-title {
  font-weight: bold;
  font-size: 16px;
}

.event-meta {
  font-size: 14px;
  color: #333;
  margin: 4px 0;
}

.event-desc {
  font-size: 14px;
}

.link-list {
  margin-top: 6px;
  font-size: 14px;
}

.link-list a {
  color: black;
  text-decoration: underline;
  margin-right: 6px;
}

.link-list a:hover {
  background-color: navy;
  color: white;
  text-decoration: underline;
}

/* Popup styles */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  animation: popupFadeIn 0.5s ease forwards;
  z-index: 9999;
}

.popup-content {
  background-color: #c0c0c0;
  border: 3px solid #000;
  box-shadow: inset -3px -3px #ffffff, inset 3px 3px #808080;
  padding: 20px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  animation: popupScale 0.5s ease;
  position: relative;
}

#closeBtn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #c0c0c0;
  border: 3px outset #fff;
  color: black;
  font-family: 'custom-local-font', sans-serif;
  font-size: 16px;
  cursor: pointer;
}

#closeBtn:active {
  border: 3px inset #808080;
}

.achievement {
  width: 64px;
  height: 64px;
  background-color: #4d4d4d;
  border-radius: 32px;
  position: relative;
  transition: width 1s;
  overflow: hidden;
  margin: 0 auto;
}

.achievement.out {
  width: 100%;
  max-width: 350px;
}

.circle {
  background: #1a1a1a;
  width: 58px;
  height: 58px;
  display: block;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 30px;
  z-index: 2;
}

.circle span:not(.logo) {
  display: block;
  width: 25px; 
  height: 25px;
  position: absolute;
  background-color: #828282;
  left: 3px;
  top: 3px;
}

.circle span:nth-child(1) {
  border-radius: 25px 0 0 0;
  background-color: #75aa1e;
}

.circle span:nth-child(2) {
  border-radius: 0 25px 0 0;
  left: 30px;
}

.circle span:nth-child(3) {
  border-radius: 0 0 25px 0;
  left: 30px;
  top: 30px;
}

.circle span:nth-child(4) {
  border-radius: 0 0 0 25px;
  top: 30px;
}

.logo {
  position: absolute;
  left: 12px;
  top: 12px;
  background-image: url("static/images/achivment.png");
  background-size: 30px 30px, cover;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  height: 30px;
  width: 30px;
  border: 2px solid #161616;
  border-radius: 30px;
  z-index: 3;
}

.achievement .text {
  position: absolute;
  left: 80px;
  top: 15px;
  width: calc(100% - 90px);
  text-align: left;
  color: white;
  font-family: sans-serif;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s 0.5s;
  z-index: 1;
}

.achievement.out .text {
  opacity: 1;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .window {
    margin: 40px auto;
  }
  
  .title-bar {
    padding: 8px 12px;
    font-size: 22px;
  }
  
  .title-bar-button {
    width: 24px;
    height: 24px;
    line-height: 20px;
    font-size: 18px;
  }
  
  .menu-bar {
    padding: 6px 12px;
    font-size: 18px;
    gap: 20px;
  }
  
  .content {
    padding: 20px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  h4 {
    font-size: 18px;
  }
  
  .button {
    padding: 10px 20px;
    font-size: 18px;
  }
  
  .committee-list li {
    padding: 10px;
  }
  
  .event-title {
    font-size: 18px;
  }
  
  .event-desc {
    font-size: 16px;
  }
  
  .link-list {
    font-size: 16px;
  }
}

@keyframes popupScale {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

html {
  scroll-behavior: smooth;
}


.image-container {
  border: 3px inset #808080;
  background-color: #fff;
  padding: 4px;
  display: flex;          
  justify-content: center;
  align-items: center;
  width: 100%;                 
  height: 300px;               
  box-sizing: border-box;
}

.image-container img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;        
  display: block;
}


#slideshow-container {
  max-width: 500px; 
  margin: 15px auto; 
}

#slideshow-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

#image-counter {
  font-family: 'custom-local-font', sans-serif;
  font-size: 16px;
}

button {
  background-color: #c0c0c0;
  border: 3px outset #fff;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
}