/* CSS Global */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');

@font-face {
    font-family: 'Helvetica';
    src: url("../font/Helvetica.ttf");
}

*{
    font-family: 'Raleway', sans-serif;
    box-sizing: border-box;
    --red:#e2574c;
}

body{
    margin: 0;
    padding: 0;
    background-image: url("../img/bg3.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    opacity: 0.95;
}

a{
    color: #000000;
    text-decoration: none;
}

.page-container{
    width: 1300px;
    background-color: #fff;
    margin: 0 auto 20px;
    border-bottom: 15px solid var(--red);
    border-radius: 0 0 10px 10px;
}

header{
    display: flex;
    flex-direction: column;
}

header a{
    margin: 0 auto;
}

h1{
    font-weight: 300;
    color: #3c3c3c;
    font-size: 45px;
    text-align: center;
    margin: 100px auto 30px;
}

h1 span{
    font-weight: 500;
}

header div{
    background-color: var(--red);
    width: 110px;
    height: 3px;
    margin: 0 auto;
}

header p{
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #797979;
    display: inline-block;
    max-width: 536px;
    margin: 0 auto;
    text-align: center;
    margin-top: 39px;
}

.container{
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

.cards-container{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 65px auto 50px;
}

.cards{
    width: 364px;
    border-radius: 3px;
    border: 1px solid #e6e6e6;
    background-color: #ffffff;
    margin: 0px 5px 29px;
    transition: 0.2s ease-in;
}

.cards img{
    width: 100%;
}

.cards p{
    text-align: center;
}

.cards p:nth-child(2){
    color: #3c3c3c;
    font-size: 22px;
    font-weight: 500;
    margin: 30px auto 9px;

}

.cards p:nth-child(3){
    color: #797979;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.cards p:nth-child(4){
    color: var(--red);
    font-size: 16px;
    font-weight: 400;
    margin: 28px auto 21px;
    font-family: 'Helvetica', sans-serif;
}

.cards div{
    border-top: 1px solid #e6e6e6;
}

.cards div ul{
    display: flex;
    justify-content: space-around;
    padding-left: 0;
}

.cards div ul li:first-child{
    list-style: none;
}

.cards div ul li{
    color: #797979;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Helvetica', sans-serif;
}

.buttons{
    display: flex;
    justify-content: space-evenly;
    margin: 0 auto;
    width: 400px;
}

.buttons button{
    max-height: 54px;
    height: 54px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--red);
    border: none;
    border-radius: 5px 5px;
    min-width: 174px;
    margin: 0 auto;
    transition: 0.3s ease-in;
}

/* Other Pages */

.big-card{
    width: 100%;
    overflow: hidden;
    margin: 35px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.big-card div:first-child{
    width: 50%;
    border-radius: 10px 10px;
    overflow: hidden;
}

.big-card div:first-child img{
    width: 100%;
    border-radius: 10px 10px;
}

.big-card div:first-child div:first-child{
    width: 100%;
}

.darken{
    margin-left: 7px;
    background-color: var(--red);
    color: #fff;
    border: 3px solid var(--red);
    font-size: 15px;
    font-weight: 600;
    width: 100px;
    border-radius: 5px 5px 0 0;
}

.big-card div:first-child div:nth-child(2){
    display: flex;
    flex-direction: row;
}

.big-card div:first-child div:nth-child(2) a{
    width: 20%;
}

.big-card div:first-child div:nth-child(2) img{
    width: 100%;
}

.big-card div:nth-child(2) p:first-child{
    color: #3c3c3c;
    font-size: 22px;
    font-weight: 500;
}

.big-card div:nth-child(2) p:nth-child(2){
    color: #797979;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.big-card div:nth-child(2) p:nth-child(3){
    color: var(--red);
    font-size: 16px;
    font-weight: 400;
    margin: 28px auto 21px;
    font-family: 'Helvetica', sans-serif;
}

#ancre{
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    position: fixed;
    right: 25px;
    bottom: 25px;
    background-color: #1a1a1a;
    opacity: 70%;
    padding: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    height: 53px;
    width: 53px;
    transition: 0.4s ease-in;
}

/* Animation */

.cards:hover{
    box-shadow: #8c8c8c 4px 4px 6px 0;
    transform: scale(1.01);
}

button:hover{
    border: 3px solid var(--red);
    background-color: #fff;
    color: var(--red);
}

button:focus{
    outline-color: var(--red);
}

header, .container, .cards{
    animation: 1s spawn;
}

.cards{
    animation: 1s spawnCards;
}

@keyframes spawn {
    0%{
        transform: translateY(-100px);
    }
    100%{
        transform: translateY(0px);
    }
}

@keyframes spawnCards {
    0%{
        filter: opacity(0%);
    }
    15%{
        filter: opacity(1%);
    }
    100%{
        filter: opacity(100%);
    }
}

#ancre:hover{
    background-color: #fff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    animation: 0.4s ancre forwards;
}

@keyframes ancre {
   0%{
       transform: rotateZ(0deg);
   }
    100%{
        transform: rotateZ(-35deg);
    }
}

/* Responsive */

@media (min-width: 1201px){
    .cards-container{
        width: 1200px;
    }
}

@media (max-width: 1301px) {
    .page-container{
        width: 100%;
    }
}