html{
    scroll-behavior: smooth;
}

.main-container{
    display: flex ;
    flex-direction: column;
    background-color: var(--brown-color);
    width: 100%;
    margin: auto;
    align-items: center;
    justify-content: center;
}
.search-bar-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 1em;
    width: 40%;
}
.search-bar-input{
    border: none;
        font-family: 'Scada', sans-serif;
    font-style: italic;
    font-weight: bold;
    /*border-bottom: var(--yellow-color) solid 2px;*/
    padding: 0.4em 0.4em;
    padding-bottom: 1em;
    width: 100%;
    outline:none;
    background-color: var(--brown-color);
    text-align: center;
    color: var(--yellow-color);
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--yellow-color);
    font-weight: bold;
    opacity: 1; /* Firefox */
}

.search-button{
    width: 8%;
    cursor: pointer;
    border: none;
    border-color: var(--brown-color);
    background-color:  var(--brown-color);;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5em;
}

.search-button>svg{
}

/* .search-button:hover{
    background-color:  var(--yellow-color);
    -webkit-transition: background-color 200ms linear;
    -ms-transition: background-color 200ms linear;
    transition: background-color 200ms linear;
} */
/* .search-button:not(:hover){
    background-color:  var(--brown-color);
    -webkit-transition: background-color 200ms linear;
    -ms-transition: background-color 200ms linear;
    transition: background-color 200ms linear;
} */
.search-button:hover path{
    fill: var(--yellow-color);
    -webkit-transition: fill 200ms linear;
    -ms-transition: fill 200ms linear;
    transition: fill 200ms linear;
}
.search-button:not(:hover) path{
    fill: white;
    -webkit-transition: fill 200ms linear;
    -ms-transition: fill 200ms linear;
    transition: fill 200ms linear;
}

footer{
    color: white;
    padding-top: 20px;
}


/*----------------VIDEOS------------------------------------------------------------------------------------------------------------------------------------------------------*/

.main-video-display{
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    width: 100%;
}

.video-grid-wrapper {
    text-align: center;
    width: 60%;
    padding-top: 5px;
    margin-left: 50px;
    margin-right: 50px;
    z-index: 0;
}

.video-grid{
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden;
    flex-wrap: wrap;
    height: 564px;
    white-space: nowrap;
}

.grid-item{
    height: 170px;
    width: 305px;
    margin: 5px;
    border: solid 3px transparent;
    display: inline-block;
    vertical-align: top;
    background-repeat: no-repeat;

}

.grid-item:hover{
        border: solid 3px var(--yellow-color);

}
.grid-item-hover-layer{
    text-decoration: none;
    height: 173px;
    border: none;
    width: 308px;
    box-sizing: border-box;
    padding: 20px;
    padding: auto;
    display: flex;
    color: transparent;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    white-space: normal;
    text-transform: uppercase;
    font-weight: bold;
    font-style: italic;
    background-size: contain;
    opacity: 80%;
}
.grid-item-hover-layer:hover{
    background-color: var(--brown-color);
    vertical-align: center;
    color: var(--yellow-color);
    -webkit-transition:  background-color 150ms linear, color 150ms linear;
    -ms-transition:  background-color 150ms linear, color 150ms linear;
    transition:  background-color 150ms linear, color 150ms linear;

}

.grid-item-hover-layer:not(:hover){
    background-color:transparent;
    color: transparent;
    -webkit-transition:  background-color 150ms linear, color 150ms linear;
    -ms-transition:  background-color 150ms linear, color 150ms linear;
    transition:  background-color 150ms linear, color 150ms linear;

}

.video-grid:hover{
    cursor: pointer;
}
.video-grid:active{
    cursor: grabbing;
}


/*----------------FLECHAS----------------------------------------------------------------------------------------------------------------------------------------------------*/

.arrow-wrapper{
    width: 4%;
    margin-block: auto
}
.arrow-container{
    display: flex;
    align-items: center;
    padding: 2vh;
    border-radius: 12%;
}

.arrow-container path{
    width: 100%;
}

.arrow-container:hover path{
    fill: var(--yellow-color);
    -webkit-transition: fill 200ms linear;
    -ms-transition: fill 200ms linear;
    transition: fill 200ms linear;
}
/* .arrow-container:hover {
    background-color: var(--yellow-color);
    -webkit-transition: background-color 200ms linear;
    -ms-transition: background-color 200ms linear;
    transition: background-color 200ms linear;
} */

.arrow-container:not(:hover) path{
    fill: white;
    -webkit-transition: fill 200ms linear;
    -ms-transition: fill 200ms linear;
    transition: fill 200ms linear;
}

/* .arrow-container:not(:hover) {
    background-color: var(--brown-color);
    -webkit-transition: background-color 200ms linear;
    -ms-transition: background-color 200ms linear;
    transition: background-color 200ms linear;
} */

.arrow-wrapper:hover{
    cursor: pointer;

}



/*----------------MEDIA----------------------------------------------------------------------------------------------------------------------------------------------------*/


@media only screen and (max-width: 600px) {
    .search-button{
        width: 12%;
    }

    .search-button>svg{
        width: 80%;
    }

    .search-bar-input{
        font-size: medium;
    }
    .search-bar-container{
        width: 90%;
    }
    .video-grid-wrapper{
        width: auto;
        margin: 0;
    }
    .video-grid{
        height: auto;
    }
    .arrow-wrapper{
        display: none;
    }

    .grid-item, .grid-item-hover-layer{
        height: 173px;
        width: 308px;
    }

    .grid-item{
            margin: 10px;

    }


}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 601px) {
    .search-button{
        width: 10%;
    }

    .search-button>svg{
        width: 75%;
    }

    .search-bar-input{
        font-size: larger;
    }
    .search-bar-container{
        width: 80%;
    }
    .video-grid-wrapper{
        width: auto;
        margin: 0;
    }
    .video-grid {
        height: auto;
    }

    .arrow-wrapper{
        display: none;
    }

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .search-button{
        width: 12%;
    }

    .search-button>svg{
        width: 65%;
    }

    .search-bar-input{
        font-size: larger;
    }
    .search-bar-container{
        width: 60%;
    }
.grid-item, .grid-item-hover-layer {
    height: 173px;
    width: 308px;
}

}



/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .search-button{
        width: 8%;
    }

    .search-button>svg{
        width: 60%;
    }

    .search-bar-input{
        font-size: larger;
    }
    .search-bar-container{
        width: 60%;
    }

    .main-video-display{
        margin-bottom: 100px;
    }

    .video-grid-wrapper{
        width: 60%;
        margin-left: 50px;
        margin-right: 50px
    }
    .video-grid{
        height: 564px;
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .search-button{
        width: 5%;
    }

    .search-button>svg{
        width: 80%;
    }

    .search-bar-input{
        font-size: larger;
    }
    .search-bar-container{
        width: 60%;
    }

    .arrow-wrapper{
        display: block;
    }
}