/* Basado deliberadamente en el SASS del Portfolio original. */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #333;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 300;
}

a {
  color: inherit;
  outline: 0;
  text-decoration: none;
}

h1 {
  color: rgb(145, 13, 13);
  font-size: 26px;
  font-weight: 400;
  margin: 0;
}

h2 {
  color: rgb(145, 13, 13);
  font-size: 20px;
  font-weight: 500;
  margin: 28px 0 0;
  text-align: left;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  height: 10px;
  margin: 5px 0 30px;
  position: relative;
}

hr::before {
  background: rgb(145, 13, 13);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 0;
  width: 50px;
}

p {
  line-height: 22px;
  margin: 20px 0;
}

main img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
}

.sidebar {
  background-image: url("/static/img/background.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1000px rgba(145, 13, 13, 0.8);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 25%;
  z-index: 1;
}

.logo {
  height: 35px;
  left: 40px;
  opacity: 0.3;
  position: fixed;
  top: 30px;
}

.profile {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 50px;
}

.profile img {
  border-radius: 50%;
  height: 150px;
  margin: 20px auto;
  width: 150px;
}

.profile .name {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  margin: 18px auto 14px;
  text-transform: uppercase;
}

.profile .summary {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
}

nav {
  padding: 8%;
}

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

nav li a {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 300;
  height: 35px;
  opacity: 0.7;
  text-transform: uppercase;
}

nav li a:hover {
  opacity: 1;
}

nav li a:hover::after {
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  content: "";
  height: 4px;
  margin: 0 0 1px 4px;
  transform: rotate(45deg);
  width: 4px;
}

.contact {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  padding: 0 8%;
}

.contact > span {
  opacity: 0.6;
  text-transform: uppercase;
}

.social {
  margin: 6px 0;
}

.social a {
  align-items: center;
  display: inline-flex;
  height: 27px;
  justify-content: center;
  margin: 1px 3px;
  opacity: 0.6;
  vertical-align: middle;
  width: 27px;
}

.social img {
  display: block;
  height: 26px;
  margin: 0;
  max-width: none;
  width: 26px;
}

.social a:hover {
  opacity: 1;
}

#btnMain {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  padding: 0;
}

#btnMain svg {
  fill: #fff;
  height: 40px;
  width: 40px;
}

main {
  margin-left: 25%;
  padding: 40px 50px;
  width: 75%;
}

.row {
  display: grid;
  grid-template-columns: 80px 1fr;
  height: 30px;
}

.row a, .links a {
  color: rgb(145, 13, 13);
}

h1.name {
  font-size: 35px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

h1.name + h2 {
  color: gray;
  font-size: 24px;
  font-weight: 300;
  margin: 10px auto;
  text-align: center;
}

.subtitle {
  display: block;
  font-size: 14px;
  line-height: 22px;
  margin: 8px auto 14px;
  max-width: 400px;
  text-align: center;
}

.links {
  text-align: center;
}

.slash {
  margin: 0 8px;
}

.download-catalog {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.download-card {
  align-items: center;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 20px;
}

.download-card h2 {
  margin: 0;
}

.download-card p {
  margin: 10px 0 0;
}

.download-version {
  color: #777;
  display: block;
  font-size: 13px;
  margin-top: 10px;
}

.download-button {
  background: rgb(145, 13, 13);
  color: #fff;
  flex: 0 0 auto;
  font-size: 13px;
  padding: 10px 16px;
  text-transform: uppercase;
}

.download-button:hover {
  background: rgb(107.5569620253, 9.6430379747, 9.6430379747);
}

.login-form {
  display: grid;
  gap: 10px;
  max-width: 400px;
}

.login-form h2 {
  margin: 0 0 10px;
}

.login-form input {
  border: 1px solid #bbb;
  font: inherit;
  padding: 9px;
}

.login-form .download-button {
  border: 0;
  cursor: pointer;
  justify-self: start;
  margin-top: 10px;
}

.login-error {
  color: rgb(145, 13, 13);
  font-weight: 400;
  margin: 0;
}

.logout-form {
  margin: -20px 0 20px;
}

.logout-form button {
  background: transparent;
  border: 0;
  color: rgb(145, 13, 13);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

@media (min-width: 600px) and (max-width: 1199px) {
  .social {
    margin: 15px 0 0 14px;
  }
  .sidebar {
    background-position: -500px -50px;
    height: 316px;
    overflow: hidden;
    transition: height 0.3s ease-out;
    width: 100%;
  }
  .sidebar.open {
    height: 505px;
  }
  .logo {
    left: auto;
    padding: 0 8%;
    top: 30px;
  }
  .profile {
    margin-top: 10px;
  }
  .profile img {
    height: 120px;
    width: 120px;
  }
  nav {
    margin-top: 16px;
    padding: 64px 10%;
    position: relative;
  }
  nav::after {
    border-bottom: 1px solid #ac5757;
    border-top: 1px solid #ac5757;
    content: "";
    height: 52px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    margin: 0 10%;
    width: 90%;
  }
  nav li a {
    justify-content: end;
  }
  .contact {
    padding: 0 8%;
    position: absolute;
    top: 257px;
  }
  .contact > span {
    display: none;
  }
  #btnMain {
    display: block;
    position: absolute;
    right: 10%;
    top: 6px;
    z-index: 1;
  }
  main {
    margin: 290px auto 40px;
    padding: 40px 50px;
    width: 90%;
  }
  .download-card {
    align-items: flex-start;
  }
}
@media (max-width: 599px) {
  .social {
    margin: 10px 0 0 14px;
  }
  .sidebar {
    background-position: -500px -50px;
    height: 150px;
    overflow: hidden;
    transition: height 0.3s ease-out;
    width: 100%;
  }
  .sidebar.open {
    height: 352px;
  }
  .logo {
    height: 25px;
    left: -20px;
    padding: 0 8%;
    top: 10px;
  }
  .profile {
    margin-top: 7px;
  }
  .profile img {
    display: none;
  }
  .profile .name {
    margin: 18px auto 11px;
  }
  nav {
    margin-top: 16px;
    padding: 64px 10%;
    position: relative;
  }
  nav::after {
    border-bottom: 1px solid #ac5757;
    border-top: 1px solid #ac5757;
    content: "";
    height: 52px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    margin: 0 10%;
    width: 90%;
  }
  nav li a {
    justify-content: end;
  }
  .contact {
    padding: 0 8%;
    position: absolute;
    top: 97px;
  }
  .contact > span {
    display: none;
  }
  #btnMain {
    display: block;
    position: absolute;
    right: 10%;
    top: 6px;
    z-index: 1;
  }
  main {
    margin: 130px auto 40px;
    padding: 40px 50px;
    width: 90%;
  }
  .row {
    height: auto;
    margin: 8px 0;
  }
  .subtitle {
    width: 100%;
  }
  .download-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
