html,
body {
  margin: 0;
  font-family: sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* Animação do background */
#background {
  width: 99vw;
  height: 280vh;
  background: linear-gradient(45deg, #00ffd5, #0fa3a1, #075353, #646138, #c9c045, #ebdc13);
  background-size: 350% 300%;
  animation: colors 10s ease infinite;
}

@keyframes colors {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

/*Fim animação background */

/* ----menu-----*/
header {
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  opacity: 0.8;
  transition: all .4s ease-in-out;
}

header ul li a {
  text-decoration: none;
  list-style: none;
}

header h1 {
  color: rgb(255, 249, 253);
  font-size: 40px;
}

header span {
  color: rgb(247, 7, 7);
  font-size: 40px;
}

nav .navegacao-menu {
  display: flex;
  align-items: center;
}

.navegacao-menu a:hover {
  color: rgb(21, 224, 21);
  transform: scale(1.1);
}

.navegacao-menu li:hover {
  transform: scale(1.1);
}

.navegacao-menu li a {
  padding: 40px;
  color: white;
  font-size: 20px;
  opacity: 1;
}

/* --- Foto de perfil --- */
#foto-allan {
  position: relative;
  margin-top: 30px;
  left: 42%;
  border-radius: 50%;
  width: 250px;
  height: 310px;
  opacity: 0.9;
  box-shadow: rgba(0, 0, 0, .35) 5px 5px 15px 10px;
  cursor: pointer;
  transition: all .6s ease-in-out;
}

#foto-allan:hover {
  opacity: 1;
  transform: scale(1.1);
}

/*--- main ---*/

section {
  grid-area:auto;
  background-color: #2b2929;
  border-radius: 40px;
  text-align: center;
  box-shadow: rgba(0, 0, 0, .35) 5px 5px 4px;
}

.container {
  display: grid;
  grid-template-columns: (3fr 1fr);
  gap: 15px;
  padding: 40px;
}

section p {
  color: white;
  font-size: 19px;
}

section h2 {
  margin-top: 1px;
  color: #00fffb
}

section h3 {
  font-size: 14px;
  color: white;
  text-align: justify;
}

#Sobre {
  text-align: center;
  margin: auto;
  width: 45vw;
  height: 22vh;
  padding: 25px;
  opacity: .7;
  transition: all .4s ease-in-out;
}

#Sobre span {
  color: green;
  font-weight: bold;
}

#sobre span {
  color: rgb(219, 8, 8);
}

#Sobre:hover {
  opacity: 1;
  transform: scale(1.07);
}

#Trabalho {
  margin: right 50%;
  margin-left: 24%;
  height: 70vh;
  width: 45vw;
  padding: 25px;
  opacity: .7;
  transition: all .4s ease-in-out;
}

hr {
  border: 0;
  height: 2px;
  background-image: linear-gradient(to right, rgba(168, 58, 58, 0), rgba(185, 59, 59, 0.75), rgba(0, 0, 0, 0));
}

#foto-odonto {
  width: 320px;
  height: 160px;
  opacity: 1;
}

#foto-comp-mart {
  border-radius: 30px;
  width: 300px;
  height: 180px;
  opacity: 0.5;
}

#foto-aguia {
  border-radius: 30px;
  width: 260px;
  height: 130px;
  opacity: 0.5;
}

#Trabalho span {
  color: rgb(37, 37, 156);
}

#Trabalho h3 {
  color: white;
  font-size: 14px;
  text-align: center;
}

#Trabalho h4 {
  color: white;
  font-size: 14px;
  text-align: justify;
}

#Trabalho:hover {
  opacity: 1;
  transform: scale(1.07);
}

#Formacao ol,
ul {
  color: white;
}

ul span {
  color: rgb(62, 93, 230);
  font-size: 18px;
}

ol span {
  color: yellow;
  font-size: 18px;
}

#Formacao {
  text-align: justify;
  margin: right 50%;
  margin-left: 30%;
  height: 40vh;
  width: 30vw;
  padding: 20px;
  opacity: .7;
  transition: all .4s ease-in-out;
}

#Formacao ol {
  list-style-type: square;
}

#Formacao:hover {
  opacity: 1;
  transform: scale(1.07);
}

.icones {
  box-sizing: border-box;
  position: absolute;
  display: grid;
  gap: 10px;
  top: 30%;
  left: 95%;
  margin: 5px;
  padding: 3px;
}

/*--- grid ---*/
@media screen and (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }
}

/*--- Botão fixo para voltar ao inicio---*/
.botao-inicio {
  display: grid;
  justify-content: center;
  align-items: center;
  position: fixed;
  border-radius: 25%;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  text-decoration: none;
  box-shadow: rgba(0, 0, 0, .35) 5px 5px 4px;
  opacity: .6;
}

.botao-inicio:hover {
  opacity: 1;
}

.botao-inicio::after {
  content: "↑";
  font-size: 30px;
  color: rgb(0, 0, 0);
  transition: 350ms;
  opacity: 0.5;
}

.botao-inicio:hover::after {
  margin-top: 8px;
  opacity: 1;
}

#linha-horizontal {
  width: 300px;
  border: 1px solid #000;
}