abbr,address,article,aside,audio,b,blockquote,body,canvas,caption,cite,code,dd,del,details,dfn,div,dl,dt,em,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,samp,section,small,span,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,ul,var,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}nav ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}ins{text-decoration:none}ins,mark{background-color:#ff9;color:#000}mark{font-style:italic;font-weight:700}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle}
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@500&display=swap');


.hide {
    display: none!important;
}

body {
    background-color: #eee;
    font-family: 'M PLUS 1p', sans-serif;
}

nav {
    position: fixed;
    width: calc(100vw - 40px);
    height: 30px;
    text-align: right;
    background: #ff7ab1;
    line-height: 30px;
    padding: 0 20px;
    top: 0;
    #sitename {
        float: left;
        color: #1a1a1b;
        .noeffectanchor {
            color: #272727;
            text-decoration: none;
        }
    }
}
nav a, nav a:link, nav a:visited, nav a:hover, nav a:active, nav a:focus {
    color: #542a2a;
}
#main {
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
    #topCategory {
        img {
            margin-top: 20px;
        }
    }
}
footer {
    position: fixed;
    bottom: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    width: 100vw;
    font-size: 12px;
    height: 18px;
    background-color: #eee;
}

#form_login {
    margin: 150px auto;
    width: 280px;
    display: flex;
    flex-wrap: wrap;
    border-radius: 20px;
    background: #fff;
    padding: 40px 20px;
    justify-content: center;
    #login_error {
        display: none;
        margin-bottom: 26px;
        color: #990000;
    }
    #input_username, #input_password {
        width: 210px;
        border: none;
        border-bottom: solid 1px #333;
        &:focus {
            outline: none;
        }
    }
    label {
        display: flex;
        margin-bottom: 30px;
        position: relative;
    }
    .login_icon {
        width: 30px;
        margin-right: 10px;
        display: flex;
        justify-content: center;
    }
    img {
        height: 30px;
    }
    button {
        border: none;
        background: #6fb0e1;
        width: 80%;
        height: 30px;
    }
    button:hover {
        cursor: pointer;
    }
    input:focus+.placeholder {
        color: #111;
        opacity: 1;
        transition: all 300ms 0s ease;
        transform: translateY(-28px);
    }
}
.placeholder {
    position: absolute;
    left: 42px;
    top: 6px;
    color: #999;
    opacity: 0;
}

#page_catalog #main {
    margin-top: 60px;
}
#main {
    header {
        display: flex;
        background: #6fb0e1;
        justify-content: center;
        align-items: center;
        height: 30px;
        position: fixed;
        width: 100%;
        top: 30px;
        .selectbox-2 {
            position: relative;
            display: flex;
            align-items: center;
            &::before, ::after {
                position: absolute;
                content: '';
                pointer-events: none;
            }
            &::before {
                right: 0;
                display: inline-block;
                width: 30px;
                height: 26px;
                border-radius: 0 6px 6px 0;
                background-color: #787878;
                content: '';
            }
            &::after {
                position: absolute;
                top: 48%;
                right: 16px;
                transform: translate(50%, -50%) rotate(45deg);
                width: 6px;
                height: 6px;
                border-bottom: 3px solid #fff;
                border-right: 3px solid #fff;
                content: '';
            }
            select {
                appearance: none;
                height: 26px;
                padding: 1px 36px 1px 4px;
                border: 2px solid #787878;
                border-radius: 6px;
                color: #333333;
                font-size: 1em;
                cursor: pointer;
                &:focus {
                    outline: 1px solid #787878;
                }
            }
        }
    }
}
#page_catalog {
    #message_default {
        margin-top: 100px;
    }
    #message_default li.list_catalog {
        display: inline-block;
        width: 40%;
        max-width: 200px;
    }
    #message_default img {
        height: 120px;
    }
    #title_category {
        background: #ffc800;
        font-size: xxx-large;
        padding: 10px 0;
    }
    #itemHolder img {
        max-width: 100%;
    }
    .itemWrapper {
        max-width: 600px;
        margin: 0 auto;
        text-align: left;
    }
    .itemWrapper .name {
        padding: 10px;
    }
    #itemHolder li {
        cursor: pointer;
        box-shadow: 6px 6px 12px #aaa;
    }
    #itemHolder li+li {
        margin-top: 30px;
    }
}

#page_submit {
    #content {
        margin-top: 100px;
    }
    #description {
        text-align: left;
        margin: 0 auto;
        width: 600px;
        max-width: 100%;
    }
    img {
        width: 600px;
        max-width: 100%;
    }
    #remarks {
        width: 560px;
        max-width: 90%;
    }
    #floatButton {
        position: fixed;
        right: 0;
        width: 50px;
        background: #fff;
        bottom: 120px;
        top: calc(100vh - 100px);
        height: 50px;
        border: solid 5px #00841c;
        border-radius: 30px;
        padding: 0;
    }
    #floatButton img {
        width: 32px;
        margin: 9px;
    }
}

.btn-flat-logo {
    font-weight: bold;
    padding: 0.25em 0.5em;
    text-decoration: none;
    color: #FFF;
    background: #00bcd4;
    transition: .4s;
    cursor: pointer;
    border: none;
    font-size: 24px;
    &:hover {
        background: #1ec7bb;
    }
}
.list_catalog img {
    cursor: pointer;
}

.modalWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none; /* flex */
    align-items: center;
    justify-content: center;
    overscroll-behavior: contain;
    overflow-y: scroll;
    #detailContainer {
        width: calc(98vw - 10px);
        height: 88vh;
        background: #fff;
        border-radius: 10px;
        border: solid #fff 5px;
        overflow-y: scroll;
        img {
            width: 100%;
        }
        #detailClose {
            position: absolute;
            right: 12px;
            background: #eee;
            width: 16px;
            height: 16px;
            border-radius: 12px;
            border: solid #eee 4px;
            line-height: 16px;
        }
        #scrollToSubmitButton {
            margin: 20px 0;
            border: solid 2px #999;
            box-shadow: 2px 2px 2px #333;
            border-radius: 5px;
            width: 260px;
            display: inline-block;
            padding: 10px;
            cursor: pointer;
            background: #ff7ab1;
            &:active {
                border: solid 2px #333;
                box-shadow: -2px -2px 1px #333;
                margin-left: 2px;
                margin-top: 22px;
                margin-bottom: 18px;
                background: #d1608e;
            }
        }
        #detailName {
            padding: 16px 0;
            font-size: larger;
            background: #fff8dc;
        }
        #detailDescription {
            padding: 16px 0;
            text-align: left;
        }
        form {
            text-align: left;
            margin-top: 40px;
            margin-bottom: 40px;
            display: flex;
            flex-wrap: wrap;
            flex-direction: row-reverse;
            label {
                width: 100%;
            }
            textarea {
                width: calc(100% - 6px);
                height: 120px;
                margin-top: 10px;
            }
            button {
                margin-top: 10px;
                font-size: large;
                &:hover {
                    cursor: pointer;
                }
            }
        }
    }
}