/*
 * ─── GLOBAL ─────────────────────────────────────────────────────────────────────
 */
* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  outline: 0;
  vertical-align: baseline;
}

:root {
  --main-black: #1f202b;
  --main-grey: #8a8ca5;
  --light-grey: #e7e7e8;
  --main-blue: #5952ff;
  --main-blue-darker: #312e8f;
  --soft-green: #66d47a;
  --black: #000000;
  --white: #ffffff;
  --soft-red: #d46666;
}

html {
  font-family: "Dosis", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--main-black);
}

#container {
  width: 100%;
  height: 100%;
  padding-top: 25vh;
  box-sizing: border-box;
  transition: padding-top 0.3s;
}

#container.active {
  padding-top: 5vh;
}

.content {
  width: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 15%;
  box-sizing: border-box;
  margin-bottom: 50px;
}

.avatar img {
  width: 100%;
  border: 4px var(--main-blue) solid;
  border-radius: 50%;
  overflow: hidden;
}

.projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

label {
  width: 100%;
}

.projects p {
  width: 100%;
  text-align: center;
  font-size: 6rem;
  background-color: var(--main-black);
  padding: 2rem;
  color: var(--light-grey);
  position: relative;
  transition: all 0.3s;
  box-sizing: border-box;
}

.projects .onHover:hover {
  transform: translateX(-10px) translateY(-15px);
  box-shadow: 10px 15px 0px 0px rgba(0, 0, 0, 1);
  animation: pushing infinite 1.2s 0.3s;
  cursor: pointer;
}

.projects .bounce {
  animation: bounce 2s ease infinite;
}

.projects p::before {
  content: "";
  display: block;
  width: 50px;
  height: 25px;
  border: 4px var(--main-blue) solid;
  border-bottom: none;
  border-right: none;
  position: absolute;
  top: 0px;
  left: 0px;
  box-sizing: border-box;
  transition: all 0.3s;
}

.projects P:hover::before {
  width: 100%;
  height: 100%;
}

.projects p::after {
  content: "";
  display: block;
  width: 50px;
  height: 25px;
  border: 4px var(--main-blue) solid;
  border-top: none;
  border-left: none;
  position: absolute;
  bottom: 0px;
  right: 0px;
  box-sizing: border-box;
  transition: all 0.3s;
}

.projects P:hover::after {
  width: 100%;
  height: 100%;
}

.projects input {
  display: none;
}

.projects input:checked + label p::before {
  width: 100%;
  height: 100%;
}

.projects input:checked + label p::after {
  width: 100%;
  height: 100%;
}

.projects label .sites {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 4px var(--main-blue) solid;
  border-top: none;
  border-bottom: none;
  max-height: 0;
  box-sizing: border-box;
  transition: max-height 1s 0.3s;
}

.projects input:checked + label .sites {
  padding: 2rem 0 2rem;
  max-height: 2100px;
  height: auto;
}

.sites {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.sites .imgWrapper {
  width: 90%;
  margin: 2rem auto 0;
}

.sites .imgWrapper img {
  width: 100%;
}

.sites .imgWrapper .tagWrapper {
  margin-top: 0.5rem;
}

.sites .imgWrapper .tagWrapper a {
  background-color: var(--main-grey);
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--light-grey);
}

.sites .imgWrapper .tagWrapper span {
  background-color: var(--main-grey);
  padding: 5px 10px;
  border-radius: 20px;
  color: var(--light-grey);
  margin-left: 1rem;
}

.sites .imgWrapper .tagWrapper .link {
  background-color: var(--main-blue);
  transition: 0.3s;
}

.sites .imgWrapper .tagWrapper .link:hover {
  background-color: var(--main-blue-darker);
}

.sites .imgWrapper .tagWrapper .demo {
  background-color: var(--main-blue);
}

.sites .imgWrapper .tagWrapper .spanRed {
  background-color: var(--soft-red);
}

.sites .imgWrapper .tagWrapper .spanGreen {
  background-color: var(--soft-green);
}

@media (max-width: 1600px) {
  .avatar {
    width: 25%;
  }
}

@media (max-width: 1160px) {
  html {
    font-size: 12px;
  }
  .avatar {
    width: 25%;
  }
}

@media (max-width: 1160px) {
  .content {
    width: 80%;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 8px;
  }
  .avatar {
    width: 40%;
  }
}

@media (max-width: 350px) {
  html {
    font-size: 6px;
  }
}

@keyframes pushing {
  0% {
    transform: translateX(-10px) translateY(-15px);
    box-shadow: 10px 15px 0px 0px rgba(0, 0, 0, 1);
  }

  25% {
    transform: translateX(0px) translateY(0px);
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 1);
  }

  100% {
    transform: translateX(-10px) translateY(-15px);
    box-shadow: 10px 15px 0px 0px rgba(0, 0, 0, 1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}
