* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: black;
}

.body_list {
    background-color: white;
    max-width: 1125px;
    border-radius: 20px;
    padding: 20px;
    margin: auto;
    margin-top: 50px;
    align-items: center;
    font-family: sans-serif;
}

.main {
    display: flex;
    flex-direction: row;
    gap: 10px;
    border: 1px solid #d1d3ce75;
    border-radius: 20px;
    padding: 20px;
    margin: 15px;
}

.main:hover {
  color: rgb(24,24,24);
  border: 1px solid rgb(198,198,198);
  background: #f7f7f7 linear-gradient(#f7f7f7, #f1f1f1);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/*.main_number_content {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

.number_content {
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    width: 180px;
    height: 180px;
    background-color: #d1d3ce75;
    align-items: center;
    justify-content: center;
}

.line_main {
    display: flex;
    flex-direction: row;
    border: 1px solid #d1d3ce75;
    border-radius: 20px;
    padding: 20px;
    margin: 15px;
    align-items: center;
}

.line_button_left {
    display: flex;
    border-radius: 20px;
    background-color: #d1d3ce75;
    align-items: center;
    justify-content: center;
    transition: all .218s ease 0s;
    border: 0;
    font-family: sans-serif;
    font-size: 16px;
    width: 180px;
    height: 25px;
    margin-right: 10px;
    font-size: smaller;
}

.line_button_left:hover {
  color: rgb(24,24,24);
  border: 0px solid rgb(198,198,198);
  background: #cfcfcf75 linear-gradient(#cfcfcf75, #cfcfcf75);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.line_button_left:active {
  color: rgb(51,51,51);
  border: 0px solid rgb(204,204,204);
  background: rgb(238,238,238) linear-gradient(rgb(238,238,238), rgb(224,224,224));
  box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;
}

.line_button_right {
    display: flex;
    border-radius: 20px;
    background-color: #d1d3ce75;
    align-items: center;
    justify-content: center;
    transition: all .218s ease 0s;
    border: 0;
    font-family: sans-serif;
    font-size: 16px;
    width: 180px;
    height: 25px;
    margin-left: 10px;
    font-size: smaller;
}

.line_button_right:hover {
  color: rgb(24,24,24);
  border: 0px solid rgb(198,198,198);
  background: #cfcfcf75 linear-gradient(#cfcfcf75, #cfcfcf75);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.line_button_right:active {
  color: rgb(51,51,51);
  border: 0px solid rgb(204,204,204);
  background: rgb(238,238,238) linear-gradient(rgb(238,238,238), rgb(224,224,224));
  box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;
}
/*.number_content:active {*/
/*    color: white;*/
/*    border: 0px solid rgb(204,204,204);*/
/*    background: #00800075 linear-gradient(#00800075, #00800075);*/
/*    box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;*/
/*}*/

.number_content_green {
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    width: 180px;
    height: 180px;
    background-color: #1cca20;
    align-items: center;
    justify-content: center;
}


.selected_cell {
    display: flex;
    flex-direction: column;
    height: 25px;
    background-color: #d1d3ce75;
    align-items: center;
    justify-content: center;
}

.selected_cell_green {
    display: flex;
    flex-direction: column;
    height: 25px;
    background-color: #1cca20;
    align-items: center;
    justify-content: center;
}

.number_font {
    font-size: 6rem;
    font-family: sans-serif;
    font-weight: bold;
}

.content_font {
    font-family: sans-serif;
}

.number_font_white {
    font-size: 6rem;
    font-family: sans-serif;
    font-weight: bold;
    color: white;
}

.content_font_white {
    font-family: sans-serif;
    color: white;
}

.title_font {
    font-size: 1.5rem;
    font-family: sans-serif;
    font-weight: bold;
}

.poster {
    display: flex;
    border-radius: 20px;
    width: 150px;
    height: 180px;
    object-fit: cover;
}

.title {
    display: flex;
    flex-direction: column;
    padding: 0px;
    gap: 0.1px;
    max-width: 700px; /* Максимальная ширина в пикселях */
    overflow-wrap: break-word; /* Позволяет перенос длинных слов */
}

.trailer_button {
    display: flex;
    border-radius: 20px;
    width: 95px;
    height: 25px;
    background-color: #d1d3ce75;
    align-items: center;
    justify-content: center;
    transition: all .218s ease 0s;
    border: 0px;
    font-family: sans-serif;
}

.trailer_button:hover {
  color: rgb(24,24,24);
  border: 0px solid rgb(198,198,198);
  background: #cfcfcf75 linear-gradient(#cfcfcf75, #cfcfcf75);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.trailer_button:active {
  color: rgb(51,51,51);
  border: 0px solid rgb(204,204,204);
  background: rgb(238,238,238) linear-gradient(rgb(238,238,238), rgb(224,224,224));
  box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;
}

.director {
    margin-bottom: 8px;
    max-width: 550px;
}

.filter_button {
    display: flex;
    border-radius: 20px;
    width: 89px;
    height: 22px;
    background-color: #d1d3ce75;
    align-items: center;
    justify-content: center;
    transition: all .218s ease 0s;
    border: 0px;
    margin-left: 1px;
    font-family: sans-serif;
}

.filter_button:hover {
  color: rgb(24,24,24);
  border: 0px solid rgb(198,198,198);
  background: #cfcfcf75 linear-gradient(#cfcfcf75, #cfcfcf75);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.filter_button:active {
  color: rgb(51,51,51);
  border: 0px solid rgb(204,204,204);
  background: rgb(238,238,238) linear-gradient(rgb(238,238,238), rgb(224,224,224));
  box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;
}

.buttons {
    display: flex;
    flex-direction: row;
}



@media (max-width: 900px) {
    .body_list {
        background-color: white;
        width: 1070px;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-family: sans-serif;
    }
    .main {
        display: flex;
        flex-direction: row;
        gap: 10px;
        border: 1px solid #d1d3ce75;
        border-radius: 20px;
        padding: 20px;
        margin: 15px;
        width: 103%;
    }
    .number_content {
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        width: 280px;
        height: 280px;
        background-color: #d1d3ce75;
        align-items: center;
        justify-content: center;
    }
    .poster {
        display: flex;
        border-radius: 20px;
        width: 250px;
        height: 280px;
        object-fit: cover;
    }
    
    .title {
        display: flex;
        flex-direction: column;
        padding: 0px;
        gap: 0.1px;
        max-width: 400px;
        overflow-wrap: break-word;
    }
    .number_font {
        font-size: 10rem;
        font-family: sans-serif;
        font-weight: bold;
    }
    .title_font {
        font-size: 2rem;
        font-family: sans-serif;
        font-weight: bold;
    }
    .search_form {
        border-radius: 20px;
        padding-inline: 20px;
        font-family: sans-serif;
        font-size: 1.3rem;
        background-color: #d1d3ce75;
        border: 0px;
        width: 435px;
        height: 45px;
        text-align: center;
    }
    .search_button {
        display: flex;
        border-radius: 20px;
        background-color: #d1d3ce75;
        align-items: center;
        justify-content: center;
        transition: all .218s ease 0s;
        border: 0;
        font-family: sans-serif;
        font-size: 16px;
        width: 280px;
        height: 45px;
    }
}


/*// Малые девайсы*/
/*@media (min-width: 576px)*/

/*// Средние девайсы («планшеты» > 768px)*/
/*@media (min-width: 768px)*/

/*// Большие девайсы (Ноутбуки и десктопы > 991px)*/
/*@media (min-width: 991px)*/

/*// Стационарные ПК и большие мониторы (> 1200px)*/
/*@media (min-width: 1200px)*/
