:root{
    --bg:#0B0F1A;
    --bg-secondary:#111827;

    --card:#0C0F1B;
    --card-light:#191C2C;

    --primary:#7C3AED;
    --primary-hover:#8B5CF6;

    --text:#F8FAFC;
    --text-secondary:#B4BDD2;

    --border:#191A2D;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    min-height: 100vh;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(to bottom right, var(--bg) 0%, var(--bg-secondary) 100%);
}

#headlineArea {
    display: flex;
    flex-direction: column;
}

#firstHeadline {
    font-family: "Inter";
    font-weight: 800;
    margin-bottom: 0px;
    color: var(--text);
    text-shadow: 2px 2px 10px rgb(253, 253, 253);;
}

#secondHeadline {
    font-family: "Inter";
    font-weight:100;
    opacity: 1;
    font-size: medium;
    color: var(--text-secondary);
    word-spacing: 0.3px;
    margin-bottom: 30px;
}

#wordSearch {
    color: var(--primary);
    text-shadow: 2px 5px 10px var(--primary);
}

#searchArea {
    display: flex;
    justify-content: center;
    gap: 10px
}

#seriesInput {
    width: 500px;
    height: 45px;
    background-color:#0B0F1A;
    border: #311660 solid 1px;
    border-radius: 7px;
    color: aliceblue;
    font-family: "Inter";
    font-weight: 400;
    font-size: medium;
    padding-left: 10px;
    box-shadow: 1px 1px 10px var(--border);
    outline: none;
}

#seriesInput::placeholder {
    color: azure;
    opacity: 0.5;
    font-family: "Inter";
    font-size: 15px;
    font-weight: 400;
}

#searchBtn {
    width: 90px;
    background-color: var(--primary);
    border: none;
    border-radius: 10px;
    color: aliceblue;
    font-family: "Inter";
    font-size: 15px;
    font-weight: 600;
    box-shadow: 2px 2px 15px 0px var(--primary);
}

#example {
    color: var(--text-secondary);
    font-family: "Inter";
    font-size: 12px;
    word-spacing: 2px;
}

#result {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

#seriesCard {
    width: 850px;         
    height: 350px;
    background-color: var(--card);
    display: flex;
    border: var(--border) 1px solid;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

#seriesImage {
    width: 200px;
    height: 300px;
    border-radius: 10px;
}

#imageArea {
    width: 250px;
    height: 350px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mainCard {
    display: flex;
    flex-direction: column;
    text-align: left;
}


#seriesDescription {
    flex: 1 1 auto;        
    height: 180px;           
    overflow: auto;  
    font-family: "Inter", sans-serif;
    color: var(--text-secondary);
    font-size: 15px;
    opacity: 0.7;
    position: relative;
    top: -20px;
    border-bottom: var(--border) 1px solid;
    border-radius: 10px;
    padding: 8px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}


#dateAndEpisodes {
    display: flex;
    gap: 15px;
    position: relative;
    top: -20px;
    color: var(--text-secondary);
    font-family: "Inter";
    font-size: 13px;
    font-weight: 500;
}

#seriesDate {
    background-color: var(--card-light);
    width: 135px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
}

#averageRunTime {
    background-color: var(--card-light);
    width: 115px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
}

#seriesName {
    color: var(--text);
    font-family: "Inter";
    font-size: 40px;
    margin-top: 25px;
    font-weight: 700;
}

#ratingAndGenres {
    display: inline-flex;
    color: var(--text-secondary);
    font-family: "Inter";
    margin-bottom: 25px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    
}

#seriesRating {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 200px;
    height: 100px;
    gap: 30px;
}

#seriesGenres {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 100px;
    gap: 25px;
    border-left: var(--border) 1px solid;
}

#genresImageArea,
#ratingImageArea {
    min-height: 80px;
    min-width: 80px;
    background-color: var(--card-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#textGenres {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#textRating {
    display: flex;
    flex-direction: column-reverse;
}

#rating {
    font-size: 50px;
    color: var(--text);
}

#wordRating {
    color: var(--text-secondary);
    opacity: 0.7;
}

#wordGenres {
    color: var(--text-secondary);
    opacity: 0.7;
}

#genres {
    color: var(--text);
}

#episodesImage,
#dateImage {
    width: 20px;
    height: 20px;
}

#genresImage,
#ratingImage {
    width: 40px;
    height: 40px;
}

#errorMsg {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Inter";
    border-radius: 5px;
    color: var(--text);
    font-size: 12px;
    width: 150px;
    height: 30px;
    background-color: rgb(76, 4, 4);
    border: rgb(76, 4, 4) 1px solid;
    box-shadow: 2px 2px 15px 0px rgb(76, 4, 4);;
}

#loadingMsg {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Inter";
    border-radius: 5px;
    color: var(--text);
    font-size: 12px;
    width: 150px;
    height: 30px;
    background-color: var(--card-light);
    border: var(--border) 1px solid;
    box-shadow: 2px 2px 15px 0px var(--border);
}