@import "main_style.css";


main{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.main_page_title{
    position: absolute;
    top: 8%;
    font-size: 2.5rem;
    font-family: 'Jost';
}

.card{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: rotateY(-30deg);
    transition: 1s ease-in-out;
}

.card a{
    /* position:absolute; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card img{
    width: 70%;
    border-radius: 1rem;
}

.card_border{
    position: absolute;
    z-index: -1;
    background-color: pink;
    background: linear-gradient(-45deg, #e73c7e, #23a6d5,  #e73c7e, #23a6d5);
	background-size: 300% 200%;
	animation: border-gradient 2s ease-in-out infinite alternate-reverse;
    width: 73%;
    height: 102%;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* @keyframes border-hover{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
} */

@keyframes border-gradient{
    0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.glide__slides{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.glide__slide{
    width: 70%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 0 38px;
    opacity: .5;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    transition: transform .5s ease-in, opacity .5s ease-in;
    perspective: 2000px;
    /* transform: skewY(-5deg); */
}

/* .glide__slide:hover .card_border{
    animation:border-gradient 2s ease-in-out infinite alternate-reverse;
    opacity: 1;
} */

/* border-hover 1s ease-in-out forwards, */

.glide__slide--active{
    transform: scale(1.2);
    cursor: pointer;
    z-index: 5;
    opacity: 1;
    filter: blur(0);
    -webkit-filter: blur(0);
    transition: .5s ease-in;
}

.glide__slide--active .card{
    transform: rotateY(0);
    transition: 1s ease-in-out;
}

.glide__slide--active .card_border{
      opacity: 1;
}

h2{
    color: white;
    position: absolute;
    font-family: 'Montserrat';
    font-size: 1.1rem;
    bottom: 50%;
    text-transform: uppercase;
    text-shadow: 0 0 3px rgb(48, 48, 48);
}

.card_subtitle{
    color: white;
    position: absolute;
    font-size: .7rem;
    text-align: center;
    bottom: 40%;
    font-weight: 600;
    text-shadow: 0 0 3px rgb(48, 48, 48);
    /* width: 190px; */
    /* padding: 0 2rem; */
}

footer{
    display: none;
}

/* ===================== MEDIA QUERIES ================= */
@media screen and (min-width: 480px){
    .card img{
        width: 55%;
    }
    .card_border{
        width: 57%;
    }
    h2{
        font-size: 1.2rem;
    }
    .card_subtitle{
        font-size: .9rem;
    }
}
@media screen and (min-width: 768px){
    .sub_body{
        background-image: url("../img/triangles_tablet.png"), url("../img/background2.png");
        width: 100%;
        background-repeat: no-repeat, no-repeat;
        background-position: center, center;
        background-attachment: fixed, fixed;
        background-size: auto, cover;
    }
    .main_page_title{
        display: none;
    }
    .glide__slide{
        padding: 0 1rem;
    }
    .card img{
        width: 100%;
    }
    .card_border{
        width: 104%;
    }
    .card_subtitle{
        bottom: 35%;
    }
}
@media screen and (min-width: 840px){
    h2{
        font-size: 1.6rem;
    }
    .card_subtitle{
        font-size: 1rem;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1280px){
    .glide__slide{
        padding: 0;
    }
    h2{
        font-size: 1.3rem;
    }
    .card_subtitle{
        font-size: .9rem;
    }
}
@media screen and (min-width: 1280px){
    .sub_body{
        background-image: url("../img/triangles_desktop.png"), url("../img/background2.png");
        width: 100%;
        background-size: 85%, cover;
        background-repeat: no-repeat, no-repeat;
        background-position: 40px 35%, center;
        background-attachment: fixed, fixed;
    }
}
@media screen and (min-width: 1700px){
    .card_subtitle{
        font-size: 1.3rem;
    }
}
/* @media screen and (min-width: 1024px){
    .sub_body{
        background-position: left, center;
        background-repeat: repeat-x, no-repeat;
    }
} */
