:root {
    --background: #f0f0f0;
    --text : black;
    --decorbor : #ddd;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--background);
}

body.dark-mode {
    --background : black;
    --text : white;
    --decorbor : #333;
}

header {
    display: flex;
    width: 95%;
    max-width: 1200px;
    justify-self: center;
    align-items: center;
    justify-content: center;
    margin: auto;
    flex-flow: row wrap;
    gap: 10px;
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px 10px 0px 0px;
    border: 1px solid var(--decorbor);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flicker{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-size: 24px;
}


.flicker>img{
    width: 60px;
    height: 60px;
    margin: 0px;
    padding: 0px;

}

#movie-details {
    width: 95%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    margin: 0px auto;
    padding: 20px;
    background-color: var(--background);
    border: 1px solid var(--decorbor);
    border-top: none;
    border-radius: 0px 0px 10px 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bannerTop {
    display: flex;
    flex-direction: row;
    gap: 35px;
}

.movieData {
    display: flex;
}

.cast-member a {
    color: #007bff;
    text-decoration: none;
}

.cast-member a:hover {
    text-decoration: underline;
}

.movieLogoSt {
    color: var(--text);
    justify-self: flex-start;
    margin: 0px;
    font-size: 36px;
    width: 100%;
}

.logo-container {
    width: fit-content;
    border-radius: 8px;
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 7px;
}

.movie-logo {
    max-width: 90%;
    max-height: 100px;
    filter: 
        drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.7))
        drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)) 
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.1))
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)); 
}

.widthOverview {
    max-width: 95%;
    border-top: 1px solid var(--decorbor);
    padding-top: 5px;
    margin-block: 10px;
}

.bannerTop>img {
    width: 30%;
    position: sticky;
    top: 15px;
    max-height: 550px;
    min-width: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    filter: 
        drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.7))
        drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)) 
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.4)); 
    transition: filter 0.3s ease;
}

.bannerTop>img:hover {
    filter: 
        drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.7))
        drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)) 
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.4)); 
}

.infoMovie {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    max-width: 90%;
}

.addInfo {
    margin-block: 5px;
    margin-top: 7px;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-flow: column nowrap;
    gap: 3px;
}

.collection-style {
    color: var(--text);
    font-style: oblique;
    text-decoration: underline;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding-left: 9px;

}

.addInfo img {
    height:240px;
    margin-block: 5px;
    margin-top: 0px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.addInfo h3 {
    margin-top: 5px;
}

.addInfo img:hover {
    transform: scale(1.05);
}

.collection-style:hover {
    color: red;   
}

.collection-style p {
    margin: 0px;
}

.showTitleDiv {
    margin-top: 5px;
    margin-bottom: 0px;
    width: 100%;
    color: var(--text);
    justify-self: flex-start;
    display: flex;
    flex-flow: column;
    gap: 3px;
}

p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text);
}

.meta-item {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row nowrap;
    max-width: fit-content;
    gap: 7px;
}

.ratingSpan {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 2.5px;
}

.ratingSpan svg {
    fill: var(--text); 
}

.tagline {
    font-style: italic;
    font-size: medium;
    font-weight: bold;
    opacity: 0.5;
    margin: 0px;
}

.card-badge {
    background-color: hsla(250, 6%, 20%, 1);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 1.5px 6px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: fit-content;
    user-select: none;
}

.cast-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cast-member {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border-radius: 5px;
    width: 80px;
}

.aligned {
    display: flex;
    align-items: center;
    flex-direction: column;

}

.cast-member img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--decorbor);
    filter: 
        drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.7))
        drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)) 
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.4)); 
    transition: filter 0.3s ease;
}

.cast-member p {
    margin-top: 5px;
    margin-bottom: 0px;
    font-size: 12px;
    color: var(--text);
}

#role {
    justify-self: flex-end;
    margin-bottom: 0px;
}

.serverSelectLabel {
    font-weight: bold;
    margin-right: 10px;
}

#serverSelect {
    padding: 10px;
    border: 1px solid #ccc;
    background-color: var(--background);
    color: var(--text);
    border-radius: 5px;
    width: 200px;
}

.watch-movie {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
    margin-top: 20px;
}

/* Responsive design */

@media (max-width: 900px) {

    body {
        display: flex;
        flex-flow: column wrap;
    }

    header {
        width: 100%;
        box-sizing: border-box;
        padding: 30px;
        margin-top: 0px;
        flex-flow: row wrap;
        gap: 10px;
    }

    #movie-details {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .bannerTop {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .bannerTop>img {
        object-fit: fill;
        position: relative;
        top: 0px;
        width: 90%;
        max-height: 450px;
        margin-bottom: 0px;
        margin-top: 10px;
    }

    .meta-item {
        max-width: 100%;
        justify-content: center;
    }

    .infoMovie {
        width: 90%;
        text-align: center;
    }

    .addInfo {
        justify-content: center;
        align-items: center;
        max-width: 95%;
        flex-wrap: wrap;
    }

    .addInfo img {
        margin-top: 10px;
        height:210px;
    }

    .addInfo h3 {
        margin-top: 5px;
        margin-bottom: 7px;
    }

    .collection-style {
        padding: 0px;
    }

    .serverOptions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    #serverSelect {
        align-self: center;
        justify-self: center;
    }

    .cast-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cast-container {
        gap: 10px;
    }

    .cast-member {
        width: 60px;
    }

    .cast-member img {
        width: 50px;
        height: 50px;
    }

    .cast-member p {
        font-size: 10px;
    }

    .watch-movie {
        height: 350px;
    }
}

@media (max-width: 540px) {
    .movieLogoSt {
        font-size: 28px;
    }

    .movie-logo {
        max-width: 300px;
        max-height: 150px;
    }
    
    .bannerTop>img {
        max-height: 400px;
        width: 81%;
    }

    .flicker>img {
        width: 50px;
        height: 50px;
    }

    .flicker>p{
        font-size: 24px;
    }
    
    p {
        font-size: 14px;
    }

    header {
        padding: 15px;
    }

    .tagline {
        font-size: small;
        margin-bottom: 2px;
    }
    
    .watch-movie {
        height: 300px;
    }
}
