body {  
    background-color: #FAEEE6;
    font-family: Quicksand, sans-serif;

    padding-top: 3rem;
    margin: 0;
}

@media only screen and (max-height: 900px){
    body {
        padding-top: 1rem;
    }
}

body.ready {
    transition: 1s;
}

body.dark-theme {
    background-color: #391E0C;
}

header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    max-width: 100vw;
}

header > a {
    color: #E5E2DF;
    background-color: #935D48;
    border-radius: 20px;
    padding: 0.5rem;
    margin: 0.2rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: normal;
    text-decoration: none;
    text-align: center;
}

body.dark-theme header > a {
    background-color: #764A3A;
}

header > a:hover {
    margin: 0rem;
    padding: 0.7rem;
    text-decoration: underline;
}

body.ready main > div {
    transition: 1s;
}

main > div {
    color: #935D48;
    background-color: white;
    border-radius: 15px;
    margin: 0.5rem 1rem;
    padding-top: 1rem;
}

body.dark-theme main > div {
    color: #BC8976;
}

body.dark-theme > main > div {
    background-color: #181A1B;
}

footer {
    color: #935D48;
    font-size: 0.5rem;
}

h1, h2, h3 {
    text-align: center;
}

h1 {
    margin-bottom: 0.2rem;
}

h3 {
    margin: 0.1rem;
}

img {
    border-radius: 30px;
    height: 15%;
    width: auto;
    margin: 0.5rem;
}

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

a:hover {
    text-decoration: un;
}

.center {
    display: flex;
    justify-content: center;
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 96vw;
    padding: 0.5rem;
}

.flex-row > div {
    flex: 1;
}

.wip {
    color: red;
    font-weight: bolder;
    text-decoration: underline;
}

.fadeIn {
  animation: fadeIn 0.5s ease;
  opacity: 100%;
}

.fadeOut {
  animation: fadeOut 0.5s ease;
  opacity: 0%;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

div:has(> #scroll-to-top){
    display: flex;
    justify-content: center;

    margin-top: 3rem;
    padding-bottom: 1rem;
}

#scroll-to-top {
    color: inherit;
    background: none;
    background-color: none;
    border: 3px solid #BC8976;
    border-radius: 30px;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: 0.2s;
    cursor: pointer;
}

#scroll-to-top:hover {
    padding-top: 0.1rem;
    padding-bottom: 0.8rem;
}

#socials {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

#socials svg, #socials img {
    border-radius: 0px;
    height: 2.5rem;
    width: auto;
    margin: 0;
    transition: 0.2s;

    filter: brightness(0) saturate(100%) invert(32%) sepia(6%) saturate(3901%) hue-rotate(331deg) brightness(114%) contrast(75%);
}

#socials a:hover > svg, #socials a:hover > img {
    filter: brightness(0) saturate(100%) invert(65%) sepia(11%) saturate(1103%) hue-rotate(330deg) brightness(88%) contrast(89%);
}

body.dark-theme #socials svg, body.dark-theme #socials img {
    filter: brightness(0) saturate(100%) invert(65%) sepia(11%) saturate(1103%) hue-rotate(330deg) brightness(88%) contrast(89%);
}

body.dark-theme #socials a:hover > svg, body.dark-theme #socials a:hover > img {
    filter: brightness(0) saturate(100%) invert(32%) sepia(6%) saturate(3901%) hue-rotate(331deg) brightness(114%) contrast(75%);
}
