*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: #30688f;
    font-family: 'Raleway', sans-serif;
    color: white;
}

main {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header{
    background-color: white;
    width: 100%;
    clear: both;
    content: '';
    display: table;
}

.nav-bar{
    width: 70vw;
    margin: 0 auto;
}

.logo-wenen{
    width: 15%;
    float: left;
    padding: 8px;
    cursor:pointer;
}

nav {
    float: right;
}

nav ul li{
    list-style: none;
    margin-left: 75px;
    padding: 12px 0px;
    float: left;
}

nav ul li h1{
    color: #30688f;
    font-size: medium;
    font-weight: 600;
    padding-top: 5%;
}


main h2{
    font-size: medium;
    text-align: center;
    font-weight: 400;
    margin-bottom: 2vh;
}

section{
    display: grid;
    grid-template-columns: repeat(4,8rem);
    grid-template-rows: repeat(4,8rem);
    grid-gap: 2rem;
    perspective: 800px;
}

.tarjeta{
    position: relative;
    transform-style: preserve-3d;
    transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: rgba(0,0,0,0.2) 0px 5px 15px;
    border-radius: 3px;
}

.cara, .contraCara{
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
    border-radius: 3px;
}

.tarjeta, .cara, .contraCara:hover{
    cursor: pointer;
}

.cara{
    transform: rotateY(-180deg);
}

.contraCara {
    background-color: white;
    backface-visibility: hidden;
    color: #30688f;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: 600;
}

.toggleTarjeta{
    transform: rotateY(180deg);
}

@media screen and (max-width: 768px){
    
    .nav-bar{
        display: flex;
        flex-direction: column;
    }

    nav {
        float: none;
    }
    
    nav ul li{
        list-style: none;
        margin-left: 0px;
        padding: 0px 0px;
        float: none;
    }

    .logo-wenen{
        width: 40%;
        padding-top: 5%;
        align-self: center;
    }
    
    nav ul li h1{
        text-align: center;
        padding-top: 0%;
        padding-bottom: 4%;
    }

    main {
        height: 70vh;
    }

    main h2{
        font-size: small;
        text-align: center;
        margin-bottom: 2vh;
    }
    section{
        display: grid;
        grid-template-columns: repeat(4,4rem);
        grid-template-rows: repeat(4,4rem);
        grid-gap: 1rem;
        perspective: 800px;
    }

    .contraCara {
        background-color: white;
        backface-visibility: hidden;
        color: #30688f;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        font-weight: 600;
    }

}