@font-face {
    font-family: 'Rubik-Black';
    src: url('../asset/font/Rubik-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'M PLUS Rounded 1c -Light';
    src: url('../asset/font/MPLUSRounded1c-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'SairaSemiCondensed-Black';
    src: url('../../asset/font/SairaSemiCondensed-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'Quicksand-Light';
    src: url('../asset/font/Quicksand-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Quicksand-Regular';
    src: url('../asset/font/Quicksand-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Quicksand-Bold';
    src: url('../asset/font/Quicksand-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Quicksand-Medium';
    src: url('../asset/font/Quicksand-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'WorkSans-Regular';
    src: url('../asset/font/WorkSans-Regular.ttf') format('truetype');
}

html, body {
    height: 100%;
    min-width: 320px;
}
img {
	pointer-events: none;
}
body {
    background-color: #FAF4E7;
    display: flex;
    flex-direction: column;
}
header {
    background-color: #E76166;
    padding-bottom: 20px;
}
#puppy-header{
  position: absolute;
  right:20px;
  top:20px;
}
#puppy-header img{
  height: 22px;
}

#brand-logo {
    color:#A0081A;
    font-family: 'SairaSemiCondensed-Black';
    font-size: 20px;
    padding: 0 12px;
    margin: 8px 12px 0;
    display: block;
    white-space: nowrap;
    text-decoration: none;
}
#brand-logo img {
    width:24px;
    height:34px;
    vertical-align: text-bottom;
    margin-right: 6px;
}

#title {
    margin: 4px 40px 0;
    display:flex;
    align-items: center;
    column-gap: 16px;
}
#title h1 {
    font-family: "Rubik-Black";
    color:#FFD5A4;
    font-size: 50px;
    line-height: 1em;
    letter-spacing: -2px;
    white-space: nowrap;
    margin:0;
}
#title .first-large {
    display: inline-block;
    font-size: 36px;
}
#title .first-large::first-letter {
    font-size: 50px;
}
#title h2 {
    font-family: 'Quicksand-Light';
    font-size: 16px;
    line-height: 1em;
    color:#fff;
    margin:0;
}

#modal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(2px);
    background-color: rgb(0 0 0 / 20%);
    justify-content: center;
    align-items: center;
    z-index:999;
}
.dialog {
    background-color: #FAF4E7;
    border: 2px solid #efdebb;
    min-width: 320px;
    margin: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.dialog p.title {
    color: #A0081A;
    text-align: center;
    font-family: "Rubik-Black";
    font-size: 2em;
    margin: 0 0 16px 0;
}
.dialog p.message {
    margin: 0 0 16px 0;
}

#workspace {
    background-color: #E76166;
    z-index: 1;
    text-align: center;
    padding-top: 20px;
    position: relative;
}
#workspace .container {
    display: inline-block;
    position: relative;
    width:568px;
    z-index:1;
}
#multiplepdf {
    width: 104px;
    height: 72px;

    position: absolute;
    left: 0;
    top: 140px;
    bottom: 0;
    margin: auto 0;
    z-index: 2;
}
#singlepdf {
    width: 92px;
    height: 104px;

    position: absolute;
    right: 0;
    top: 140px;
    bottom: 0;
    margin: auto 0;
    z-index: 2;
}

#puppy {
    width: 420px;
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-left: -40px;
}
#puppy-top {
    height: 202px;
    width: 420px;
    object-fit: cover;
    object-position: top left;
    margin-bottom: -1px;
    z-index: 1;
}
#puppy-bottom {
    height: 204px;
    width: 420px;
    object-fit: cover;
    object-position: bottom left;
    margin-bottom: -77px;
}
#puppy-body {
    position: relative;
    height: 0;
    background-image: url(../asset/puppy_w02.svg);
    background-repeat: repeat-y;
    background-position: right top;
    background-size: 632px 118px;
    width: 684px;
    padding: 0 100px 0 136px;
    display:flex;
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 24px;
/*    transition: all 0.5s 0s ease;*/
    overflow: hidden;
    z-index: 1;
}

#balloon {
    width: 236px;
    height: 152px;
    background-image: url(../asset/balloon.svg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Quicksand-Light';
    padding-bottom: 4px;
    margin: 0 auto;
    position: absolute;
    left: -568px;
    right: 0;
    top: 0;
}
#balloon p {
    margin: 0;
    color: #468B9D;
    font-size: 24px;
    line-height: 1em;
}
#balloon p:nth-child(2) {
    font-size: 16px;
    margin-bottom: 4px;
}
#chooseFileButton {
    color: white;
    background-color: #8EB8C3;
    font-family: 'Quicksand-Regular';
    font-size: 14px;
    border: none;
    border-radius: 12px;
    padding: 8px 20px;
    z-index: 1;
}
#chooseFileButton:hover {
    box-shadow: 0px 0px 8px #8EB8C3;
}
#chooseFileButton:active {
    box-shadow: none;
}

