@import 'https://fonts.googleapis.com/css?family=Baloo+Tamma|Creepster|Ewert|Fruktur|Gravitas+One|Lora|Modak|Montserrat|Open+Sans|Rubik+One|Yatra+One';

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: normal;
    background-color: #f9f9f9;
    color: #222;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
    font-weight: normal;
    color: #666;
    margin: 0 0 6px 0;
}

p {
    margin-top: 10px;
}

ins {
    background-color: #FFF9C0;
    text-decoration: none;
}

pre {
    background-color: #F9F9F9;
    font: 1em/1.5 monospace;
    font-size: 14px;
    margin-bottom: 1.625em;
    overflow: auto;
    padding: 0.75em 1.625em;
    border-radius: 4px;
}

h1.center, h1.center a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    font-size: 30px;
    margin-top: 20px;
    text-align: center;
    padding: 10px 0;
}

h3 {
    font-size: 1.7em;
    margin-bottom: 10px;
}

.thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.card a {
    display: block;
    width: 100%;
    height: 100%;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover, a:active, a:focus {
    text-decoration: none;
}

.main {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: transparent;
    padding: 15px 0;
    gap: 16px;
}

.logo {
    font-size: 100%;
    flex: 0 0 auto;
    padding: 10px 0;
    min-width: 160px;
    text-align: left;
}

.header .controls {
    background-color: #e7f2f4;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
}

.controls {
    cursor: default;
    position: static;
    z-index: auto;
    border-radius: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.controls .controls-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}

.controls div {
    margin: 0;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.icon {
    display: block;
    opacity: 1;
    transition: opacity 0.4s ease;
    width: 69px;
    height: 64px;
    cursor: pointer;
}

.content {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.card-image {
    width: 100%;
    padding: 20px;
}

.box {
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 15px;
    background: #FFF;
    border-bottom: solid 3px #eee;
    padding: 20px;
    box-sizing: border-box;
}

.box .card {
    flex: 1 1 min(250px, 100%);
    max-width: 360px;
    min-width: 220px;
    width: 100%;
}

.text-page {
    border-radius: 10px;
    display: block;
    background: #FFF;
    border-bottom: solid 3px #eee;
    padding: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.text-page h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.text-page h2 {
    color: #fb8b73;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid #fb8b73;
    padding-left: 15px;
}

.text-page h3 {
    color: #6AB8C1;
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.text-page p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.text-page ul {
    margin: 15px 0;
    padding-left: 20px;
}

.text-page li {
    margin-bottom: 8px;
    color: #555;
}

.thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1.5;
    width: 300px;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 1.5;
    width: 100%;
}

.thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.banner {
    padding-top: 10px;
    text-align: center;
    width: 100%;
}

.welcome-box {
    font-weight: bold;
    font-size: 20px;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 15px;
    text-align: center;
    color: #ffffff;
    background-color: #fb8b73;
    border-bottom: solid 3px #c6604b;
}

.footer {
    font-size: 16px;
    text-align: center;
    padding: 30px 20px;
    color: #888;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 10px;
    color: #888;
}

.footer nav a {
    color: #6AB8C1;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer nav a:hover {
    color: #1677BD;
}

.social-greetings-card {
    text-align: center;
    border-top: solid 1px #eee;
    padding-top: 10px;
}

.app {
    color: #666;
    font-size: 15px;
    margin: 0;
    height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    background-repeat: repeat-x;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}

#saveSend {
    background-color: #F0F0F0;
    width: 100%;
    height: 100%;
    z-index: 100;
    position: absolute;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#cardImageHolder {
    margin-top: 40px;
}

h5 {
    margin: 0;
    display: block;
    font-size: 0.9em;
    font-weight: bold;
}

@font-face {
    font-family: LuckiestGuy;
    src: url("assets/fonts/LuckiestGuy.ttf");
}

.controls {
    background-color: transparent;
    cursor: default;
    position: static;
    z-index: auto;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: auto;
}

.controls div {
    margin: 0;
    height: auto;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.button {
    user-select: none;
}

.controls .button {
    text-align: center;
    font-size: 13px;
    color: #3b3b3b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 80px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    gap: 6px;
    white-space: nowrap;
}

.controls .button .button-icon {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-flex;
}

.controls .button .button-label {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
}

.controls .button:hover,
.controls .button.hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.controls img {
    margin: 0;
    float: none;
}

li {
    list-style: none;
}

label.customLabel input[type="file"] {
    position: fixed;
    top: -1000px;
}

.customLabel {
    cursor: pointer;
    display: inline-block;
}

.controls .button.disabled {
    opacity: 0.5;
    cursor: default;
}

.controls .button.disabled:hover {
    background: none;
}

#svg-tool image, #svg-tool circle, #svg-tool rect {
    cursor: pointer;
}

#page {
    margin: 5px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    width: 40%;
    height: 90%;
    float: left;
    box-shadow: 0 0 10px rgba(70, 120, 145, 0.8);
    background-size: 100% 100%;
    transform-origin: top left;
    user-select: none;
    top: 100px;
}

#page .selected {
    box-shadow: 0 0 10px rgba(238, 133, 21, 0.8);
}

#page img, #page div, #page svg {
    display: block;
    position: absolute;
}

