body {
  margin: 0;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: rgba(0, 0, 0, .75);
  line-height: 1.625;
  text-rendering: optimizeLegibility;
  background-color: rgba(240, 248, 255, .1);
}

:root {
  --container-size: 800px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #0a0a0a;
    color: #fff;
  }

  a {
    color: #7dd3fc !important;
  }

  .footer {
    background: #111 !important;
    color: white;
  }

}

hr {
  border: 2px #aeb solid;
  margin: 1.5rem 2rem;
}

h1 {
  font-size: 2rem;
}

ul li::marker {
  color: #bfc7fe;
}

a {
  color: #500724;
}

.shadow {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.main-container {
  max-width: var(--container-size);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.main-content {
  margin: 1rem 0;
}

.main-content h1 {
  position: relative;
  top: .75rem;
}

.myself-image {
  max-width: 210px;
  box-shadow: 1rem 1rem rgba(0, 0, 0, .5);
  padding: .5rem 1rem;
  margin: .75rem auto;
  opacity: 1;
  z-index: 0;
  background-color: rgba(255, 255, 255, .05);
  overflow: hidden;
}

.myself-image img {
  position: relative;
  top: 1rem;
  z-index: -1;
}

.languages-icons img:hover {
  opacity: 0.3;
}

.joke a {
  text-decoration: line-through;
}

.overview a {
  position: relative;
}

.graduations,
.projects,
.graduations img,
.projects img {
  overflow-y: auto;
}

.graduations,
.overview {
  margin: 0 2rem;
}

.graduations hr {
  margin-right: 0;
  margin-left: 0;
}

.projects h1,
.main-content h1 {
  margin: 0 2rem;
}

.projects img,
.graduations img {
  display: inline-block;
  border: 3px solid #eed2b5;
  padding: .125rem;
  transition: all 0.2s ease-out;
  margin: 0.5rem 1rem;
  max-width: 728px;
}

.projects img:hover {
  filter: saturate(2.5%);
}

.projects img,
.graduations img {
  margin: 0 2rem;
}

.links {
  float: left;
  width: 100%;
}

.links h1 {
  margin: 0 2rem;
}

.links ul li {
  padding: 0;
  margin: 1.75rem 0.5rem;
}

.links ul li a {
  color: #43156e;
  letter-spacing: 0.25rem;
  text-decoration: none;
  transition: all 0.1s ease-out;
}

a {
  transition: all 0.1s ease-out;
  color: #43156e;
  letter-spacing: 0.25rem;
}

.links ul li a:hover,
a:hover {
  color: #9141db;
  text-decoration: underline;
  letter-spacing: 0.375rem;
}

.footer {
  float: left;
  width: 100%;
  background: #fff;
}

.footer h4 {
  text-align: center;
}

.up-button {
  position: absolute;
  right: 2.25rem;
}

.up-button a {
  position: fixed;
  text-decoration: none;
  padding: .25rem;
  font-size: 1.3rem;
  width: 1.8rem;
}

.up-button a:active {
  background: #aeb;
}



@media (max-width: 768px) {

  /* GG QWEN */

  .myself-image {
    /* Remover float e definir margens automáticas para centralizar o contêiner */
    float: none;
    /* Isso substitui qualquer float anterior */
    margin: 0.75rem auto;
    /* Margem superior/inferior e auto para esquerda/direita */
    /* Definir uma largura desejada */
    width: 80%;
    /* Opcional: centralizar o conteúdo interno também */
    text-align: center;

    /* Se quiser centralizar verticalmente também, pode usar flexbox */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Ajuste a altura se necessário, ou remova para altura automática */
    /* height: [altura_desejada]; */
    background: transparent;
  }

  /* Ajustar a imagem dentro do contêiner centralizado */
  .myself-image img {
    /* Remover o 'position: relative' e o 'top' que desalinham */
    position: static;
    /* ou remova esta linha, o padrão é 'static' */
    top: auto;
    /* Garante que o 'top' original não tenha efeito */
    /* Manter a responsividade */
    max-width: 100%;
    height: auto;
    /* Remover qualquer margem ou deslocamento indesejado */
    margin: 0;
  }

  /* Se estiver usando 'display: flex' no .myself-image, talvez precise redefinir */
  .myself-image * {
    /* Garante que outros estilos filhos não interfiram */
    box-sizing: border-box;
  }

  .projects img {
    width: 100%;
    height: auto;
  }

}