#bottom-space {
    background-color: #FAF4E7;
    flex-grow: 1;
    text-align: center;
    padding-bottom: 16px;
}
#mergeButton {
    color: white;
    background-color: #4BB4AA;
    font-family: 'M PLUS Rounded 1c -Light';
    font-size: 28px;
    letter-spacing: 4px;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    margin-top: 32px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}
#mergeButton:disabled {
    background-color: #C5E1D5;
    font-size: 14px;
    letter-spacing: 4px;
    border-radius: 24px;
    padding: 12px 20px;
}
#mergeButton:hover {
    filter: drop-shadow(0 0 4px #4BB4AA);
}
#mergeButton:active {
    filter: none;
}
#mergeButton:disabled:hover {
    box-shadow: none;
}

#bottom-space h2 {
    font-family: "Quicksand-Light";
    font-weight: normal;
    font-size: 35px;
    color:#C76F79;
    margin: 3em 0 1em 0;
    line-height:1.25em;
}
#description {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    color:#A0081A;
    column-gap: 3em;
}
#description>div {
    width: 304px;
}
#benefit_pict_easy {
    width:43px;
    height:62px;
}
#benefit_pict_secure {
    width:50px;
    height:54px;
    margin: 4px 0;
}
#description h3 {
    font-family: "Quicksand-Bold";
    font-weight: bold;
    font-size: 24px;
    margin: 4px 0 0 0;
}
#description .text {
    text-align: left;
    font-family: 'Quicksand-Medium';
    font-size: 13px;
}

footer {
    background-color: #FAF4E7;
    text-align: center;
    color:#A0081A;
    padding-bottom: 2em;
    margin-top: 4em;
}
footer p {
    margin:0;
}
footer p:first-child {
    font-family: 'Quicksand-Light';
    font-size: 18px;
    padding: 0 40px;
}
#copyright {
    font-family: 'SairaSemiCondensed-Black';
    font-size: 24px;
    margin: 8px 0 0 0;
    line-height: 1em;
    text-decoration: none;
    color:#A0081A;
    display: inline-block;
}
footer nav {
    font-family: 'WorkSans-Regular';
    font-size: 11px;
    display: flex;
    justify-content: center;
    column-gap: 8px;
}
footer nav a {
    color: #A0081A;
}

.file {
    display:none;
    text-align: center;
    width: 80px;
    height: 118px;
    position: relative;
}
.file img {
    border-radius: 8px;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.25));
    position: absolute;
    top: 6px;
    bottom: 24px;
    left: 0;
    right: 0;
    margin: auto;
}
.file p {
    font-size: 12px;
    line-height: 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    color: white;
    word-break:break-all;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 24px;
    margin: 0;
}
.file img.delete {
    top: 2px;
    right: 2px;
    bottom: unset;
    left: unset;
    display: none;
    width:12px;
    height:12px;
    filter: none;
    pointer-events:auto;
}
.file.hover img.delete {
    display: block;
}
.file img.delete:hover {
    width: 16px;
    height: 16px;
    top: 0;
    right: 0;
}
.file img.delete:active {
    width: 14px;
    height: 14px;
    top: 1px;
    right: 1px;
}

#canvas, #input_file {
    display: none;
}

#puppy.big {
    width: 684px;
    margin-left: 0;
    margin-top: 40px;
}
#puppy.big #puppy-top {
    height: 168px;
    width: 684px;
}
#puppy.big #puppy-body {
    visibility: visible;
    height:auto;
    min-height: 118px;
}
#puppy.big #puppy-bottom {
    margin-bottom: -57px;
    height: 108px;
    width: 684px;
}
#workspace.big #balloon {
    z-index:1;
}
#workspace.big .container {
    width:684px;
}

/*
#puppy-anime {
    display:none;
    width: 100%;
    height: 386px;
    margin-bottom: -57px;
}
.to-big {
    animation: to-big 0.4s 1 ease;
}
.to-small {
    animation: to-small 0.4s 1 ease;
}
@keyframes to-big {
    0%{
        width: 420px;
    }
    100%{
        width: 684px;
    }
}
@keyframes to-small {
    0%{
        width: 684px;
    }
    100%{
        width: 420px;
    }
}
*/
@keyframes dragover {
    0%{
        margin-bottom: -1px;
        margin-top: 0px;
    }
    100%{
        margin-bottom: -9px;
        margin-top: 8px;
    }
}
.dragover {
    animation: dragover 0.2s infinite;
}

