body {
  margin: 0;
  user-select: none;
}

#menu-toggle {
  display: none;
}

.main-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgb(128, 128, 128, 0.3);
  box-shadow: 1px 1px 10px rgb(128, 128, 128, 0.3);
  background-color: white;
  z-index: 1;
}

/*  LEFT HEADER  */
.left-header {
  width:230px;
  display: flex;
  align-items: center;
}
  .logo {
    width: 60px;
    margin: 8px 5px 0px 5px;
    border-radius: 3px 35px 8px 8px;
    display: inline-block;
  }
  
  .event-name {
    color: rgb(67, 66, 66);
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0px;
    display: inline-block;
  }

  .homepage-link {
    text-decoration: none;
  }

  /*  MIDDLE HEADER  */
.middle-header {
  flex: 1;
  word-spacing: 20px;
  padding: 0 80px;
}
  .photos, .videos {
    color: rgb(67, 66, 66);
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
  }

  /*  RIGHT HEADER  */
.right-header {
  display: block;
  width: 220px;
  margin-right: 20px;
  align-items: center;
  justify-content: space-between;
}
  .right-header-menu {
    display: flex;
    gap: 20px;
  }
  .highlight, .about, .contact {
    font-size: 18px;
    color: rgb(67, 66, 66);
    font-weight: bold;
    text-decoration: none;
  }

  /* Dark mode toggle styles */
.dark-mode-toggle {
  position: absolute;
  right: 90px;
  top: 15px;
  font-size: 25px;
  cursor: pointer;
}

#dark-toggle {
  display: none;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}

body.dark-mode .event-name,
body.dark-mode p {
  color: whitesmoke;
}

body.dark-mode .main-header,
body.dark-mode header .middle-header,
body.dark-mode header .right-header-menu {
  background-color: #1f1f1f;
}

.darkMode .tool-tip,
.menu-icon-div .tool-tip {
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: rgba(197, 0, 79, 0.8);
  border-radius: 5px;
  padding: 3px 10px;
  opacity: 0;
  transition: opacity 0.3s ease-in;
  pointer-events: none;
  font-weight: bold;
  color: white;
}

.darkMode:hover .tool-tip,
.menu-icon-div:hover .tool-tip {
  opacity: 1;
}

body.dark-mode .tool-tip {
  pointer-events: none;
}

.dark-mode .menu-icon {
  background: linear-gradient(to right, rgb(37, 36, 36), rgb(99, 97, 97));
  color: white;
  padding: 5px 8px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.dark-mode .menu-icon:hover {
  background: linear-gradient(to right, rgb(99, 97, 97), rgb(37, 36, 36));
  color: white;
  transition: 0.3s;
}

@media screen and (min-width: 830px) {
  .dark-mode-toggle {
    right: 270px;
  }
  .darkMode .tool-tip {
    right: 160px;
    top: 60px;
  }
  body.dark-mode a {
    color: whitesmoke;
  }
}

/* Styles for menu icon */
.menu-icon {
  position: absolute;
  right: 25px;
  top: 10px;
  font-size: 1.7rem;
  font-weight: bolder;
  cursor: pointer;
  display: none;
  background: linear-gradient(to right, white, rgb(235, 225, 227));
  color: rgb(41, 39, 39);
  padding: 5px 8px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.menu-icon:hover {
 background: linear-gradient(to left, white, rgb(229, 213, 216));
 color: rgb(197, 0, 80);
 transition: 0.3s;
 color: rgb(41, 39, 39);
}
/*

.menu-icon:hover {
  border: 1px solid rgba(197, 0, 80, 0.2);
}

.menu-icon:active {
  border: solid;
  border-radius: 10px;
  border-color: rgb(164, 162, 162);
  border-width: 3px;
}
  */

/* ========== BODY ========== */
.main-body {
  padding:80px 10px 50px 0px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.content-body {
  padding: 10px 0px 20px 20px;
  display: flex;
  flex-direction: column;
  min-width: 400px;
  display: inline-block;
  align-content: center;
}

.dp-div {
  flex: 300px;
  max-width: 450px;
  margin: 10px 5vw 50px 20px;
}
.display-picture {
  width: 100%;
  border-radius: 10px;
}

/* === RESPONSIVE H1 === */
h1 {
font-size: clamp(1.5rem, 3vw, 2.5rem);
transition: 0.5s ease;
}

.page-description {
  color:rgb(67, 66, 66);
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 15px;
}

button {
  color: white;
  font-weight: bold;
  background-color: rgb(197, 0, 80);
  padding: 12px 16px;
  border: 1px solid rgb(197, 0, 80);
  border-radius: 5px;
}
  button:hover {
    cursor: pointer;
    color: rgb(197, 0, 80);
    background-color: rgb(255, 236, 232);
    border-color: rgb(210, 6, 88);
    scale: 1.02;
    transition: 0.3s ease;
  }

@media screen and (max-width: 830px) {
  .right-header-menu,
  .middle-header {
    display: none;
  }

  /* Show menu icon */
  .menu-icon {
    display: block;
  }

 /* Transition dropdown visibility */
/* Delay appearance of toggled menu so it doesn't overlap h1 */
  #menu-toggle:checked ~ header .right-header-menu,
  #menu-toggle:checked ~ header .middle-header {
    display: flex;
    flex-direction: column;
    padding: 10px 10px;
    gap: 20px;
    border-bottom: none;
    background-color: transparent;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.9);

    /* Delay appearance of toggled menu so it doesn't overlap h1 */
    animation: fadeInDown 0.3s ease 0.3s forwards;
    opacity: 0;
  }

  @keyframes fadeInDown {
    to {
      opacity: 1;
    }
  }

    /* Push content down */
  #menu-toggle:checked ~ main {
    margin-top: 200px;
    transition: margin-top 0.5s ease-in;
  }

/* Push content up */
  #menu-toggle:not(checked) ~ main {
    margin-top: 0;
    transition: margin-top 0.7s ease-out;
  }

  /* Toggle: when checkbox is checked, show vertical dropdown */
  #menu-toggle:checked ~ header .right-header-menu {
    position: absolute;
    top: 70px;
    left:55px;
  }

  /* Also show middle header links */
  #menu-toggle:checked ~ header .middle-header {
    position: absolute;
    top: 192px;
    left: 55px;
    padding-right: 31px;
    border-bottom-right-radius: 10px;
  }

  .highlight:hover, .about:hover,
  .contact:hover, .photos:hover,
  .videos:hover {
    color: rgb(197, 0, 80);
    scale: 1.06;
  }

  .highlight:active, .about:active,
  .contact:active, .photos:active,
  .videos:active {
    font-weight: bold;
  }  

  /* Push content down */
  #menu-toggle:checked ~ main {
    margin-top: 190px;
    transition: margin-top 0.5s ease-in;
  }
}


