@charset "UTF-8";

/* Pseudo-elemento referente à barra de scroll da página  */
::-webkit-scrollbar {
    /* Neste caso, altura e largura zerados para que seja ocultado o scroll */
    width: 0px;
    height: 0px;
}

* {
    margin: 0px;
    padding: 0px;
    user-select: none; /* Para tirar o "caret" (cursor de texto) da página */
    font-family: Arial, Helvetica, sans-serif;
}

body {
    height: 100vh;
    width: 100vw;
    background: no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
}

main {
    height: 100vh;
    position: relative;
}

section#tela {
    height: 625px;
    width: 310px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* explicado no ex22 */
    background: url(../assets/images/frame-iphone.png) no-repeat;
}

iframe {
    position: relative;
    top: 80px;
    left: 22px;
    width: 267.6px;
    height: 471px;
}

figure > img {
    width: 100vw;
    display: block;

}

figure > a {
    display: block;
    background-color: darkred;
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: bolder;
    text-decoration: none;
}

figure > a:hover {
    text-decoration: underline;
    background-color: firebrick;
}

nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

nav img {
    display: block;
    width: 60px;
    margin: 20px 10px;
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

nav img:hover {
    border: 2px solid rgba(255, 255, 255, 0.6);
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s, box-shadow .2s, border .2s; /* para dar um "delay" ao aplicar nova estilização */
}