@import url("https://fonts.googleapis.com/css?family=Lato|Open+Sans&display=swap");

:root {
  --modal-duration: 1s;
  --primary-color: #30336b;
  --secondary-color: #be2edd;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  margin: 0;
  transition: transform 0.3s ease;
  background-color: rgba(160, 160, 160, 0.3);
}

body.show-nav {
  /* Width of de nav */
  transform: translate(200px);
}

nav {
  background-color: var(--primary-color);
  border-right: 2px solid rgba(200, 200, 200, 0.1);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  z-index: 100;
  transform: translateX(-100%);
}

nav .logo {
  padding: 30px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav .logo #container-img {
  background-image: url("/img/2020-09-14-101708.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 75px;
  width: 75px;
  border-radius: 50%;
}

nav .logo img {
  height: 75px;
  width: 75px;
  border-radius: 50%;
}

nav ul {
  padding: 0;
  list-style-type: none;
  margin: 0;
}

nav ul li {
  border-bottom: 2px solid rgba(200, 200, 200, 0.1);
  padding: 20px;
}

nav ul li:first-of-type {
  border-top: 2px solid rgba(200, 200, 200, 0.1);
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

nav ul li a:hover {
  text-decoration: underline;
}

header {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 130%;
  position: relative;
  padding: 40px 15px;
  text-align: center;
}

header h1 {
  margin: 0;
}

header p {
  margin: 30px 0;
}

button,
input[type="submit"] {
  background-color: var(--secondary-color);
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
}

button:focus {
  outline: none;
}

.toggle {
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 20px;
  left: 20px;
}

.cta-btn {
  padding: 12px 30px;
  font-size: 20px;
}

.cta-btn:hover {
  opacity: 0.5;
}

.cta-btn #btn-img {
  width: 25px;
  height: 25px;
  background-image: url(img/icon/PNG/GitHub-Mark-32px.png);
  background-position: left;
  background-size: cover;
  background-repeat: no-repeat;
  margin: auto;
}

.container {
  padding: 15px;
  margin: 0 auto;
  max-width: 100%;
  width: 800px;
}

#vanilla-js-list {
  list-style: none;
}

ul {
  list-style: none;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #333;
}

.list-item {
  width: 600px;
  background-color: rgba(235, 235, 235, 0.8);
  margin-bottom: 20px;
  margin-top: 15px;
  padding: 15px;
}

.list-item-title {
  font-size: 1rem;
  font-weight: bold;
}

.list-item-description {
  font-size: 0.8rem;
}

.list-item-link {
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.5s;
  color: blue;
}

.list-item-link:hover {
  font-size: 1.4rem;
  color: #e64343;
}

.sublist-title {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #e64343;
}

/*  */

.modal-container {
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.modal-container.show-modal {
  display: block;
}

.modal {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: absolute;
  overflow: hidden;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  width: 400px;
  animation-name: modalopen;
  animation-duration: var(--modal-duration);
}

.modal-header {
  background: var(--primary-color);
  color: #fff;
  padding: 15px;
}

.modal-header h3 {
  margin: 0;
  border-bottom: 1px solid #333;
}

.modal-content {
  padding: 20px;
}

.modal-form div {
  margin: 15px 0;
}

.modal-form label {
  display: block;
  margin-bottom: 5px;
}

.modal-form .form-input {
  padding: 8px;
  width: 100%;
}

.close-btn {
  background: transparent;
  font-size: 25px;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