.zoom-out {
    transition: 1s;
    opacity: 0;
}
@media screen and (max-width: 800px) {
    header {
        padding-bottom: 32px;
    }
    #title {
        align-items: flex-start;
        flex-direction: column;
        margin: 8px 24px 0;
    }
    #title h1 {
        line-height: 40px;
        white-space: break-spaces;
    }
    #puppy {
        margin-top: 40px;
    }
    #puppy.big {
        margin-top: 80px;
    }
    #balloon {
        left: 8px;
        right: auto;
        z-index: 1;
    }
}
@media screen and (max-width: 684px) {
    #workspace.big .container, #puppy.big {
        width:548px;
    }
    #puppy.big {
        margin-top: 80px;
    }
    #puppy.big #puppy-top {
        width:548px;
        height:134px;
    }
    #puppy.big #puppy-bottom {
        width: 548px;
        height: 86px;
        margin-bottom: -46px;
    }
    #puppy-body {
        width: 548px;
        background-size: 506px;
        padding: 0px 80px 0px 108px;
    }
}
@media screen and (max-width: 580px) {
    #workspace .container {
        width:454px;
    }
    #puppy {
        width:336px;
        margin-top: 64px;
    }
    #puppy-top, #puppy-bottom {
        width: 336px;
        height: 162px;
    }
    #puppy-bottom {
        margin-bottom: -62px;
    }
    #multiplepdf {
        width: 76px;
        height: 53px;
        top: 180px;
    }
    #singlepdf {
        width: 76px;
        height: 86px;
        top: 180px;
    }
}
@media screen and (max-width: 548px) {
    #workspace.big .container, #puppy.big {
        width: 396px;
    }
    #puppy.big {
        margin-top: 104px;
    }
    #puppy.big #puppy-top {
        width: 396px;
        height: 97px;
    }
    #puppy.big #puppy-bottom {
        width: 396px;
        height: 63px;
        margin-bottom: -33px;
    }
    #puppy-body {
        width: 396px;
        background-size: 366px;
        padding: 0 40px 0 60px;
    }
}
@media screen and (max-width: 460px) {
    #workspace .container {
        width: 398px;
    }
    #puppy {
        width: 294px;
        margin-left: -28px;
        margin-top: 80px;
    }
    #puppy-top, #puppy-bottom {
        width: 294px;
        height: 141px;
    }
    #puppy-bottom {
        margin-bottom: -54px;
    }
    #multiplepdf {
        width: 72px;
        height: 50px;
        top: 218px;
    }
    #singlepdf {
        width: 64px;
        height: 72px;
        top: 218px;
    }
}

@media screen and (max-width: 420px) {
    #workspace .container {
        width:318px;
    }
    #puppy {
        width: 236px;
        margin-left: -20px;
        margin-top: 104px;
    }
    #puppy-top, #puppy-bottom {
        width: 236px;
        height: 114px;
    }
    #puppy-bottom {
        margin-bottom: -44px;
    }
    #balloon {
        z-index: auto;
        right:0;
    }
    #workspace.big #balloon {
        z-index: auto;
    }
    #workspace.big .container, #puppy.big {
        width:314px;
    }
    #puppy.big #puppy-top {
        width:314px;
        height: 77px;
    }
    #puppy.big #puppy-bottom {
        width: 314px;
        height: 50px;
        margin-bottom: -26px;
    }
    #puppy-body {
        width: 314px;
        background-size: 290px;
        padding: 0 33px 0 48px;
    }
}


@media screen and (max-width: 720px) {
    #bottom-space h2 {
        margin-left:80px;
        margin-right:80px;
    }
    #description {
        flex-direction: column;
        align-items: center;
    }
    #description>div {
        width: auto;
        padding: 0 80px;
    }
}

@media screen and (max-width: 600px) {
    #bottom-space h2 {
        margin-left:64px;
        margin-right:64px;
    }
    #description>div {
        padding: 0 64px;
    }
}
@media screen and (max-width: 400px) {
    #bottom-space h2 {
        margin-left:40px;
        margin-right:40px;
        font-size: 28px;
    }
    #description>div {
        padding: 0 40px;
    }
}
