@import "main_style.css";

body{
    background-image: url("../img/Triangles_mobile.png"), url("../img/background2.png");
    width: 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-attachment: fixed, fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    overflow: auto;
    margin-top: 35%;
}

.sub_body{
    background-repeat: repeat-y, no-repeat;
    background-position: 50% 30%, center;
}

main{
    width: 100%;
    height: auto;
}

.main_container{
    display: initial;
    overflow-y: scroll;
}

.main_page_title{
    position: fixed;
    top: 8%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Jost';
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    animation: slideLeft 1.5s ease-in-out forwards;
}

.arrows_container{
    display: none;
}
/* ==================== VIDEOS ================ */
.videos_container{
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 35%;
    padding-bottom: 2rem;
    opacity: 0;
    animation: fadein 1s ease-in-out .5s forwards;
}

.video{
    position: relative;
    margin-bottom: 3rem;
}

.video_wrapper{
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 0 2rem;
}

.video_wrapper iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video_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: 102%;
    height: 102%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video:hover .video_border{
    opacity: 1;
    animation: border-gradient 2s ease-in-out infinite alternate-reverse;
}

/* iframe{
    opacity: .7;
    transition: opacity .5s ease-in-out;
} */
/* ==================== VIDEO HOVER ========================= */
.video_wrapper{
    background: linear-gradient(-45deg, #e73c7e, #23a6d5,  #e73c7e, #23a6d5); 
    animation: border-gradient 2s ease-in-out infinite alternate-reverse;
    background-size: 300% 200%;
}
.video_wrapper:before, .video_wrapper:after {
    content: '';
    display: block;
    background: linear-gradient(-45deg, #e73c7e, #23a6d5,  #e73c7e, #23a6d5);
    background-size: 300% 200%;
    animation: border-gradient 2s ease-in-out infinite alternate-reverse;
    width: 8px;
    height: 8px;
    position: absolute;
    transition: all .5s ease;
}
.video_wrapper:before{
    top: 0;
    left: 0;
    transform-origin: top left;
    transform: rotate(-45deg) scale(0);
}
.video_wrapper:after{
    right: 0;
    bottom: 0;
    transform-origin: bottom right;
    transform: rotate(45deg) scale(0);
}
.yt_vid{
    display: block;
    transform: translate(0, 0);
    transition: all .5s ease;
    position: relative;
    z-index: 10;
}
.video_wrapper:hover .yt_vid{
    transform: translate(6px, -6px);
}
.video_wrapper:hover:before{
    transform: rotate(-45deg) scale(1);
}
.video_wrapper:hover:after{
    transform: rotate(45deg) scale(1);
}
/* ============================================== */
/* .video:hover iframe{
    opacity: 1;
} */

.video_title{
    color: white;
    text-align: center;
    padding: .5rem 0;
    font-family: 'Exo';
}

.artist_name{
    font-family: 'Jost';
    text-shadow: 2px 1px rgba(255, 105, 180, 0.623), -2px -1px #1aabff8e;
}
/* ================================================ */
footer{
    display: none;
}

/* ======================= MEDIA QUERIES ============== */
@media screen and (min-width: 480px){
    .arrows_container{
        display:flex;
        flex-direction: column;
        flex-wrap: wrap;
        /* z-index: -1; */
    }

    .arrow, .arrow_glitch{
        display: block;
        opacity: 1;
        z-index: -1;
    }
    .arrow_glitch{
        position: fixed;
        transform: rotate(280deg) scale(1.2);
        bottom: 5%;
        right: -45px;
    }
    .videos_container{
        margin-top: 0;
    }
}
@media screen and (min-width: 480px) and (max-width: 767px){
    body{
        margin-top: 26%;
    }
}
@media screen and (min-width: 768px){
    .sub_body, 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{
        top: 15%;
        font-size: 4.5rem;
    }
}
@media screen and (min-width: 768px) and (max-width: 839px){
    body{
        margin-top: 30%;
    }
}

@media screen and (min-width: 840px) and (max-width: 1023px){
    body{
        margin-top: 27%;
    }
}

@media screen and (min-width: 1024px){
    body{
        margin-top: 7%;
    }
    
    .main_page_title{
        display: none;
    }

    .videos_container{
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 7%;
        padding-bottom: 0;
        justify-content: flex-end;
    }

    .video{
        flex-basis: 40%;
    }

    .videos_container .video:nth-child(3), .videos_container .video:nth-child(4){
        left: -20%;
    }

    .arrow{
        transform: rotate(243deg) scale(1, -1);
        left: -5%;
        top: 23%;
        /* position: absolute;
        top: 10%; */
    }
    .arrow img{
        width: 225px;
    }

    .arrow_glitch{
        transform: rotate(299deg) scale(1.4);
        bottom: 50%;
        right: -18px;
        /* position: absolute;
        bottom: 35%; */
    }
}

@media screen and (min-width: 1280px){
    .sub_body, 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;
    }
    .video_container{
        margin-top: 0;
    }
    .arrow{
        top: 30%;
        left: -3.5rem;
    }
}
