* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #006648;
  background-image: url("background.jpg");
  background-size: cover;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #ffffff;
}

.app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

/* ---------- TOP: CLOCK ---------- */
#clock-container {
  flex: 0 0 0cm;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 3vw;
  background-color: rgb(22, 110, 86);  white-space: nowrap;
}

#date {
  text-align: left;
  font-size: 4.5vw;
  font-weight: 700;
  letter-spacing: 0px;
  color: #ffffff;
  order: 1;
  text-decoration: bold;
  font-family: "Inter", "Montserrat", sans-serif, "Open Sans";   
}

#time {
  font-size: 4.5vw;
  font-weight: 700;
  letter-spacing: 2px;
  order: 2;
}

/* ---------- CENTER: SLIDESHOW ---------- */
#slideshow-container {
  flex: 1 1 65%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #3e3939;
  position: relative;
  overflow: hidden;
  background-color: rgb(22, 110, 86);
}

#slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

#slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none; 
}
#slideshow video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: block;
  pointer-events: none;   /* Prevents hover triggering modals */
}

#slideshow img.active,
#slideshow video.active {
  opacity: 1;
}
/*

#slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}


#slideshow img.active {
  opacity: 1;
}

*/


/* =============================================
   SLIDESHOW CONTROLS STYLES
   ============================================= */

.slideshow-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 5px auto;
  padding: 0px 40px;
  border-radius: 5px;
  width: fit-content;
}

/* Base button style */
.control-btn {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background-color: #006648;        /* Your dark green */
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Previous & Next */
#prev-slide, #next-slide {
  font-size: 26px;
  padding: 16px 26px;
  min-width: 70px;
}

/* Pause/Play Button */
#toggle-play {
  padding: 16px 40px;
  min-width: 170px;
  font-size: 18px;
}

/* Arrow icons only */
#prev-slide {
  content: "❮";
}

#next-slide {
  content: "❯";
}


/* ---------- BOTTOM: BUTTONS ---------- */
#button-container {
  flex: 0 0 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vh;
  padding: 3vh 3vw;
  background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRjN9sGH0whW8RM8fzqQXZu8BMobjbjD447FvdKFN1RHh0CqYzuPZ66MAIQ&s=10");
  background-size: repeat;
  border-top: 2px solid #23262f;
}

.action-btn {
  font-size: 2.2vw;
  font-weight: 600;
  color: #ffffff;
  background-color: rgb(22, 110, 86);
  border: 2px solid #3a4157;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.action-btn:active {
  transform: scale(0.96);
}

/* ---------- MODAL ---------- */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.25s ease;
}

#modal-overlay.hidden {
  display: none;
}

#modal-box {
  background: #1a1d26;
  border: 2px solid #3a4157;
  border-radius: 20px;
  padding: 5vh 5vw;
  width: 70vw;
  max-width: 700px;
  text-align: center;
}

#modal-image.hidden {
  display: none;
}


#modal-title {
  font-size: 3vw;
  margin-bottom: 2vh;
  color: #ffffff;
}

#modal-content {
  font-size: 2vw;
  color: #cfd3da;
  line-height: 1.5;
  margin-bottom: 3vh;
  font-family: sans-serif, "Open Sans", "Inter", "Montserrat"; 

}

#modal-close {
  font-size: 1.8vw;
  padding: 1.2vh 3vw;
  border: none;
  border-radius: 12px;
  background: #3a7bfd;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

#modal-box.map-mode {
  width: 90vw;
  max-width: 1400px;
}


/* =============================================
   VARIABLE FONTS
   ============================================= */

/* --- Open Sans --- */
@font-face {
    font-family: "Open Sans";
    src: url("fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype-variations");
    font-weight: 400 700;        /* Supports weights from 400 to 700 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype-variations");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* --- Montserrat --- */
@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* --- Inter --- */
@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype-variations");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype-variations");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

#modal-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}


#map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 30px auto 20px;
    width: fit-content;
    pointer-events: none;
}

#map-controls.hidden {
    display: none;
}

.map-arrow-btn {
    pointer-events: auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

#modal-close_map {
  font-size: 1.8vw;
  padding: 1.2vh 3vw;
  border: none;
  border-radius: 12px;
  background: #be1010;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}