@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Sunflower:wght@300&display=swap");


/* 기본 CSS */
html {
    overflow-x: hidden;
}

body {
    background-color: #222529;
}


/* 헤더 (로고, 카테고리, 검색) */
/* 검색창 라인 */
.searchbar {
    display: block;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;

    padding: 10px 20px 20px 20px;
}

.container-fluid {
    margin-bottom: 10px;
}

/* 로고 a 태그 */
.navbar-brand {
    flex: 3;
}

/* 카테고리 기능 */
.category_box {
    flex: 0.5;
    margin-right: 2%;
}

/* 검색 기능 */
.d-flex {
    flex: 1.5;
}

#searchInput {
    height: 40px;
}

#searchBtn {
    width: 80px;
}



/* 메인 슬라이드 */
.movie_slide {
    width: auto;
    height: auto;
    padding: 3% 5% 3% 5%;
    /* border-bottom: 1px solid white; */
    background-color: #222529;

    margin-top: 0px;
    margin-left: 220px;
    margin-right: 220px;
}

.slide {
    border: 20px solid white;
    border-radius: 20px;
    width: auto;
    max-width: 1080px;
    margin: 0 auto 0 auto;
    background-color: black;
}

.carousel-item>img {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: cover;
}

.carousel-caption {
    text-shadow: 0px 0px 10px black;
    font-size: 2em;
}



/* 카드 슬라이드 */
.card {
    width: 285px;
    height: 450px;

    padding: 20px 5px 20px 5px;
    border-radius: 10px;
}

.movieCard_wrapper {
    position: relative;
    width: 100vw;
    height: 450px;
    margin: 0 auto 50px auto;
    padding: 0 auto 0 auto;
    overflow: hidden;
}

.movieCards {
    position: absolute;
    left: 0;
    top: 0;
}

.movieCards.animated {
    transition: left 0.5s ease-out;
}

.movieCards>li:not(:last-child) {
    float: left;
    margin-right: 15px;
}

.controls {
    text-align: center;
}

.controls>span.prev {
    right: calc(97%);
}

.controls>span.next {
    left: calc(97%);
}

.controls>span {
    position: absolute;
    padding: 10px 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: black;
    opacity: 0.5;
    cursor: pointer;
}



/* 검색 결과 카드 */
#movieCard {
    display: flex;
    flex-direction: row;
    align-self: stretch;
    justify-content: space-evenly;
    flex-flow: wrap;

    background-color: #222529;
}

.search_result_link {
    text-decoration: none;
    color: black;
}

.search_cards {
    background-color: white;
    width: 18rem;
    padding: 15px;
    height: auto;
    border-radius: 10px;
}

.search_result {
    display: block;
    margin: 1%;
}

.card_title {
    font-weight: bold;
    font-size: 20px;
    margin-top: 5%;
}

.score {
    font-weight: bold;
    font-size: 15px;
    margin-top: 5%;
}