#svg-tool {
    width: 100%;
    height: 100%;
}

#pageBg {
    display: block;
    width: 100%;
    height: 100%;
}

#inside {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(70, 120, 145, 0.5);
    border-top: 2px solid #1677BD;
    width: 100%;
    height: 180px;
    position: absolute;
    bottom: 0;
    overflow-y: hidden;
    overflow-x: auto;
}

#inside ul {
    padding: 0 80px;
    display: flex;
    gap: 4px;
    margin: 0;
}

#inside ul li {
    width: 116px;
    height: 150px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

#inside ul li.right {
    border-right: 1px solid #91ceef;
    margin-right: 8px;
    padding-right: 11px;
}

#inside ul li div.pagethumb {
    overflow: hidden;
    border: 1px solid #83b6cf;
    position: relative;
    width: 116px;
    height: 150px;
    box-shadow: 0 0 10px rgba(70, 120, 145, 0.3);
    background-size: 100%;
    border-radius: 4px;
}

#inside ul li div.active {
    box-shadow: 0 0 10px rgba(238, 133, 21, 0.8);
}

#inside ul li div.number {
    color: #0373ad;
    font-size: 12px;
    line-height: 11px;
    padding: 0 3px;
}

#inside ul li.left div.number {
    float: left;
}

#inside ul li.right div.number {
    float: right;
}

#inside li img {
    position: absolute;
    top: 10px;
    left: 76px;
}

#inside #toggleButton {
    background: linear-gradient(#5DC0E4, #1677BD);
    border-radius: 10px 10px 0 0;
    width: 120px;
    height: 32px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 32px;
    position: absolute;
    top: -32px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease;
}

#inside #toggleButton:hover {
    opacity: 0.9;
}

.panel {
    left: 20px;
    top: 115px;
    width: 560px;
    height: 230px;
    background: #e5eef8;
    border: 1px solid #bedefe;
    box-shadow: 0 0 10px rgba(70, 120, 145, 0.5);
    border-radius: 10px;
    padding: 18px 20px;
    position: absolute;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

#pageStylePanel {
    height: 388px;
}

#pageStylePanel .pageStyleBackgrounds {
    height: 120px;
}

.pageLayoutThumbnails {
    height: 120px;
}

#textStylePanel {
    width: 340px;
    min-height: 340px;
    overflow: visible;
}

#textStylePanel h5 {
    margin: 18px 0 8px;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #35495e;
}

#textStylePanel .textOptionsContainer {
    margin-top: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#textStylePanel .dropContainer {
    margin-top: 8px;
    width: 100%;
    max-width: 320px;
    font-size: 18px;
    position: relative;
}

#textColorsPanel {
    width: 442px;
    height: auto;
    max-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    gap: 10px;
    justify-items: center;
    position: fixed;
}

#textStylePanel .dropContainer img {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#textStylePanel .dropContainer ul {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    background-color: #fff;
    border: 1px solid #C4DBE3;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    padding: 4px;
    width: 100%;
    max-height: 240px;
    z-index: 99999;
    overflow: auto;
    margin: 0;
}

#textStylePanel .dropContainer .selectedFont {
    background-color: #fff;
    background-image: linear-gradient(to bottom, #fff 0%, #EAF8FF 100%);
    border: 1px solid #B9B4A7;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 10px;
}

.panel .button {
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(70, 120, 145, 0.3);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    padding: 4px 10px 6px;
    position: relative;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s ease;
}

