#root {
  background-image: url("img/background.jpg");
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*
  nav
*/

.nav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nav li {
  float: left;
  display: block;
  text-align: center;
  padding: 14px 16px;
  color: white;
}

.nav li a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 0 20px 0 20px;
}

.nav li a.active {
  background-color: #04aa6d;
}

.nav li.right {
  float: right;
}

.nav .icon {
  display: none;
}

/*
  mobile
*/

@media screen and (max-width: 940px) {
  #modal-projects {
    width: 70vw !important;
  }

  #modal-contact {
    width: 70vw !important;
  }
}

@media screen and (max-width: 600px) {
  .nav .icon {
    float: right;
    font-weight: bold;
    font-size: 24px;
    display: block;
    margin-right: 20px;
  }

  .nav li {
    display: none;
  }

  .nav-mobile ul,
  .nav-mobile li {
    display: block;
  }

  /*ul.nav li.right,
  ul.nav li {
    float: none;
  } */

  /*
    page: home
  */

  #modal-home {
    width: 80vw;
  }

  #modal-home h1 {
    font-size: 10vw;
  }

  #modal-home p {
    font-size: 5vw;
  }

  /*
    page: projects
  */

  #modal-projects h2 {
    font-size: 9vw;
  }

  #modal-projects p {
    font-size: 5vw;
  }

  #modal-projects table th,
  #modal-projects table td {
    font-size: 4vw;
  }

  /*
    page: contact
  */

  #modal-contact {
    width: 80vw;
  }

  #modal-contact h1 {
    font-size: 10vw;
  }

  #modal-contact label,
  #modal-contact button {
    font-size: 5vw !important;
  }
}

.nav-mobile {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: 0.4s;
}

.nav-mobile button {
  position: absolute;
  right: 30px;
  top: 8px;
  font-size: 34px;
  border: 0;
  color: #fff;
  background-color: rgba(0, 0, 0, 0);
  cursor: pointer;
}

.nav-mobile.open {
  height: 100%;
}

.nav-mobile ul a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 20px 0 20px 0;
}

.nav-mobile ul {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
  padding: 0;
}

.nav-mobile div {
  padding: 20px 45% 0 45%;
}

.nav-mobile div li {
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.1s;
}

.nav-mobile div a {
  margin: 0;
}

.nav-mobile div li {
  margin: 10px 0 10px 0;
}

.nav-mobile div li:hover {
  transform: scale(1.1);
}

.nav-mobile img {
  width: 50px;
}

.nav-mobile hr {
  margin: 0 7px 0 7px;
  border: 1px solid #4d4d4d;
}

/*
  sidebar
*/

.sidebar {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background-color: rgba(34, 34, 34, 0.9);
  box-shadow: 0 10px 10px #000;
}

.sidebar hr {
  margin: 0 2px 0 7px;
  border: 1px solid #4d4d4d;
}

.sidebar img {
  width: 50px;
}

.sidebar ul {
  margin: 0;
}

.sidebar li {
  margin: 10px;
  cursor: pointer;
  transition: transform 0.1s;
}

.sidebar li:hover {
  transform: scale(1.1);
}

/*
  modal defaults
*/

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 10px;
  font-size: 32px;
  color: #fff;
  background-color: rgba(34, 34, 34, 0.9);
  box-shadow: 0 10px 10px #000;
}

.modal h1,
.modal h2 {
  margin-top: 10px;
  letter-spacing: 3.6px;
}

/*
  page: home
*/

#modal-home p {
  color: rgba(252, 252, 252, 0.705);
}

/*
  page: projects
*/

#modal-projects {
  width: 80%;
}

#modal-projects h2 {
  text-align: center;
  margin-bottom: 0;
}

#modal-projects p {
  text-align: center;
  color: rgba(252, 252, 252, 0.705);
  margin-top: 0;
}

#modal-projects th {
  text-align: left;
}

#modal-projects div {
  overflow-x: auto;
}

#modal-projects table {
  width: 100%;
  border-collapse: collapse;
  font-size: 26px;
}

#modal-projects th {
  border-bottom: 4px solid #4d4d4d;
  border-right: 3px solid #4d4d4d;
}

#modal-projects th:last-child {
  border-right: 0;
}

#modal-projects td {
  border-top: 3px solid #4d4d4d;
  border-right: 3px solid #4d4d4d;
}

#modal-projects td:last-child {
  border-right: 0;
}

#modal-projects a {
  color: #fff;
  text-decoration: none;
}

/*
  page: contact
*/

#modal-contact {
  text-align: center;
}

#modal-contact h2 {
  text-align: center;
}

#modal-contact p {
  color: rgba(252, 252, 252, 0.705);
}

#modal-contact div {
  overflow-x: auto;
}

#modal-contact a {
  color: #00acd3;
  font-weight: bold;
  text-decoration: none;
}

/*
#modal-contact input,
#modal-contact textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  border: none;
  transition: 0.1s;
  outline: none;
  font-size: 16px;
}

#modal-contact textarea {
  resize: vertical;
  min-height: 6em;
  max-height: 12em;
}

#modal-contact input:hover,
#modal-contact textarea:hover {
  opacity: 0.9;
}

#modal-contact button {
  width: 100%;
  background-color: #00acd3;
  font-size: 32px;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  letter-spacing: 3.6px;
  padding: 5px;
  cursor: pointer;
  transition: 0.1s;
}

#modal-contact button:hover {
  background-color: rgba(0, 174, 212, 0.9);
}
*/
