@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
header {
    background-color: rgb(32, 32, 32);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 4px solid rgb(216, 216, 216);
}
.header__logo{
    height: 40px;
}
.logo{
    display: flex;
    align-items: center;
    color: rgb(216, 216, 216);
}
header p{
    font-family: Roboto;
    font-size: 30px;
    margin-left: 30px;
}
.buttons{
    font-size: 20px;
    width: 140px;
    height: 40px;
    border-radius: 10px;
    background-color: black;
    color: rgb(216, 216, 216);
    border: 2px solid rgb(216, 216, 216);
    margin-right: 30px;
}
.btns{
    display: flex;
    align-items: center;
}
.buttons:hover{
    color: rgb(255, 255, 255);
    border: 2px solid rgb(255, 255, 255);
    transition: border 0.2s;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(80, 80, 80);
    min-height: 1400px;
}

main p,h3{
    color: rgb(216, 216, 216);
}
main h1{
    font-family: 'Roboto';
    font-size: 70px;
    color: rgb(216, 216, 216);
    margin-top: 30px;
}
footer {
    background-color: rgb(32, 32, 32);
}
.main_filter{
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1400px;
}
.filter{
    width: 200px;
    height: 50px;
    cursor: pointer;
    font-family: Roboto;
    border-radius: 10px;
    background-color: rgb(53, 53, 53);
    color: rgb(216, 216, 216);
    padding: 7px;
    border: 1px solid rgb(216, 216, 216);
}
.catalog{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 30px;
    width: 1400px;
}
.catalog__elem{
    max-width: 1500px;
}
.catalog a:hover{
    transition: box-shadow 0.2s;
    border-radius: 15px;
    -webkit-box-shadow: 0px 0px 49px 10px rgb(216, 216, 216);
    -moz-box-shadow: 0px 0px 49px 10px rgb(216, 216, 216);
    box-shadow: 0px 0px 49px 10px rgb(216, 216, 216);
}
.catalog a{
    margin-bottom: 30px;
}
.catalog__elem img{
    height: 300px;
    width: 200px;
}
.catalog__elem h3{
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 10px;
    font-size: 20px;
    font-family: Roboto;
}
.elem__property{
    border-radius: 15px;
    width: 1150px;
    height: 420px;
    background-color: rgb(53, 53, 53);
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.elem__property p{
    padding-top: 7px;
    font-family: Roboto;
}
.elem__options{
    margin-left: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.elem__description{
    width: 1100px;
    margin-top: 30px;
    margin-left: 20px;
}
.aboba{
    width: 200px;
    height: 50px;
    min-height: 34px;
    font-size: 18px;
    font-family: Roboto;
    padding: 1px 10px;
    border: 0;
    border-radius: 10px;
    color: rgb(216, 216, 216);
    background-color: rgb(53, 53, 53);
    cursor: pointer;
    min-width: 70px;
    border: 1px solid rgb(216, 216, 216);
}
.header__elem{
    border-radius: 15px;
    padding: 20px;
    background-color:  rgb(53, 53, 53);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.elem__name{
    font-family: Roboto;
    color: rgb(216, 216, 216);
    margin-left: 20px;
    font-size: 35px;
    margin-bottom: 10px;
}
.elem__images img{
    border: 2px rgb(216, 216, 216) solid;
    width: 150px;
    height: 100px;
    margin-left: 20px;
    border-radius: 15px;
}
.elem__images{
    margin-top: 40px;
}
.elem__raiting img{
    max-width: 30px;
    max-height: 30px;
}
.elem__raiting{
    margin-top: 10px;
    display: flex;
    align-items: center;
}
.elem__raiting p{
    margin-left: 5px;
    font-family: 'Roboto';
    font-size: 30px;
}
.trailer{
    width: 350px;
    border: 2px solid rgb(216, 216, 216);
    border-radius: 15px;
}
.screnshots{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.screnshots img{
    width: 200px;
    height: 150px;
    
}
.elem__images{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
}
video{
    max-height: 200px;
}
a{
    text-decoration: none;
}
footer{
    border-top: 4px solid rgb(216, 216, 216);
    display: flex;
    justify-content: center;
}
footer a{
font-family: "Roboto";
    margin-top: 20px;
    margin-bottom: 20px;
    color: rgb(216, 216, 216);
}
.footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1400px;
}
.footer_one{
    width: 400px;
    display: flex;
    justify-content: space-between;
}

.search{
    margin: 20px 0;
    max-width: 800px;
    width: 100%;
    padding: 10px 15px;
    border-radius: 15px;
    outline: none;
    font-size: 20px;
    background-color: rgb(53, 53, 53);
    color: rgb(216, 216, 216);
}

.hide{
    display: none;
}
@media(max-width: 1414px){
    .container{
        max-width: 1500px;
        margin: 0 auto;
    }
    main{
        height: 1800px;
    }
    .catalog{
        width: 1200px;
        grid-template-columns: repeat(4,1fr);
        gap: 60px;
    }
    .footer{
        width: 1200px;
    }
    .main_filter{
        width: 1200px;
    }
}
@media(max-width: 1220px){
    .container{
        max-width: 1200px;
        margin: 0 auto;
    }
    main{
        height: 2300px;
    }
    .catalog{
        width: 1000px;
        grid-template-columns: repeat(3,1fr);
        gap: 60px;
    }
    .footer{
        width: 1000px;
    }
    .main_filter{
        width: 1000px;
    }
    .filter{
        width: 150px;
    }
    .aboba{
        width: 150px;
    }
}
@media(max-width: 1020px){
    .container{
        max-width: 1000px;
        margin: 0 auto;
    }
    main{
        height: 2300px;
    }
    .catalog{
        width: 800px;
        grid-template-columns: repeat(3,1fr);
        gap: 40px;
    }
    .footer{
        width: 800px;
    }
    .main_filter{
        width: 800px;
    }
    .filter{
        width: 150px;
    }
    .aboba{
        width: 150px;
    }
}
@media(max-width: 844px){
    .container{
        max-width: 1000px;
        margin: 0 auto;
    }
    main{
        height: 2700px;
    }
    .catalog{
        width: 600px;
        grid-template-columns: repeat(2,1fr);
        gap: 40px;
    }
    .footer{
        width: 600px;
    }
    .main_filter{
        width: 600px;
    }
    .filter{
        width: 100px;
    }
    .aboba{
        width: 100px;
    }
    .search{
        width: 600px;
    }
}
@media(max-width: 425px){
    .container{
        max-width: 425px;
        margin: 0 auto;
    }
    main{
        height: 5300px;
    }
    .catalog{
        width: 300px;
        grid-template-columns: repeat(1,1fr);
        gap: 40px;
    }
    .footer{
        flex-direction: column;
        width: 400px;
    }
    .main_filter{
        flex-direction: column;
        width: 600px;
    }
    .filter{
        width: 200px;
    }
    .aboba{
        width: 200px;
    }
    .search{
        width: 400px;
    }
    .logo p{
        font-size: 20px;
    }
    .buttons{
        width: 100px;
    }
    .btns{
        flex-direction: column;
    }
}