body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.header {
    background-color: #0073e6;
    color: white;
    padding: 10px 20px;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 18px;
    margin-right: 20px;
}

.header__logo--dark {
    background-color: #333;
    color: white;
}

.header__logo--light {
    background-color: white;
    color: #333;
}

.header__nav-links__link {
    font-size: 18px;
    margin-right: 20px;
    color: white;
    text-decoration: none;
}

.header__nav-links__link--active {
    text-decoration: underline;
}

.header__nav-links__link:hover {
    text-decoration: underline;
}

.header__search-form {
    display: flex;
    align-items: center;
}

.header__search-form__input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
}

.header__search-form__button {
    padding: 5px 10px;
    border: none;
    background-color: #0073e6;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.header__search-form__button:hover {
    background-color: #005bb5;
}

.main {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.main__content {
    display: flex;
    flex-direction: column;
    flex: 2;
}

.section {
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    flex: 1;
}

.section__title {
    border-bottom: 2px solid #0073e6;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.section__pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.game-list, .movie-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    width: 100%;
}

.game-list__item, .movie-list__item {
    margin-right: 20px;
    text-align: center;
    max-width: 150px;
    flex: 0 0 auto;
}

.game-list__item-img, .movie-list__item-img {
    max-width: 100%;
    max-height: 140px;
    border-radius: 5px;
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
}

.game-list__item-text, .movie-list__item-text {
    max-width: 100%;
    margin-top: 5px;
    font-size: 14px;
    word-wrap: break-word;
}

.footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer__title {
    margin-bottom: 10px;
}

.footer__text {
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.footer__link {
    color: #0073e6;
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
}

.aside {
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    flex: 1;
}

.aside__title {
    border-bottom: 2px solid #0073e6;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.aside__list {
    list-style: none;
    padding: 0;
}

.aside__list-item {
    margin-bottom: 10px;
}

.aside__list-item-link {
    color: #0073e6;
    text-decoration: none;
}

.aside__list-item-link:hover {
    text-decoration: underline;
}

@media (min-width: 800px) {
    .main {
        flex-direction: row;
    }

    .main__content {
        flex: 3;
    }

    .aside {
        flex: 1;
        margin-bottom: 0;
        margin-left: 20px;
    }
}

.form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form__label {
    margin: 10px 0 5px;
}

.form__input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form__button {
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    background-color: #0073e6;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.form__button:hover {
    background-color: #005bb5;
}

.table-container {
    margin-top: 20px;
}

.generated-table {
    width: 100%;
    border-collapse: collapse;
}

.generated-table th, .generated-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.generated-table th {
    background-color: #0073e6;
    color: white;
}

.list-container {
    margin-top: 20px;
    width: 100%;
}

.towatch-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.towatch-table th,
.towatch-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.towatch-table th {
    background-color: #0073e6;
    color: white;
}

.towatch-table td {
    background-color: #f9f9f9;
}

.delete-button {
    padding: 5px 10px;
    background-color: #e60000;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #b30000;
}

.preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.preloader__spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-form {
    background-color: white;
    border: 1px solid #ddd;
    margin: 20px auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    text-align: center;
}

.login-form__title {
    margin-bottom: 20px;
}

.form__group {
    margin-bottom: 15px;
}

.form__label {
    display: block;
    margin-bottom: 5px;
}

.form__input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form__button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #0073e6;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.form__button:hover {
    background-color: #005bb5;
}
