@font-face {
    font-family: 'SUITE-Regular';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2304-2@1.0/SUITE-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    min-width: 320px;
}

body{
    padding: 10px;
}

*{
    box-sizing: border-box;
    font-family: 'Cafe24Ohsquareair';
}

.title{
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    color: var(--coral);
    border: 5px solid #ede952;
    height: 50px;
    font-size: 1.5rem;
}

main{
    display: flex;
    flex-flow: row nowrap;
    height: calc(100% - 60px);
    margin-top: 10px;
}

.sidebar{
    display: flex;
    flex-flow: column nowrap;
    width: 150px;;
    flex-shrink: 0;
    border: 5px solid #97bb35;
    padding: 10px;
}

.sidebar > span{
    font-size: 1.5rem;
    margin-top: 10px;
}

.container{
    display: flex;
    flex-flow: row wrap;
    flex: 1;
    border: 5px solid #f3cf43;
    margin-left: 10px;
    align-content: flex-start;
    overflow-y: scroll;
}

.card{
    display: flex;
    flex-flow: column nowrap;
    width: 200px;
    min-height: 150px;
    padding: 10px;
    background-color: #e2a70d;
    margin: 10px;
    border-radius: 10px;
}

.card > img{
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.card > span{
    text-align: center;
    word-break: break-all;
}


.add-button{
    padding: 7px 10px;
    background: #f3cf43;
    color: var(--coral);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.add-button:hover{
    background: var(--coral);
    color: #f3cf43;
}

.submit-button{
    padding: 7px 10px;
    background: var(--beige);
    color: #f3cf43;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-top: 20px;
}

.submit-button:hover{
    background: #e2a70d;
}

.label{
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.input{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    outline: none;
    border: 2px solid var(--beige);
    border-radius: 6px;
}

.input:focus{
    border-color: var(--mint);
}

.modal-background{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10;
}

.modal{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-color: white;
    border-radius: 10px;
    z-index: 11;
    padding: 20px;
}

.modal-close{
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    z-index: 12;
}

.modal-close:hover{
    transform: scale(1.2);
}


@media (max-width: 1000px){
    .card{
        background: #f3cf43;
    }
    .card > span {
        font-size: 1.5rem;
    }
}

@media (max-width: 700px) {
    .card {
        background: #dd540e;
    }
    .card > span {
        font-size: 0.7rem;
    }
}