*{
    /*reset*/
    padding: 0;
    margin:0;
    box-sizing: border-box;

}

body{
    background-image:url("../img/background.jpg");
    background-blend-mode: luminosity;
    background-size: cover;
    font-family: 'Source Code Pro', monospace;
    height: 100vh;
    font-size:12px;
}

/* se a tela tiver pelo menos 400px vai carrega estes estilos*/
@media(min-width: 400px) {
    body{
        font-size:14px;
    }
}


@media(min-width: 600px) {
    body{
        background-attachment: fixed; 
        background-size: cover;
        font-size:16px;
    }
}

@media(min-width: 1200px) {
    body{
        font-size:18px;
    }
}

header{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-left-color: #22a6b3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear forwards;
    opacity:0;
}

@keyframes spin {
    to {
        transform: rotate(720deg);
        opacity:1;
        border:none;
    }
}

.menu{
    background-color:white;
    position:fixed;
    width: 100vw;
    top: 0;
    z-index: 1;
}

.menu ul{
display:flex;
justify-content:space-around;
}

.menu li{
list-style:none;
}

.menu a{
    display:block;
    padding:10px 20px;
    transition: background-color 0.5s, color 0.5s ;
}

.menu a:active,
.menu a:hover{
    background-color: teal;
    color:whitesmoke;
}

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

a:hover{
    text-decoration:underline;
}

.titulo{
    transform: scale(0.2) translateY(50vh);
    opacity:0;
    animation: 1s ease  2s animaTitulo forwards;
}

@keyframes animaTitulo{
    from{
        transform: scale(0.2) translateY(50vh);
        opacity:0;
    }
    to{
        transform: scale(1) translateY(0);
        opacity:1;
    }
}

.site-subtitle,
.site-title{
    color:whitesmoke;
    text-align:center;
}

.site-title{
    font-family: 'Orbitron', sans-serif;
    font-size: 4em;
}


.site-subtitle{
    font-style:italic;  
    font-family: 'Special Elite', cursive;
    line-height: 2em;
}

.sobre,
.contato,
.portfolio {
    min-height: 100vh;
    padding: 2em;
}

@media (min-width: 1200px){
    .container {
        max-width: 1200px;
        margin-left:auto;
        margin-right:auto;
    }
}

.sobre h2,
.contato h2,
.portfolio h2 {
    font-family: 'Special Elite', cursive;
    color: whitesmoke;
    margin-top:1em;
    margin-bottom: 1.5em;
    font-size: 2em;
}

.sobre p{
    text-align: justify;
    color: white;
    /*text-indent: 1.5em;*/
    margin-bottom: 1em;
}

.sobre .avatar{
    float:right;
    margin-left: 1.5em;
}

.sobre .avatar img{
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

@media(max-width: 700px){
    .sobre .avatar {
        float:none;
    }
}

.portfolio .grid{
    display: grid;
    gap: 1em;
    color:whitesmoke;
}

@media(min-width: 560px){
    .portfolio .grid{
        grid-template-columns: 240px 240px;
    }
}

@media(min-width: 880px){
    .portfolio .grid{
        grid-template-columns: repeat(3, 260px);
        height: calc(100vh - 10em - 48px);
        align-items:center;
        justify-content: center;
    }
}


.flip-card{
    height: 180px;
    perspective: 1000px;
}

.flip-card:hover .card{
    transform: rotateY(180deg);
}

.card{
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s;
}

.card-front, .card-back{
    backface-visibility: hidden;
    position: absolute;
    top:0;
    left:0;
    width:100%;
}

.card-back{
    display:flex;
    align-items:center;
    justify-content: center;
    height: 180px;
    width: 100%;
    background-color: bisque;
    color:red;
    transform: rotateY(180deg); 
    text-align: center;
    padding: 1px ;   
}

.portfolio figure{
    text-align: center;
}

.img-portfolio {
    height: 180px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 500ms;
  }

.contato .grid{
    height: calc(100vh - 10em - 48px);
    align-items:center;
    justify-content: center;
}

.contato a{
    color: whitesmoke;
    font-size: 8em;
    padding: 0.1em;
    transition: text-shadow 0.5s;
}

.contato .icons {
    padding-top: 7em;
    text-align: center;  
}

.contato a:active,
.contato a:hover{    
    text-decoration: none;
    text-shadow: 0px 0px 15px azure;

}