.panel .button.size {
    text-align: center;
    background-color: #92bc0f;
    border: 1px solid white;
    color: #fff;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 28px;
    margin-right: 5px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.panel .button.format {
    background-color: #2d96cb;
    display: inline-block;
    margin-right: 5px;
    padding: 8px 3px;
}

.panel .button.active {
    background-color: #ff5c00;
}

.panel .button b {
    background: url("assets/text_format_icons.png") no-repeat;
    display: block;
    height: 22px;
    width: 32px;
}

#alignLeft b {
    background-position: 0 top;
}

#alignCenter b {
    background-position: -64px top;
}

#alignRight b {
    background-position: -32px top;
}

#formatBold b {
    background-position: -96px top;
}

#formatItalic b {
    background-position: -128px top;
}

.arrow {
    border: 1px solid transparent;
    height: 0;
    position: absolute;
    top: 50px;
    width: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.panel .arrow {
    top: 58px;
}

.arrow.left {
    border-right-color: #51b8e3;
    border-width: 40px 30px 40px 0;
    left: 20px;
}

.arrow.right {
    border-left-color: #51b8e3;
    border-width: 40px 0 40px 30px;
    right: 20px;
}

.panel .arrow.left.slick-disabled,
.panel .arrow.right.slick-disabled {
    opacity: 0.5;
}

#pages .arrow {
    top: 40%;
}

#clipThumbsContainer .arrow.left {
    left: -50px;
    top: 90px;
}

#clipThumbsContainer .arrow.right {
    right: -50px;
    top: 90px;
}

#pageStyleBackgroundsContainer .arrow.left {
    left: -50px;
    top: 15px;
}

#pageStyleBackgroundsContainer .arrow.right {
    right: -50px;
    top: 15px;
}

#pageStylePanel .pageStyleColors {
    width: 100%;
}

.colorCube {
    margin-top: 10px;
    margin-right: 10px;
    display: inline-block;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(70, 120, 145, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.colorCube:hover {
    transform: scale(1.05);
}

#pageStyleBackgroundsContainer, #pageLayoutThumbnailsContainer {
    margin-top: 10px;
    margin-left: 42px;
    width: 480px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#pageLayoutPanel {
    height: auto;
}

.panelThumbnailListButton {
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    width: 80px;
    vertical-align: top;
    transition: transform 0.2s ease;
}

.panelThumbnailListButton:hover {
    transform: scale(1.05);
}

.panelThumbnailListButton img {
    margin-bottom: 5px;
    display: block;
    box-shadow: 0 0 5px rgba(70, 120, 145, 0.5);
    border-radius: 4px;
}

#clipartPanel {
    width: 100%;
    max-width: 620px;
    min-height: 260px;
    padding: 16px;
    box-sizing: border-box;
}

#clipThumbsContainer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 14px;
    justify-items: center;
    align-items: center;
}

#clipThumbsContainer .thumb {
    background-color: #fff;
    width: 100%;
    max-width: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#clipThumbsContainer .thumb:hover {
    box-shadow: 0 6px 18px rgba(70, 120, 145, 0.24);
    transform: translateY(-2px);
}

#clipThumbsContainer .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

textarea {
    background: transparent;
    border: none;
    color: black;
    outline: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
    resize: none;
    font-family: inherit;
}

.text-box {
    padding: 8px;
    cursor: move;
    transition: background-color 0.2s ease;
}

.text-box.active {
    background-color: rgba(193, 193, 193, 0.2);
    outline: 2px dashed;
    outline-offset: 2px;
}

#textDiv {
    position: absolute;
    background-color: #FF0004;
    white-space: pre;
    display: none;
}

.picture-holder-box {
    background-color: #f5f5f5;
    text-align: center;
    position: relative;
    border-radius: 8px;
}

.picture-holder-box .add-picture {
    background-color: rgba(80, 87, 90, 0.6);
    border: none;
    border-radius: 25px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 16px;
    cursor: pointer;
    width: 130px;
    height: 130px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    transition: box-shadow 0.3s ease;
}

.picture-holder-box .add-picture:hover {
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.24), 0 15px 40px rgba(0, 0, 0, 0.19);
}

.picture-holder-box .add-picture img {
    margin-bottom: 10px;
    max-width: 50px;
}

.picture-holder-box .add-picture p {
    margin: 0;
    font-size: 12px;
}

label.add-picture input[type="file"] {
    position: fixed;
    top: -1000px;
}

.default-button {
    background-color: #1eb98f;
    border: none;
    color: white;
    padding: 12px 20px 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 10px;
    border-bottom: 3px solid #127359;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
    min-height: 44px;
    min-width: 44px;
}

