﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.search {
    margin: 5px;
    width: 100%;
    overflow: hidden;
}

.searchInput {
    width: 20%;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline-style: none;
    background-color: white;
    background-image: url("../images/icon/search.png");
    background-size: 17px 17px;
    background-position: 5px 10px;
    background-repeat: no-repeat;
    padding: 8px 30px 8px 30px;
    -webkit-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
    border: none;
    font-style: italic;
    border-bottom: 1px dashed #0094ff;
    font-family: 'Croissant One', cursive;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .searchInput:focus {
        width: 60%;
        color: #0094ff;
        letter-spacing: 1px;
    }

.remove-search {
    margin-left: -30px;
    color: #0094ff;
    font-size: 15px;
    font-weight: bold;
    padding: 1px 5px 3px 5px;
    border: dashed 1px #d0c5c5;
    transition: 2s;
}

    .remove-search:hover {
        color: red;
        border-color: red;
        cursor: pointer;
    }

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.result-search {
    display: none;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.3); /* Black w/ opacity */
}

    .result-search .search-content {
        font-size: 13px;
        width: 50%;
        height: 96%;
        margin: 1% auto;
        overflow-y: auto;
        -webkit-animation-name: animatetop;
        -webkit-animation-duration: 0.4s;
        animation-name: animatetop;
        animation-duration: 0.4s;
        background-color: #fff;
    }

@media only screen and (min-width: 200px) and (max-width: 700px) {
    
    .result-search .search-content {
        width: 100%;
        font-size: 11px;
    }
        .result-search .search-content .items .search-item .img-search img {
            width: 70px;
            vertical-align: middle;
        }
}

        .result-search .search-content .close-search {
            position: absolute;
            top: 10px;
            left: 75%;
            cursor: pointer;
            padding: 2px 6px;
            background: red;
        }

            .result-search .search-content .close-search:hover {
                background: #0094ff;
                color:white;
            }

        .result-search .search-content .items .search-item {
            margin: 10px 0px;
            display: flex;
            flex-direction: row;
        }

            .result-search .search-content .items .search-item .img-search {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }

                .result-search .search-content .items .search-item .img-search img {
                    width: 100px;
                    vertical-align: middle;
                }

            .result-search .search-content .items .search-item .detail-search {
                margin-left: 5px;
            }

                .result-search .search-content .items .search-item .detail-search p {
                    padding: 3px;
                }

                .result-search .search-content .items .search-item .detail-search .p-s-label {
                    color: red;
                    letter-spacing: 2px;
                    background: #f1f3c1;
                }

                .result-search .search-content .items .search-item .detail-search .p-s-title {
                    font-style: italic;
                }

                .result-search .search-content .items .search-item .detail-search .p-s-price {
                    color: white;
                    background: #64e977;
                    padding-left: 50%;
                }

                .result-search .search-content .items .search-item .detail-search .p-s-add-to-cart {
                    cursor: pointer;
                    color: #64e977;
                    padding-left: 25%;
                    text-decoration: underline;
                    font-weight: bold;
                }

                    .result-search .search-content .items .search-item .detail-search .p-s-add-to-cart:hover {
                        color: #0094ff;
                    }

                .result-search .search-content .items .search-item .detail-search .p-s-buy {
                    cursor: pointer;
                    padding-left: 10%;
                    text-decoration: underline;
                    color: #095265;
                    font-weight: bold;
                }

                    .result-search .search-content .items .search-item .detail-search .p-s-buy:hover {
                        color: #d911ef;
                    }

.notice {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

    .notice .notice-main {
        width: 50%;
        height: 30%;
        margin: 2% auto;
        background: #40b651;
        -webkit-animation-name: animatetop;
        -webkit-animation-duration: 0.4s;
        animation-name: animatetop;
        animation-duration: 0.4s;
    }

        .notice .notice-main .close-notice {
            position: absolute;
            top: 2%;
            right: 25%;
            padding: 2px 6px;
            background: white;
            cursor: pointer;
            color: #0094ff;
        }

            .notice .notice-main .close-notice:hover {
                background: #095265;
            }

        .notice .notice-main .notice-title h3 {
            color: red;
            padding: 10px;
        }

        .notice .notice-main .notice-content p {
            text-align: center;
            background: #095265;
            padding: 10px;
            color: white;
        }

        .notice .notice-main .notice-derection {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
            align-items: flex-end;
            margin-top: 10%;
        }

            .notice .notice-main .notice-derection a {
                text-decoration: none;
                color: yellow;
                padding: 10px;
            }

                .notice .notice-main .notice-derection a:hover {
                    color: #d911ef;
                }

                .notice .notice-main .notice-derection a:last-child {
                    color: #fff;
                }

                    .notice .notice-main .notice-derection a:last-child:hover {
                        color: red;
                    }



.notice-2 {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

    .notice-2 .notice-main-2 {
        width: 50%;
        height: 30%;
        margin: 2% auto;
        background: #40b651;
        -webkit-animation-name: animatetop;
        -webkit-animation-duration: 0.4s;
        animation-name: animatetop;
        animation-duration: 0.4s;
    }

        .notice-2 .notice-main-2 .close-notice-2 {
            position: absolute;
            top: 2%;
            right: 25%;
            padding: 2px 6px;
            background: white;
            cursor: pointer;
            color: #0094ff;
        }

            .notice-2 .notice-main-2 .close-notice-2:hover {
                background: #095265;
            }

        .notice-2 .notice-main-2 .notice-title-2 h3 {
            color: red;
            padding: 10px;
        }

        .notice-2 .notice-main-2 .notice-content-2 p {
            text-align: center;
            background: #095265;
            padding: 10px;
            color: white;
        }

        .notice-2 .notice-main-2 .notice-derection-2 {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
            align-items: flex-end;
            margin-top: 10%;
        }

            .notice-2 .notice-main-2 .notice-derection-2 input[type=button] {
                padding: 10px 15px;
                background: white;
                margin-right: 2%;
                cursor: pointer;
                color: #095265;
            }
