* {
  margin: 0px;
  padding: 0px;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0px;
  background-color: #074545;
  color: #b8da52;
}

nav {
  background-color: #074545;
  padding: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0px;
  gap: 30px;
}
nav ul li a h1 {
  color: pink;
}

h1,
h2,
h3,
h4 {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
}

p {
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #b8da52;
  font-size: 1.1rem;
  margin: 1rem 0rem;
}
p.p1 {
  font-family: "Xanh Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 1.8rem;
  margin-top: 10px;
  animation-delay: 0.5s;
}
p.p2 {
  font-family: "Xanh Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 1.6rem;
  margin-top: 10px;
  animation-delay: 0.5s;
}

a {
  color: pink;
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  font-size: 1rem;
}
a.button {
  display: inline-block;
  background: #b8da52;
  padding: 0.5rem 1rem;
  color: #012929;
}
a.button:visited {
  background: #97b63b;
  color: #012929;
}
a.button.primary {
  background: pink;
  color: #012929;
}
a.button.primary:visited {
  background: #e188af;
  color: #074545;
}
a.menu-item-button {
  background: none;
  padding: 0.5rem 1rem;
}
a.menu-item-button:hover {
  background: pink;
  color: #012929;
}
a.menu-item-button:nth-child(2) {
  transition-delay: 0.05s;
}
a.menu-item-button:nth-child(3) {
  transition-delay: 0.1s;
}
a:visited {
  color: #e188af;
}

ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}
ul li {
  list-style: none;
  font-size: 1.2rem;
}
ul li:not(:first-child) {
  margin-left: 1.4rem;
}

footer {
  background-color: #012929;
  padding: 1rem 2rem 2rem 2rem;
}
footer p {
  margin: 0;
  padding-top: 1rem;
}

.content-section {
  margin: 2rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-menu-container {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.sliding-buttons {
  display: flex;
  gap: 1rem;
  padding-left: 10px;
  position: absolute;
  top: 0;
  left: 100%;
  /* hidden state */
  opacity: 0;
  visibility: hidden;
  /* move to start position */
  transform: translateX(-10px);
  /* animation */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.contact-menu-container:hover .sliding-buttons {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

#projects {
  margin-top: 6rem;
}
#projects .project {
  border-top: 1px solid #b8da52;
  padding-top: 1rem;
  background: #012929;
  padding: 2rem;
  margin-bottom: 2rem;
}
#projects .project img {
  width: 100%;
  margin: 1rem 0rem;
}
#projects .project .actions {
  margin-top: 4rem;
}
#projects .project .actions li:not(:first-child) {
  margin-left: 1.6rem;
}

#skills {
  margin-top: 4rem;
}
#skills .container {
  width: 100%;
  justify-content: space-between;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
#skills .skill {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#skills .skill span.devicon {
  position: relative;
  background: #012929;
  display: inline-block;
  border-radius: 50%;
  width: 6dvw;
}
#skills .skill span.devicon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#skills .skill span.devicon .svg {
  fill: #b8da52;
}
#skills .skill p {
  margin-top: 0px;
  font-size: 1rem;
}

#contact {
  display: flex;
  flex-flow: column nowrap;
}
#contact form {
  width: 100%;
}
#contact form input[type=text],
#contact form input[type=email],
#contact form textarea {
  margin-top: 1rem;
  background: none;
  color: white;
  width: calc(100% - 2rem);
  padding: 1rem;
  border: 1px solid #97b63b;
}
#contact form input[type=text]:focus,
#contact form input[type=email]:focus,
#contact form textarea:focus {
  background: #012929;
}
#contact form label[for=copy] {
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  font-style: normal;
}
#contact form ul.actions input {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 0.5rem 1rem;
}
#contact form ul.actions input[type=submit] {
  background: #b8da52;
}
#contact form ul.actions input[type=reset] {
  background: green;
}

@media (min-width: 800px) {
  #banner {
    width: 80%;
  }
  p.p1 {
    font-size: 3rem;
  }
  #projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36dvw, 1fr));
    justify-content: space-between;
    gap: 2rem;
  }
  #projects .project {
    display: flex;
    flex-flow: column nowrap;
    min-height: 60vh;
    border-top: 1px solid #b8da52;
    margin: 0px;
  }
  #projects .project header {
    min-height: 8rem;
  }
  #projects .project img {
    width: 100%;
    margin: 1rem 0rem;
  }
  #projects .project .actions {
    bottom: 0px;
    margin-top: auto;
    padding-top: 1rem;
  }
  #projects .project .actions li:not(:first-child) {
    margin-left: 1.6rem;
  }
  #skills .container {
    grid-template-columns: repeat(8, 1fr);
  }
  #contact {
    align-items: center;
  }
  #contact > div {
    width: 80%;
  }
}