.default-button:hover {
    background-color: #20C79A;
}

/* Forms */
select {
    width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

#contact-area {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

#contact-area input, #contact-area textarea {
    padding: 10px;
    width: 100%;
    font-size: 1em;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

#contact-area textarea {
    height: 120px;
    resize: vertical;
}

#contact-area textarea:focus, #contact-area input:focus {
    border: 2px solid #6AB8C1;
    outline: none;
}

#contact-area input.submit-button {
    width: auto;
    align-self: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

td.left {
    width: 80px;
    text-align: left;
    font-size: 1em;
}

#catpcha-area {
    text-align: center;
    margin-top: 15px;
}

.g-recaptcha div {
    margin: 12px auto;
    display: inline-block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main {
        padding: 0 10px;
    }

    h1.center {
        font-size: 24px;
    }

    h3 {
        font-size: 1.3em;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        text-align: center;
        flex: 1 1 100%;
    }

    .social {
        justify-content: center;
        flex: 1 1 100%;
    }

    .box {
        padding: 15px;
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .box .card {
        width: 100%;
        max-width: none;
    }

    .thumb {
        width: 100%;
        max-width: none;
    }

    .app {
        height: auto;
        min-height: 500px;
    }

    #page {
        width: 100%;
        float: none;
        margin: 10px 0;
        top: 80px;
    }

    .controls {
        height: auto;
        gap: 5px;
    }

    .header .controls {
        width: 100%;
        max-width: 100%;
    }

    .controls .button {
        padding: 3px 4px;
        font-size: 12px;
        min-width: 40px;
    }

    .panel {
        left: 5px;
        right: 5px;
        width: calc(100% - 10px);
        height: auto;
        max-height: 70vh;
        padding: 15px;
    }

    #pageStyleBackgroundsContainer, #pageLayoutThumbnailsContainer {
        margin-left: 0;
        width: 100%;
    }

    #inside {
        height: auto;
        min-height: 150px;
    }

    #inside ul {
        padding: 10px;
    }

    #inside ul li {
        width: 100px;
        height: 130px;
    }

    #inside ul li div.pagethumb {
        width: 100px;
        height: 130px;
    }

    #clipThumbsContainer {
        margin-left: 0;
        width: 100%;
    }

    #clipThumbsContainer .arrow.left {
        left: auto;
    }

    #clipThumbsContainer .arrow.right {
        right: auto;
    }

    #textStylePanel .dropContainer {
        width: 100%;
    }

    #textStylePanel .dropContainer ul {
        width: 100%;
    }

    #contact-area input, #contact-area textarea {
        width: 100%;
    }

    .welcome-box {
        font-size: 18px;
        padding: 20px;
    }

    .footer {
        font-size: 16px;
        padding: 15px 20px;
    }

    .text-page {
        padding: 15px;
        max-width: none;
    }

    .text-page h1 {
        font-size: 2em;
    }

    .text-page h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 0 5px;
    }

    h1.center {
        font-size: 18px;
        margin-top: 10px;
    }

    .box {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
    }

    .thumb {
        width: 100%;
        max-width: none;
    }

    .controls .button {
        font-size: 10px;
        padding: 2px;
        min-width: 36px;
    }

    #page {
        top: 60px;
        min-height: 300px;
    }

    .panel {
        left: 2px;
        right: 2px;
        width: calc(100% - 4px);
    }

    #inside ul li {
        width: 80px;
        height: 110px;
    }

    #inside ul li div.pagethumb {
        width: 80px;
        height: 110px;
    }

    #clipThumbsContainer .thumb {
        width: 60px;
        height: 60px;
    }

    .welcome-box {
        font-size: 16px;
        padding: 15px 10px;
    }

    .footer {
        font-size: 14px;
        padding: 10px 15px;
    }

    .default-button {
        padding: 8px 12px 6px 12px;
        font-size: 12px;
    }

    .text-page h1 {
        font-size: 1.8em;
    }

    .text-page h2 {
        font-size: 1.3em;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .controls .button:hover,
    .bookshelf .thumb:hover {
        transform: none;
    }

    .controls .button,
    .default-button,
    .icon {
        min-height: 48px;
        min-width: 48px;
    }
}

#copyToClipboardDialog{
	text-align: center;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	height: 100%;
	z-index: 1000;
}

#copyToClipboardDialog p{
	color: white;
	font-size: 30px;
}