/* * é todo o documento */
@font-face {
    font-family:Avenir;
    src: url(../assets/Font/AvenirTStd-Roman.otf)
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.subtitle{
    font-size: 14px;
    color:#cecece;
    letter-spacing:2px;
}
.description{
    text-align: center;
    line-height: 30px;
}
:root {
    --text-color: #fff;
    --bg-url: url('./assets/bg-mobile.jpg');
    --stroke-color: rgba(255, 255, 255, 0.5);
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-color-hover: rgba(0, 0, 0, 0.02);
    --highlight-color: rgba(255, 255, 255, 0.2);
    --switch-bg-url: url('./assets/moon-stars.svg');
}

.light {
    --text-color: #000;
    --bg-url: url('./assets/bg-mobile-light.jpg');
    --stroke-color: rgba(0, 0, 0, 0.5);
    --surface-color: rgba(0, 0, 0, 0.05);
    --surface-color-hover: rgba(0, 0, 0, 0.02);
    --highlight-color: rgba(0, 0, 0, 0.2);
    --switch-bg-url: url('./assets/sun-starts.svg');
}

body * {
    font-family: Avenir;
    color: var(--text-color);
}

body {
    /* background-image: url('./assets/bg-mobile.jpg'); */
    background-image: var(--bg-url);
    background-repeat: no-repeat;
    background-position: top center;
    /* axis y top, axis x center*/
    background-size: cover;
    /* cover == faça toda cobertura do background size */
    /* background: url('./assets/bg-mobile.jpg') no-repeat top center / cover; */
    height: 100vh;
}

#container {
    /* nota: por padrão não definimos o height, pois geralmente a altura segue o conteúdo da página  */
    /* width: 360px; */
    width: 100%;
    max-width: 480px;
    margin: 16px auto 0px;
    padding: 0 24px;
}

/* profile */

#profile {
    text-align: center;
    padding: 24px;
}

#profile img {
    /* display: block; */
    /* nota: por padrão img é inline, assim inserimos display block para ajustar o margin */
    width: 112px;
    border-radius: 15%;
    border: 2px solid #ffff;
    /* margin: auto; */
}

#profile p {
    font-weight: 500;
    line-height: 24px;
    margin-top: 8px;
}

/* switch */

#switch {
    position: relative;
    width: 64px;
    margin: 4px auto;
}

#switch button {
    width: 32px;
    height: 32px;
    background: #fff;
    background-image: var(--switch-bg-url);
    background-repeat: no-repeat;
    background-position: center;
    border: 0;
    cursor: pointer;
    left: 0;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);

    animation: slide-back 0.4s;
}

/* #switch button:hover {
    outline: 8px solid var(--highlight-color);
} */

.light #switch button {
    animation: slide-in 0.4s forwards;

    /* right: 0;
    left: initial; */
}

#switch span {
    display: block;
    /* span é inline, aplicamos o block para usar as configurações abaixo*/
    width: 64px;
    height: 32px;
    background: var(--surface-color);
    border: 1px solid var(--stroke-color);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* links */

ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 24px 0;
}

ul li a {
    display: flex;
    align-items: center;
    /* align-items axis y */
    justify-content: center;
    /* justify-content axis x */
    background: var(--surface-color);
    border: 1px solid var(--stroke-color);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    padding: 16px 24px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;

    transition: background 0.3s;
}

ul li a:hover {
    background: var(--surface-color-hover);
    border: 1.5px solid var(--text-color);
}

/* social-links */

#social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom:1rem;
    padding-top:1rem;
    font-size: 32px;
}

#social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 16px;

    transition: background 0.3s;
}

#social-links a:hover {
    cursor: pointer;
    background: var(--highlight-color);
}

/* footer */

footer {
    font-size: 14px;
    text-align: center;
    padding-bottom: 24px;
}

/* media queries - at rules */

@media (min-width: 720px) {
    :root {
        --bg-url: url('./assets/bg-desktop.jpg');
    }
    .light {
        --bg-url: url('./assets/bg-desktop-light.jpg');
    }
}

/* animation */

@keyframes slide-in {
    from {
        left: 0;
    }
    to {
        left: 50%;
    }
}

@keyframes slide-back {
    from {
        left: 50%;
    }
    to {
        left: 0;
    }
}
