/* Banner */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    margin-bottom: 50px;
    background-image: url("/img/welcome.png");
    background-position: 0px 50px;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-inner-frame {
    flex: none;
    width: 1200px;
}

.banner-title-1 {
    flex: none;
    margin: 20px 10px 20px 10px;
    color: #F8F8F8;
    font-size: 28px;
    font-weight: bold;
    text-align: left;
}

.banner-title-2 {
    flex: none;
    margin: 20px 10px 20px 10px;
    color: #F8F8F8;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}


/* Search Bar */
.search-frame {
    display: flex;
    align-items: center;
    margin: 20px 10px 20px 10px;
}

#searchKeyword {
    flex: none;
    width: 400px;
    height: 26px;
    padding: 10px;
    border: none;
    border-radius: 5px 0px 0px 5px;
    outline: none !important;
    box-shadow: 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    font-size: 16px;
    font-weight: bold;
}

.search-button {
    flex: none;
    width: 60px;
    height: 46px;
    border-radius: 0px 5px 5px 0px;
    background-color: #448899;
    background-image: url(/img/icon_search.png);
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.search-button:hover {
    opacity: 0.8;
}

#categoryFrame {
    display: none;
}

#category { 
    display: grid;
    z-index: 1;
    position: absolute;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    width: 400px;
    height: 162px;
    margin: 0px 0px 0px 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #FFFFFF;
    box-shadow: 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    font-size: 16px;
    cursor: pointer;
}

.select {
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    color: #000000;
}

.select:hover {
    background-color: #E8E8E8;
    color: #448899;
    font-weight: bold;
}

.is-active {
    display: block !important;
}


/* Main Content */
.content-outer-frame {
    display: flex;
    justify-content: center;
}

.content-inner-frame {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 1200px;
}

.content {
    flex: none;
    width: 23%;
    margin: 10px;
    border: 1px solid #c2c0c0;
    border-radius: 5px;
    box-shadow: 0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    font-size: 16px;
    cursor: pointer;
    opacity: 1;
}

.content:hover {
    opacity: 0.8;
}

.content img {
    width: 100%;
    max-width: 100%;
    height: 200px;
    border-radius: 5px 5px 0px 0px;
}

.content-text {
    display: flex;
    padding: 10px;
    color: #757575;
}

.content-text-left {
    flex: none;
    width: 50%;
}

.content-text-right {
    flex: none;
    width: 50%;
    text-align: right;
}

.content-title {
    display: flex;
    position: relative;
    bottom: 43px;
    align-items: center;
    width: 100%;
    height: 40px;
    margin-bottom: -40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    font-weight: bold;
}

.content-title > div {
    margin: 10px;
}

.no-result {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    font-size: 20px;
    text-align: center;
}


/* Loading Effect */
.loading {
    display: flex;
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .3s ease-in;
}

.loading.show {
    opacity: 1;
}

.loading.showInMiddle {
    bottom: 300px;
}

.ball {
    width: 10px;
    height: 10px;
    margin: 5px;
    border-radius: 50%;
    background-color: #448899;
    animation: jump .5s ease-in infinite;
}

.ball:nth-of-type(2) {
    animation-delay: 0.1s;
}

.ball:nth-of-type(3) {
    animation-delay: 0.2s;
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    
    50% {
        transform: translateY(-20px);
    }
}


/* Tablet Devices */
@media(max-width: 1200px) {

    /* Main Content */
    .banner {
        flex-wrap: wrap;
    }

    .banner-inner-frame {
        width: 91%;
    }

    #searchKeyword {
        width: 300px;
    }

    .content-outer-frame {
        margin: 20px;
    }

    .content {
        width: 45%;
    }

    .content img {
        object-fit: cover;
    }

}


/* Mobile Devices */
@media(max-width: 600px) {

    /* Main Content */
    .content {
        width: 90%;
    }

    #searchKeyword {
        width: 210px;
    }

    #category {
        width: 302px;
    }

}