@import url('./carousel.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Variables */
:root {
    --header-grey: #121212;
    /* Primary BG bör vara din bakgrundsfärg */
    --primary-bg: #000000;
    --primary-white: #ffffff;
    --primary-grey: #1A1A1A;
    --text-yellow: #F5C518;
}

/* Base */
* {
    font-family: 'montserrat';
    font-weight: 600;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: var(--primary-bg);
    max-width: 100%;
}

/* Utils */
.content-wrapper {
    max-width: 1180px;
    margin: 0 auto;
}

.center {
    margin: 0 auto;
}

.header {
    background-color: var(--header-grey);
    width: 100%;
    padding: 1.5rem;
    z-index: 999;
}

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

.header__logo {
    width: 150px;

}

.header__logo-small {
    display: none;
}

.header__form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header__input {
    width: 50%;
    padding: 1rem;
    border-radius: 2rem 0 0 2rem;
    border: none;
}

.header__form-btn {
    border-radius: 0 2rem 2rem 0;
    width: 5rem;
    border: none;
    cursor: pointer;
}

.header__fav-btn {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--text-yellow);
    background: none;
    border: none;
    cursor: pointer;
}

.logo-small-link {
    display: none;
}

/*Movie Card*/
.popular-title {
    color: var(--text-yellow);
    font-size: 1.7rem;
    text-align: center;
    padding-bottom: 2rem;
}

.movie-title {
    margin-top: 1rem;
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
    border-left: 2px solid white;
    padding-left: 1rem;

}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.movie-card {
    position: relative;
    display: inline-block;
    width: 250px;
    cursor: pointer;
}

.movie-card:hover {
    cursor: pointer;
}

.favorites-btn {
    position: absolute;
    right: 0px;
    padding: 10px;
    background-color: rgb(33, 32, 32, 0.7);
    border: none;
    color: gold;
    font-size: 24px;
    cursor: pointer;
}

.favorites-info-btn {
    background-color: rgb(33, 32, 32, 0);
    color: gold;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding-left: 40px;
}

.movie-poster {
    width: 250px;
    height: auto;

}

.search-title,
.favorites-title {
    color: rgb(245, 197, 24);
    text-align: center;
    margin: 2rem;
}

.movie-information {
    display: flex;
    justify-content: center;
    align-items: center;

}

.inner-movie-info-card {
    width: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.movie-info-details {
    border: #ffffff solid;
    border-width: 0 0 2px 0;
    margin: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.movie-info-poster {
    margin: 50px;
    width: 350px;
    height: auto;
    box-shadow:
        0 0 20px rgba(245, 197, 24, 0.7),
        0 0 40px rgba(245, 197, 24, 0.7),
        0 0 60px rgba(245, 197, 24, 0.7);
    transition: box-shadow 0.3s;

}

.movie-info-title {
    text-align: center;
    color: var(--text-yellow);
    font-size: 2rem;
}

.movie-info-plot {
    color: var(--primary-white);
    text-align: center;
    font-size: 1.1rem;
}

.movie-info-plot::before {
    content: "Plot: ";
    font-weight: bold;
}

.movie-info-genre::before {
    content: "Genre: ";
    font-weight: bold;

}

.movie-info-year::before {
    content: "Year: ";
    font-weight: bold;
}

.movie-info-runtime::before {
    content: "Runtime: ";
    font-weight: bold;

}

.movie-info-actors::before {
    content: "Actors: ";
    font-weight: bold;

}

.movie-info-director::before {
    content: "Director: ";
    font-weight: bold;
}

.movie-info-writers::before {
    content: "Writers: ";
    font-weight: bold;

}

.movie-info-runtime,
.movie-info-year,
.movie-info-genre,
.movie-info-director,
.movie-info-writers,
.movie-info-actors {
    padding: 10px;
    color: #ffffff;
}

.movie-info-people {
    border: #ffffff solid;
    border-width: 2px 0 0 0;
    margin: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.title-and-star {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

}

.search__message {
    font-size: 2rem;
    color: var(--text-yellow);
}