@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: #0B0B0B;
    color: #fafafa;
    text-align: center;
    padding-bottom: 20px;
}

body a {
    text-decoration: none;
    color: #9e9e9e;
}

body a:hover {
    color: #3a3a3a;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
}

h1, nav, #search {
    width: 250px;
}

header h1 {
    color: red;
    cursor: pointer;
    text-align: left;
}

ul li {
    display: inline;
    margin: 0 20px;
    cursor: pointer;
}

ul li:hover {
    color: red;
}

#search {
    background-color: #3a3a3a;
    padding: 8px 20px;
    border-radius: 8px;
}

#search input {
    background-color: transparent;
    border: none;
    color: #9e9e9e;
    width: 90%;
}

#search input:focus-visible {
    outline: none;
}

#search button {
    background-color: transparent;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
}

.header {
    padding: 50px;
}

.header h2 {
    color: #d6d5d5;
    font-size: 40px;
}

.header h2 span {
    color: red;
}

.header h3 {
    padding: 10px 10px 0;
    color: #d6d5d5;
    font-size: 18px;
    font-weight: 400;
}

.header p {
    padding: 20px 100px;
    color: #9e9e9e;
    font-size: 15px;
}

#movies-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item {
    width: 230px;
    padding: 15px;
    text-align: left;
}

.item img {
    width: 100%;
}

.item h3 {
    font-size: 15px;
    font-weight: 400;
}

#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9e9e9e;
    margin: 40px;
}

#pagination button {
    margin: 0 10px;
    background-color: #3a3a3a;
    color: #9e9e9e;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

#pagination button:hover {
    background-color: #272727;
}