@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;1,700&display=swap");

:root{
    --color-red: #ff000d;
    --color-dark-red: #9a0000;
    --color-black: #000;
    --color-white: #fff;
    --color-gray: #999;
    --color-dark: #222;
}

*{
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    box-sizing: border-box;
}

body{
    font-family: "Roboto", sans-serif;
    background: var(--color-black);
    max-width: 100vw;
    color: var(--color-white);
    line-height: 1.5;
}
/*navbar*/
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-left: 700px;
  }
  
  nav li {
    float: left;
  }
  
  nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }

/*GENERAL STYLE*/
.container{
    width: 90%;
    margin: 0 auto;
}

a{
    text-decoration: none;
}

.btn-{
    color: var(--color-white);
    padding: 0.55rem 1.7rem;
    border: 1px solid var(--color-white);
    border-radius: 0.2rem;
    font-size: 0.9rem;
    display: inline-block;
    
}

.btn-danger-{
    background: var(--color-red);
    border: none;
    margin-right: 1rem;
}

.btn-lg{
    margin: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 1.4rem;
}

.btn-content{
    font-size: 1rem;
    margin: 1rem 0.2rem;
}

.text-gray{
    color: var(--color-gray);
}

header{
    /*background-image: linear-gradient(to bottom, rgba(245,246,252,0), rgba(0,0,0,1)), 
    url("../img/comm/ecofin.jpg");*/
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size:cover;
    width: 100%;
    height: 100vh;
}

nav{
    width: 100%;
    padding: 0.4rem;
    background-color: black;
}

nav .container{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav img:first-child{
    width: 10rem;
}

/*main header content*/
header .content{
    margin-top: 10rem;
}

header .content img{
    width: 32rem;
}

header .content h3{
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin: 1rem 0 0;
}

header .content p{
    font-size: 1.1rem;
    margin-top: 1rem;
    width: 35rem;
}

/*media query*/
@media screen and (max-width:768px){
    .container{
        width: 94%;
    }

    h3{
        font-size: 1.3rem;
    }

    p{
        max-width: 93%;
        font-size: 1.9rem;
    }

    header nav img:first-child{
        display: none;
    }
    header nav img:last-child{
        display: inline-block;
        width: 2.2rem;
    }

    header .content{
        margin-top: 8rem;
    }

    header .content img{
        width: 25rem;
        margin-bottom: 2rem;
    }

    header .content p{
        width: 25rem;
    }
}

@media screen and (max-width:1060px){
    nav ul{
        margin-left: 500px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width:860px){
    nav ul{
        margin-left: 300px;
        font-size: 0.9rem;
    }
}
@media screen and (max-width:635px){
    nav ul{
        margin-left: 150px;
        font-size: 0.9rem;
    }
}
@media screen and (max-width:485px){
    nav ul{margin-left: 0px;}
}

/*top pics for you*/
header section{
    /*position: absolute;*/
    width: 100%;
    height: auto;
    margin-top: 3rem;
    padding: 0px 50px;
    bottom: 20px;
    color: #fff;  
}

header section .cards{
    position: relative;
    width: 100%;
    height: 255px;
    /*border: 1px solid #fff;*/
    margin-top: 10px;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

header section .cards::-webkit-scrollbar{
    background-color: transparent;
    height: 18px;
    border-radius: 15px;
    border: 1.5px solid black;
}
header section .cards::-webkit-scrollbar-thumb{
    background-color: #bfbfbf;
    border-radius: 15px;
}

header section .cards .card{
    position: relative;
    min-width: 250px;
    height: 180px;
    /*border: 1px solid #fff;*/
    border-radius: 8px;
    margin-right: 15px;
    background: #000;
    text-align: center;
    
}
header section .cards .card:hover{
    transform: scale(1.25);
    transition: all .5s ease-in;
    cursor: pointer;
    z-index: 1;
}

header section .cards .card:hover .text{
    font-weight: 900;
    transform: translateY(-70px);
    transition: all .35s ease-in;
    cursor: pointer;
}  

header section .cards .card .poster{
    width: 100%;
    height: 100%;
    border-radius: 8px;
    position: relative;
}

header section .cards .card .text{
    position: absolute;
    bottom: 8px;
    right: 100px;
}

@media screen and (max-width: 800px){
    header section .cards .card:hover{
        transform: scale(1.3);
    }

    header section .cards .card{
        min-width: 200px;
    }
}

@media screen and (max-width: 450px){
    header section .cards .card:hover{
        transform: scale(1.25);
    }

    header section .cards .card{
        min-width: 180px;
    }
}

