/* --------------------INITIALIZATION-------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  display: inline-block;
}

/* ------------------------------------------------------ */

/* VARIABLES */

:root {
  --BG-TRANSPARENT-COLOR: rgba(32, 32, 32, 0.7);
}

/* BODY BACKGROUND */

body {
  background-color: rgb(15, 15, 15);
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: white;
}

.page-container {
  width: 65%;
  background-color: white;
  margin: auto;
}

/* HEADER */

header {
  background-color: var(--BG-TRANSPARENT-COLOR);
}

nav {
  position: relative;
  padding: 0 10px;
}

.dh-logo {
  display: inline-block;
  position: absolute;
  top: 25px;
  left: 15px;
  width: 80px;
  height: auto;
}

/* Menu */

menu {
  display: flex;
  justify-content: flex-end;
}

/* Menu list item */

.menu-item {
  list-style-type: none;
}

.menu-item a, .menu-item_more div {
  display: block;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  text-wrap: nowrap;
  cursor: pointer;
  transition: background-color 0.5s;
}

.menu-item a:hover, .menu-item_more div:hover {
  background-color: rgba(104, 192, 255, 0.7);
}

/* Reduced menu item "More" is hidden for larger screen */
.menu-item_more {
  display: none;
}

.menu-item_more ul {
  background-color: rgba(30, 30, 30, 0.7);
  display: block;
  position: absolute;
  right: 0;
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
}

.menu-item_more div:hover ul, .menu-item_more div:active ul {
  display: block;
  max-height: 200px;
}

/* -------------------FOR SMALL SCREEN------------------- */

/* Menu btn */

.show-menu-btn_bars {
  background-color: white;
  border-radius: 10px;
  width: 35px;
  height: 5px;
  margin: 6px 0;
  transition: 0.4s;
}

/* Menu btn transition on click */

.change-btn .show-menu-btn_bar1 {
  transform: translate(0, 11px) rotate(45deg);
}

.change-btn .show-menu-btn_bar2 {
  opacity: 0;
}

.change-btn .show-menu-btn_bar3 {
  transform: translate(0, -11px) rotate(-45deg);
}

/* The menu btn is hidden for large screens */
.show-menu-btn {
  position: absolute;
  right: 0;
  margin-right: 15px;
  display: none;
}

/* ------------------------------------------------------ */

/* MAIN PAGE */

main {
  min-height: calc(100svh - 160px);
  margin: 15px 0;
}

/* FOOTER */

footer {
  background-color: var(--BG-TRANSPARENT-COLOR);
  height: 80px;
  display: flex;
  flex-flow: column;
  justify-content: space-around;
  color: white;
}

footer div:first-child {
  display: flex;
  justify-content: space-around;
}

footer a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

footer p:last-child {
  text-align: center;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 1200px) {

  .page-container {
    width: 75%;
  }

  .photo-gallery, .hobbies, .contact {
    display: none;
  }

  .menu-item_more {
    display: block;
  }
}

@media only screen and (max-width: 900px) {
  .page-container {
    width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  header {
    height: 40px;
  }

  menu {
    display: block;
    background-color: white;
    color: black;
    position: absolute;
    top: 40px;
    right: 0px;
    width: 200px;
    z-index: 10;
    transition: width 0.4s;
  }

  .menu-item {
    padding: 0;
    border-bottom: 1px solid gray;
  }

  .menu-hidden menu {
    overflow: hidden;
    width: 0; /*This line hides the menu and javascript makes it appear on click*/
  }

  .photo-gallery, .hobbies, .contact {
    display: block;
  }

  .menu-item_more {
    display: none;
  }

  .show-menu-btn {
    display: block;
  }

}