/* Reset */

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

body {
  font-family: serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-image: url("images/contour_pattern.svg")
}

/* Navbar container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #041729;
  padding: 0 1rem;
  min-height: 26px;
  height: 60px;
}

#navbar {
  position: fixed;
  top: 0;
  right: 0;
}

/* Logo */
.logo {
    width: 15%;
    height: auto;
}

#logo {
    position: fixed;
    top: 5px;
    left: 5px;
}

.button {
    background-color: #007BFF;   /* blue color */
    color: white;                /* text color */
    padding: 10px 20px;          /* space inside button */
    margin: 10px;
    border: none;                /* remove default border */
    border-radius: 20px;         /* rounded corners */
    font-size: 16px;
    cursor: pointer;             /* pointer on hover */
}

.button:hover {
    background-color: #0056b3;
}

.title {
  color: #fff;
  font-size: 6vw;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
}

#title {
    position: fixed;
    top: 5vw;
    left: 8vw;
}

.actual {
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    background-image: url("images/actual.png");
}

.actual a {
    color: #fff;
    text-decoration: none;
}

#actual {
    position: fixed;
    top: 5px;
    left: 20vw;
}

.hdr_img {
    width: 100%;
    height: auto;
}

.btm_top {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 15px;
}

/* Menu */
.menu > ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

/* real body */

h1 {
    color: #3797f4;
    display: flex;
    margin-top: 15px;
    justify-content: center;
}

h3 {
    color: #3797f4;
    display: flex;
    margin-top: 5px;
    justify-content: center;
}

h4 {
    color: #3797f4;
    display: flex;
    margin-top: 3px;
    margin-bottom: 5px;
    justify-content: center;
}

select {
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
    margin-left: 15px;
    justify-content: center;
    align-items: center;
}

dt {
    display: flex;
    background: rgba(233, 234, 235, 0.5);
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 5px;
    margin-bottom: 0px;
}

dd {
    display: flex;
    margin-top: 2px;
    margin-left: 35px;
    margin-right: 5px;
    margin-bottom: 0px;
}

.subtitle {
    color: #3797f4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subtitle_num {
    font-size: 16;
    font-weight: bold;
    color: #3797f4;
    display: flex;
    justify-content: left;
    align-items: left;
}

#year {
    color: #3797f4;
    /* display: flex; */
    display: block;
    justify-content: center;
    align-items: center;
}

/* image gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 10px;
}

.gallery-item {
  border: 1px solid #ccc;
  background: white;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  border-color: #777;
}

.desc {
  padding: 6px;
  text-align: center;
  font-size: 0.9rem;
}

/* two column body */
.col {
    color: #464747;
    float: left;
    width: 50%;
    padding: 10px;
}

.col p {
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 10px;
}

.col img {
    width: 100%;
    height: auto;
}

/* timeline for history page */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 20px 0;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background: #3498db;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline_item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  position: relative;
}

.timeline_item.left .timeline_content {
  grid-column: 1;
  justify-self: end;
}

.timeline_item.right .timeline_content {
  grid-column: 2;
  justify-self: start;
}

.timeline_content {
  background: #f5f5f5;
  padding: 15px 20px;
  border-radius: 8px;
  width: 80%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.timeline_item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: white;
  border: 3px solid #3498db;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* three column bottom */
.btm_col {
    color: #f5f4f2;
    text-align: center;
    /*float: left;*/
    width: 33.3333333333%;
    padding: 20px 10px;
 /*   box-sizing: border-box;*/
}

.btm_col h3 {
    text-align: center;
    margin: 2px 2px 10px 2px;
}

.btm_col p {
    margin: 1px 1px 8px 1px;
}

.btm_col a {
    /* color: #3797f4;*/
    color: #f5f4f2;
    text-decoration: none;
}

.actual a:hover,
.btm_col a:hover {
    font-weight: bold;
    text-decoration: underline;
}

.container {
}

.container:after {
    content: "";
    display: table;
    clear: both;
}

.btm_container {
    background-color: #313b45;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu a,
.menu label {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  cursor: pointer;
}

.menu a:hover,
.menu label:hover {
  background: #374151;
  border-radius: 4px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  background: #374151;
  min-width: 180px;
  top: 100%;
  /*left: 0;*/
  right: 0;
  border-radius: 4px;
  overflow: hidden;
  flex-direction: column;
  z-index: 1000;
}

.submenu li a {
  padding: 0.6rem 1rem;
}

/* Desktop hover dropdown */
.dropdown:hover .submenu {
  display: flex;
}

/* Mobile toggle checkboxes */
#menu-toggle,
#drop-toggle1, #drop-toggle2, #drop-toggle3 {
  display: none;
}

/* Hamburger icon i hide for large screen */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* horizontal line for hamburger menu */
.menu-icon span {
  background: white;
  height: 3px;
  width: 25px;
  margin: 4px 0 0 140px;
  border-radius: 2px;
}

/* responsive blocks */
.grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fill, 260px);*/
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 15px;
  /*max-width: 1100px;*/
  justify-content: center;
  margin: 20px auto;
}

.grid_event {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480, 600px));
  gap: 15px;
  justify-content: center;
  margin: 20px auto;
}

.grid-item {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.grid-item:hover {
  border: 1px solid #777;
}

.grid-item img {
  /* max-width: 100%; */
  width: 200px;
  height: auto;
}

.grid-subitem {
    width: 100%;
    text-align: center;
    margin: 3px 0;
}

.gray {
    color: #bebebe;
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

  .col {
      width: 100%;
  }

  /* one column bottom */
  .btm_col {
     width: 100%;
  }

  .menu-icon {
    display: flex;
  }

  .menu {
    position: absolute;
    background: #1f2933;
    width: 100%;
    left: 0;
    top: 60px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #menu-toggle:checked ~ .menu {
    max-height: 500px;
  }

  .menu > ul {
    flex-direction: column;
  }

  .dropdown:hover .submenu {
    display: none;
  }

  .submenu {
    position: static;
    right: 0;
    min-width: 200px;
  }

  #drop-toggle1:checked + label + .submenu,
  #drop-toggle2:checked + label + .submenu,
  #drop-toggle3:checked + label + .submenu {
    display: block;
  }

  div.gallery-item {
    width: calc(50% - 20px);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline_item {
    grid-template-columns: 1fr;
  }

  .timeline_item .timeline_content {
    grid-column: 1;
    justify-self: start;
    margin-left: 40px;
    width: calc(100% - 60px);
  }

  .timeline_item::before {
    left: 20px;
    transform: none;
  }
}
