﻿.modal-backdrop {
    display: none !important;
}

.mud-nav-link {
    text-decoration: none !important; /* remove underline */
    color: white !important; /* force white text */
}

.white-text {
    color: white !important;
}


body {
    background: #000;
    overflow: hidden;
    touch-action: none;
    height: 100dvh; /* ✅ Ensures full visible height on iOS */
}

.appwrap {
    aspect-ratio: 4 / 3;
    max-width: 100vw;
    max-height: 100dvh; /* ✅ Fixes the iOS bottom cut issue */
    overflow: hidden;
    margin: auto;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom); /* ✅ Avoids home-bar overlap */
    padding-top: env(safe-area-inset-top);
    box-sizing: border-box;
}

.mainwrap {
    background: url("images/stage/login_bg.png") no-repeat top center;
    background-size: cover;
    position: relative;
    width: 100%;
    height: 100%;
}

    .mainwrap .top {
        height: 20%;
        position: relative;
        overflow: visible;
    }

        .mainwrap .top::before {
            content: "";
            background: url("images/stage/head_design.png") no-repeat top;
            background-size: 100%;
            position: absolute;
            width: 100%;
            top: 0;
            bottom: 0;
            z-index: 5;
        }

        .mainwrap .top::after {
            content: "";
            background: url("images/stage/curtain_top.png") no-repeat top center;
            background-size: 100%;
            position: absolute;
            width: 100%;
            top: 20%;
            bottom: -40%;
            z-index: 4;
        }

        .mainwrap .top ul {
            position: relative;
            z-index: 6;
            padding: 0.5rem;
            margin: 0;
        }

            .mainwrap .top ul li {
                list-style: none;
                display: inline-block;
            }

    .mainwrap .mid {
        height: 80%;
        position: relative;
    }

        .mainwrap .mid::before {
            content: "";
            background: url("images/stage/curtain_left.png") no-repeat top left;
            background-size: cover;
            position: absolute;
            width: 20%;
            top: -10%;
            bottom: 0;
            left: 0;
            z-index: 3;
        }

        .mainwrap .mid::after {
            content: "";
            background: url("images/stage/curtain_right.png") no-repeat top right;
            background-size: cover;
            position: absolute;
            width: 20%;
            top: -10%;
            bottom: 0;
            right: 0;
            z-index: 3;
        }

    .mainwrap .content {
        padding: 0 20%;
        height: 100%;
        background: url("images/stage/img_stage.png") no-repeat bottom center;
        background-size: 100%;
    }

        .mainwrap .content h3 {
            text-align: center;
        }

            .mainwrap .content h3 img {
                width: auto;
                height: 10%;
                max-height: 140px;
                margin-top: -40px;
            }

    .mainwrap.submit .mid::before, .mainwrap.submit .mid::after {
        content: none;
    }

    .mainwrap.submit .content {
        padding: 0 5%;
        height: 100%;
        background: transparent;
    }

    .mainwrap .char-wrap {
        width: 100%;
        position: absolute;
        bottom: 0;
        text-align: center;
    }

        .mainwrap .char-wrap img {
            width: 14%;
            margin: 0 2%;
        }

            .mainwrap .char-wrap img:nth-child(even) {
                transform: translateY(-20%);
            }

.subwrap {
    background: url("images/stage/sub_bg.png") no-repeat top center;
    background-size: cover;
    position: relative;
    width: 100%;
    height: 100%;
}

    .subwrap .top {
        height: 15%;
        position: relative;
        overflow: visible;
    }

        .subwrap .top::before {
            content: "";
            background: url("images/stage/bg-subhead.png") no-repeat top;
            background-size: 100%;
            position: absolute;
            width: 100%;
            top: 0;
            bottom: 0;
            z-index: 5;
        }

        .subwrap .top ul {
            position: relative;
            z-index: 6;
            padding: 0.5rem;
            margin: 0;
        }

            .subwrap .top ul li {
                list-style: none;
                display: inline-block;
            }

            .subwrap .top ul.sub-options {
                position: absolute;
                right: 2rem;
                top: 3.5rem;
            }

        .subwrap .top h3 {
            position: relative;
            z-index: 5;
            margin-top: -4rem;
            text-align: center;
        }

            .subwrap .top h3 img {
                width: 32%;
            }

    .subwrap .content {
        position: relative;
        z-index: 7;
        padding: 0;
        height: 75vh;
    }

        .subwrap .content h3 {
            text-align: center;
        }

            .subwrap .content h3 img {
                width: 40%;
                height: 10%;
                max-height: 160px;
                margin-top: -20px;
            }

        .subwrap .content .creation-content {
            padding: 1rem 2.4rem;
            overflow: auto;
            height: 70vh;
        }

            .subwrap .content .creation-content .melody-group {
                padding-bottom: 2rem;
            }

                .subwrap .content .creation-content .melody-group .noteline {
                    background: url("images/note-line.png") no-repeat;
                    background-size: contain;
                }

                    .subwrap .content .creation-content .melody-group .noteline .crea-beat {
                        padding: 0.2rem 3.2rem;
                    }

                    .subwrap .content .creation-content .melody-group .noteline .label {
                        padding: 0.5rem 2rem 2rem;
                        display: flex;
                        gap: 2rem;
                    }

                        .subwrap .content .creation-content .melody-group .noteline .label input {
                            background: rgba(231, 111, 68, 0.3);
                            border: 1px solid rgba(231, 111, 68, 0.6);
                            box-shadow: none !important;
                            width: 100%;
                        }

                            .subwrap .content .creation-content .melody-group .noteline .label input:focus, .subwrap .content .creation-content .melody-group .noteline .label input:focus-visible, .subwrap .content .creation-content .melody-group .noteline .label input:active {
                                border: 1px solid #e76f44 !important;
                                box-shadow: none !important;
                            }

                        .subwrap .content .creation-content .melody-group .noteline .label p {
                            width: 100%;
                            margin: 0;
                            font-size: 1.5rem;
                        }

                .subwrap .content .creation-content .melody-group:last-child .noteline {
                    background: url("images/note-line-end.png") no-repeat;
                    height: 120px;
                    background-size: contain;
                }

.form-control::placeholder {
    color: #9A9A9A;
    font-size: 1.25rem;
}

.form-control:hover {
    border-color: #E76F44;
}

.form-control:focus {
    border-color: #1C7FC2;
    box-shadow: none;
}

.btn {
    width: 100%;
    border-radius: 1rem;
    height: 4rem;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.btn-small {
    border-radius: 0.75rem;
    height: 2.8rem;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
}

.btn-xsmall {
    border-radius: 0.75rem;
    height: 2.4rem;
    font-size: 1rem;
    padding: 0.3rem 1rem;
}

.btn-blue {
    background-color: #1C7FC2;
    border: 1px solid #FFF;
    color: #FFF;
}

    .btn-blue:hover {
        border-color: #0E4061;
        background-color: #145988;
        color: #FFF;
    }

.btn-pink {
    background-color: #ED909C;
    color: #FFF;
}

    .btn-pink:hover {
        border-color: #DC2239;
        background-color: #E76474;
        color: #FFF;
    }

.btn-gray {
    background-color: #B9B9B9;
    color: #434343;
}

    .btn-gray:hover {
        border-color: #9A9A9A;
        background-color: #6E6E6E;
        color: #FFF;
    }

.btn-circred {
    padding: 0.5rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    border-radius: 999px;
    border: 2px solid #FFF;
    background: #e76474;
    background: linear-gradient(90deg, #e76474 0%, #ed909c 100%);
    transition: all 100ms linear;
}

    .btn-circred:hover {
        background: linear-gradient(90deg, #ed909c 0%, #e76474 100%);
        transform: translateY(-2px);
        box-shadow: #E76474 0 2px 2px;
    }

.ico {
    display: block;
    width: 30px;
    height: 30px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
}

.ico-back {
    background-image: url("images/icon/icon-back.png");
}

.ico-home {
    background-image: url("images/icon/icon-home.png");
}

.ico-help {
    background-image: url("images/icon/icon-help.png");
}

.ico-refresh {
    background-image: url("images/icon/icon-refresh.png");
}

.ico-play {
    background-image: url("images/icon/icon-play.png");
}

.ico-save {
    background-image: url("images/icon/icon-save.png");
}

.ico-share {
    background-image: url("images/icon/icon-share.png");
}

.ico-stop {
    background-image: url("images/icon/icon-stop.png");
}

.btn-circblue {
    width: 50px;
    height: 50px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    border-radius: 999px;
    border: 2px solid #FFF;
    background: #e76474;
    background: linear-gradient(90deg, #e76474 0%, #ed909c 100%);
    transition: all 100ms linear;
    background: #1c7fc2;
    background: linear-gradient(90deg, #1c7fc2 0%, #8dbfe1 100%);
}

    .btn-circblue span.ico {
        width: 24px;
        background-size: contain;
    }

    .btn-circblue:hover {
        background: linear-gradient(90deg, #ed909c 0%, #e76474 100%);
        transform: translateY(-2px);
        box-shadow: #E76474 0 2px 2px;
    }

    .btn-circblue:hover {
        background: linear-gradient(90deg, #8dbfe1 0%, #1c7fc2 100%);
        box-shadow: #1C7FC2 0 2px 2px;
    }

.btn-openfile {
    aspect-ratio: 1/1;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    border-radius: 999px;
    border: 2px solid #FFF;
    background: #e76474;
    background: linear-gradient(90deg, #e76474 0%, #ed909c 100%);
    transition: all 100ms linear;
    border-radius: 2rem;
    margin: 1rem auto 0;
    width: 80%;
    aspect-ratio: 1/1;
}

    .btn-openfile:hover {
        background: linear-gradient(90deg, #ed909c 0%, #e76474 100%);
        transform: translateY(-2px);
        box-shadow: #E76474 0 2px 2px;
    }

    .btn-openfile .ico-openfile {
        background-image: url("images/icon/ico-notelink.png");
        background-size: 80%;
        background-repeat: no-repeat;
        background-position: center;
        width: 80%;
        aspect-ratio: 1/1;
        display: block;
    }

.preloader-wrap {
    text-align: center;
    color: #FFF;
    font-size: 1.5rem;
    padding-top: 30%;
}

    .preloader-wrap .preloader {
        background: url("images/preloader.png") no-repeat center;
        background-size: cover;
        width: 144px;
        height: 144px;
        margin: 0 auto;
        animation-name: spin;
        animation-duration: 1500ms;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
    }

@-moz-keyframes spin {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.modal-content {
    background-color: #FFFFE7;
    padding: 8px !important;
    border-radius: 16px;
}

.modal-content .modal-body {
    border: #E76474 2px dashed;
    border-radius: 8px;
    padding: 40px 24px;
}

.modal-content .ddicon {
    width: 2.5rem;
    height: 2.5rem;
}

.modal-dialog {
    max-width: 80%;
}

    .modal-dialog .modal-content {
        background-color: #FFFFE7;
        padding: 16px !important;
        border-radius: 2rem;
    }

        .modal-dialog .modal-content .modal-body {
            border: #E76474 0.25rem dashed;
            border-radius: 1rem;
            padding: 2rem;
        }

            .modal-dialog .modal-content .modal-body .cta-wrap {
                padding-top: 1rem;
            }

                .modal-dialog .modal-content .modal-body .cta-wrap .btn {
                    width: auto;
                }

    .modal-dialog.qmodal {
        height: 80vh;
        padding-top: 5%;
        max-width: 1024px;
        max-height: 700px;
    }

        .modal-dialog.qmodal .modal-content {
            height: 100%;
            position: relative;
        }

            .modal-dialog.qmodal .modal-content .ttlwrap {
                top: -10%;
                left: 0;
                right: 0;
                position: absolute;
            }

                .modal-dialog.qmodal .modal-content .ttlwrap h3 {
                    background: #1c7fc2;
                    background: linear-gradient(0deg, #1c7fc2 0%, #8dbfe1 100%);
                }

            .modal-dialog.qmodal .modal-content .qmodal-selection-wrap {
                height: 100%;
            }

                .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection {
                    height: 100%;
                    background-image: url("images/characters/char-elephant.png");
                    background-position: left bottom;
                    background-size: 15%;
                    background-repeat: no-repeat;
                    display: flex;
                    gap: 16px;
                    flex-wrap: wrap;
                    justify-content: center;
                    align-content: center;
                }

                    .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection.col2 .option {
                        flex-basis: 50%;
                    }

                    .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection.col3 .option {
                        flex-basis: 30%;
                    }

                    .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection .option {
                        flex-grow: 0;
                        flex-shrink: 0;
                        background: #FFF;
                        border: 2px solid #1C7FC2;
                        border-bottom-width: 4px;
                        border-radius: 999px;
                        max-width: 300px;
                        height: 160px;
                        text-align: center;
                        padding: 1rem;
                        font-size: 3rem;
                        font-weight: 600;
                        line-height: 1;
                        align-content: center;
                    }

                        .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection .option:hover {
                            border-color: #60A5D4;
                            color: #1C7FC2;
                            background: #E8F2F9;
                            cursor: pointer;
                        }

                        .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection .option.active {
                            background: #60A5D4;
                            border-bottom-width: 8px;
                            color: #FFF;
                        }

                            .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection .option.active:hover {
                                background: #60A5D4;
                                border-color: #1C7FC2;
                                color: #FFF;
                            }

                        .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection .option.disabled {
                            border-color: #B9B9B9;
                            color: #B9B9B9;
                        }

                            .modal-dialog.qmodal .modal-content .qmodal-selection-wrap .qmodal-selection .option.disabled:hover {
                                background: #FFF;
                                border-color: #B9B9B9;
                                color: #B9B9B9;
                                cursor: not-allowed;
                            }

    .modal-dialog.savemodal {
        height: 80vh;
        padding-top: 5%;
        max-width: 500px;
        max-height: 450px;
    }

        .modal-dialog.savemodal .modal-content {
            height: 100%;
            position: relative;
            text-align: left;
        }

            .modal-dialog.savemodal .modal-content .ttlwrap h3 {
                background: #e76f44 0%;
                background: linear-gradient(0deg, #e76f44 0%, #f3b7a1 100%);
            }

            .modal-dialog.savemodal .modal-content .modal-save-wrap {
                background: url("images/characters/char-human.png") no-repeat bottom right;
                background-size: 30%;
                height: 100%;
                display: flex;
                flex-direction: column;
                gap: 1rem;
                padding: 2rem 1rem;
            }

                .modal-dialog.savemodal .modal-content .modal-save-wrap input {
                    height: 44px;
                    width: 70%;
                }

        .modal-dialog.savemodal p {
            font-weight: 600;
            margin: 0;
        }

    .modal-dialog.modal-validation {
        max-width: 24%;
        padding-top: 20%;
    }

        .modal-dialog.modal-validation .modal-content {
            padding: 8px !important;
            border-radius: 1.5rem;
        }

            .modal-dialog.modal-validation .modal-content .modal-body {
                border: #E76474 2px dashed;
            }

    .modal-dialog.submitmodal {
        height: 80vh;
        padding-top: 5%;
        max-width: 400px;
        max-height: 400px;
    }

        .modal-dialog.submitmodal .modal-content {
            height: 100%;
            position: relative;
            text-align: center;
        }

            .modal-dialog.submitmodal .modal-content .ttlwrap h3 {
                background: #e76474 0%;
                background: linear-gradient(0deg, #e76474 0%, #ed909c 100%);
            }

        .modal-dialog.submitmodal p {
            font-weight: 600;
            margin: 0;
            font-size: 1.2rem;
            padding: 2rem 0;
        }

.ttlwrap {
    top: -5%;
    left: 0;
    right: 0;
    position: absolute;
    z-index: 99;
    text-align: center;
}

    .ttlwrap h3 {
        border-radius: 99px;
        text-align: center;
        padding: 1rem 2rem 1rem 5rem;
        margin: 0 auto;
        display: inline-block;
        min-width: 200px;
        max-width: 80%;
        font-size: 2rem;
        color: #08263A;
        font-weight: 900;
        position: relative;
    }

        .ttlwrap h3::before {
            content: "";
            background: url("images/icon/ico-titlestar.png") no-repeat;
            background-size: contain;
            width: 64px;
            height: 64px;
            display: block;
            position: absolute;
            left: 16px;
            top: 0;
        }

.popup-notif-wrap .popup-notif {
    font-size: 24px;
    text-align: center;
}

.wrap-splash {
    background: url("images/bg_splash.png") no-repeat top center;
    background-size: cover;
}

    .wrap-splash h1 {
        text-indent: -9999px;
    }

.login-banner {
    background: url("images/login/login_banner.png") no-repeat top center;
    background-size: contain;
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
}

.login-form {
    max-width: 440px;
    padding-top: 25%;
    margin: 0 auto;
    position: relative;
    z-index: 6;
}

    .login-form .form-wrap {
        position: relative;
        padding-bottom: 16px;
    }

        .login-form .form-wrap span {
            width: 36px;
            height: 36px;
            position: absolute;
            background-size: cover;
            background-position: 0 0;
            background-repeat: no-repeat;
            z-index: 7;
            left: 8px;
            top: 12px;
            display: block;
        }

            .login-form .form-wrap span.ico-username {
                background-image: url("images/login/ico-username.png");
            }

            .login-form .form-wrap span.ico-password {
                background-image: url("images/login/ico-password.png");
            }

        .login-form .form-wrap .form-control {
            height: 60px;
            padding-left: 48px;
        }

            .login-form .form-wrap .form-control:hover + span {
                background-position: 0 -36px;
            }

            .login-form .form-wrap .form-control:focus + span {
                background-position: 0 -72px;
            }

    .login-form .form-btn {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

        .login-form .form-btn .btn-submit {
            width: 80px;
            height: 80px;
            text-align: center;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-content: center;
            border-radius: 999px;
            border: 2px solid #FFF;
            background: #e76474;
            background: linear-gradient(90deg, #e76474 0%, #ed909c 100%);
            transition: all 100ms linear;
        }

            .login-form .form-btn .btn-submit:hover {
                background: linear-gradient(90deg, #ed909c 0%, #e76474 100%);
                transform: translateY(-2px);
                box-shadow: #E76474 0 2px 2px;
            }

            .login-form .form-btn .btn-submit img {
                width: 50px;
                margin: 18px auto;
            }

.menu-wrap {
    position: relative;
    height: 100%;
}

    .menu-wrap::before {
        content: "";
        background: url("images/menu/link-lines.png") no-repeat;
        background-size: contain;
        width: 100%;
        height: 100%;
        position: absolute;
        top: -10%;
        bottom: 0;
        left: 0;
    }

    .menu-wrap > a {
        text-indent: -9999px;
        position: absolute;
        transition: all 100ms linear;
        background-size: contain;
        background-repeat: no-repeat;
        width: 55%;
        height: 25%;
        max-width: 400px;
        max-height: 180px;
        display: block;
        z-index: 7;
    }

        .menu-wrap > a:hover {
            transform: translateY(-4px);
        }

    .menu-wrap .link-rhythm {
        background-image: url("images/menu/link-rhythm.png");
        left: -30px;
        top: 0;
    }

    .menu-wrap .link-melody {
        background-image: url("images/menu/link-melody.png");
        right: -40px;
        top: 12%;
    }

    .menu-wrap .link-submit {
        background-image: url("images/menu/link-submit.png");
        left: 25%;
        top: 32%;
    }

.maincontent {
    display: flex;
    gap: 2rem;
}

    .maincontent.wrap {
        flex-wrap: wrap;
    }

    .maincontent .left {
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: 60%;
    }

    .maincontent .right {
        flex-grow: 1;
    }

    .maincontent .full {
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: 100%;
    }

.cbox {
    padding: 2rem;
    border-radius: 1.25rem;
    background-color: #FFF;
}

    .cbox.nopad-side {
        padding-left: 0;
        padding-right: 0;
    }

    .cbox h2 {
        color: #E76474;
        font-size: 2.4vw;
        text-align: center;
    }

.wborder {
    border-style: solid;
    border-top-width: 2px;
    border-left-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 4px;
}

    .wborder.blue {
        border-color: #60A5D4;
    }

    .wborder.red {
        border-color: #ED909C;
    }

.qselection-wrap {
    padding: 1rem 0;
    display: flex;
    gap: 0.5rem;
}

    .qselection-wrap > *:nth-child(1) {
        flex-grow: 1;
    }

    .qselection-wrap > *:nth-child(2) {
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: 40%;
    }

    .qselection-wrap ul.qselection {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .qselection-wrap ul.qselection li {
            padding-bottom: 0.5rem;
        }

            .qselection-wrap ul.qselection li a {
                display: flex;
                border: #60A5D4 1px solid;
                border-bottom-width: 4px;
                text-decoration: none;
                border-radius: 99px;
                overflow: hidden;
            }

                .qselection-wrap ul.qselection li a > * {
                    flex-grow: 0;
                    flex-shrink: 0;
                    flex-basis: 50%;
                    text-align: center;
                    align-content: center;
                    vertical-align: middle;
                    line-height: 1;
                    padding: 0;
                    margin: 0;
                    height: 60px;
                }

                .qselection-wrap ul.qselection li a h5 {
                    background-color: #BBD9ED;
                    font-size: 1.25rem;
                    font-weight: 900;
                    border-right: #60A5D4 1px solid;
                    color: #145988;
                }

                .qselection-wrap ul.qselection li a p {
                    background-color: #FFF;
                    font-size: 1.5rem;
                    font-weight: 600;
                    color: #000;
                }

                .qselection-wrap ul.qselection li a:hover {
                    border-color: #145988;
                }

                    .qselection-wrap ul.qselection li a:hover p {
                        background-color: #E8F2F9;
                    }

.btn-toggle input,
.btn-toggle label {
    font-size: 1.25rem;
    font-weight: 900;
    border: #60A5D4 1px solid;
    color: #145988;
    cursor: pointer;
    display: none;
    padding: 1rem;
    margin: 0;
    min-height: 60px;
    border-radius: 99px;
    background-color: #FFF;
    background-repeat: no-repeat;
    background-position: 94% center;
    background-size: auto 24px;
}

    .btn-toggle input:hover,
    .btn-toggle label:hover {
        background-color: #BBD9ED;
        border-color: #08263A;
        color: #08263A;
    }

.btn-toggle.toggle-beat input#strongbeat:checked + label {
    display: block;
    background-image: url("images/icon/ico-beat-strong.png");
}

.btn-toggle.toggle-beat input#weakbeat1:checked + label {
    display: block;
    background-image: url("images/icon/ico-beat-weak.png");
}

.btn-toggle.toggle-beat input#weakbeat2:checked + label {
    display: block;
}

.dv-flexlist {
    padding-top: 2rem;
    height: 46vh;
    overflow-y: auto;
}

    .dv-flexlist .dropdown {
        border-bottom: #D8D8D8 1px solid;
        cursor: pointer;
    }

        .dv-flexlist .dropdown:hover {
            background-color: #E8F2F9;
        }

        .dv-flexlist .dropdown:active {
            background-color: #d7edfd;
        }

        .dv-flexlist .dropdown:nth-child(1) {
            border-top: #D8D8D8 1px solid;
        }

        .dv-flexlist .dropdown:last-child {
            border-bottom: none;
        }

        .dv-flexlist .dropdown .dropdown-menu {
            margin-left: 60% !important;
            margin-top: -1rem !important;
            box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        }

            .dv-flexlist .dropdown .dropdown-menu .dropdown-item:hover, .dv-flexlist .dropdown .dropdown-menu .dropdown-item:focus {
                background-color: #E8F2F9;
            }

            .dv-flexlist .dropdown .dropdown-menu .dropdown-item:focus {
                color: #1C7FC2;
            }

.dv-flexrow {
    display: flex;
    padding: 1rem 2rem;
    gap: 0.5rem;
}

    .dv-flexrow p {
        margin: 0 !important;
        color: #145988;
    }

        .dv-flexrow p:nth-child(2) {
            width: 100%;
        }

    .dv-flexrow .icon {
        width: 1.5rem;
        height: 1.5rem;
        align-content: center;
        background: url("images/icon/ico-error.png") no-repeat left;
        background-size: contain;
    }

        .dv-flexrow .icon.noerror {
            opacity: 0;
        }

        .dv-flexrow .icon.witherror {
            opacity: 1;
        }

.ddicon {
    width: 1.25rem;
    height: 1.25rem;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}

    .ddicon.mlist {
        background-image: url("images/icon/ico-musiclist.png");
    }

    .ddicon.rename {
        background-image: url("images/icon/ico-edit.png");
    }

    .ddicon.delete {
        background-image: url("images/icon/ico-delete.png");
    }

    .ddicon.cancel {
        background-image: url("images/icon/ico-cancel.png");
    }

.dv-instrument-select span.inst {
    width: 100px;
    height: 100px;
    margin-left: -0px;
/*    margin-top: -30px;*/
    display: block;
    background: url("images/graphic-Instruments.png") no-repeat;
    background-size: 500%;
}

    .dv-instrument-select span.inst.big {
        width: 240px;
        height: 240px;
    }

    .dv-instrument-select span.inst:hover, .dv-instrument-select span.inst.active {
        background-position-y: 100%;
    }

.dv-instrument-select span.inst-stick {
    background-position: 0 0;
}

.dv-instrument-select span.inst-triangle {
    background-position: 25% 0;
}

.dv-instrument-select span.inst-drum {
    background-position: 50% 0;
}

.dv-instrument-select span.inst-piano {
    background-position: 75% 0;
}

.dv-instrument-select span.inst-flute {
    background-position: 100% 0;
}

.dv-tempo {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

    .dv-tempo .select-tempo {
        background: url("images/tempo-bg.png") no-repeat;
        background-size: contain;
        width: 224px;
        height: 8px;
        display: flex;
        justify-content: space-between;
    }

        .dv-tempo .select-tempo .btn-tempo {
            width: 40px;
            height: 40px;
            display: block;
            background: url("images/tempo-btn.png") no-repeat;
            background-size: 40px;
            background-position: 0 0;
            text-decoration: none;
            margin-top: -16px;
        }

            .dv-tempo .select-tempo .btn-tempo:hover, .dv-tempo .select-tempo .btn-tempo.active {
                background-position: 0 100%;
            }

            .dv-tempo .select-tempo .btn-tempo:first-child {
                margin-left: -16px;
            }

            .dv-tempo .select-tempo .btn-tempo:last-child {
                margin-right: -16px;
            }

.crea-beat p {
    font-size: 3rem;
    line-height: 1;
    margin-top: -10px;
    padding-right: 10px;
    font-family: serif;
    font-weight: 600;
}

.creation {
    display: flex;
    align-items: flex-start;
    overflow: auto;
    gap: 1rem;
    padding-bottom: 156px;
}

    .creation .crea-label {
        display: flex;
        align-items: center;
        padding-top: 1.25rem;
    }

    .creation .crea-note {
        width: 100%;
        position: relative;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

        .creation .crea-note .note-group {
            width: 100%;
        }

    .creation .crea-note-2 {
        width: 100%;
        display: flex;
        gap: 1rem;
        position: relative;
    }

        .creation .crea-note-2::before {
            content: "";
            display: block;
            width: 20px;
            height: 100%;
            background: url("images/line-bracket.png") no-repeat;
            background-size: contain;
            position: absolute;
            top: -2px;
            left: -20px;
        }

    .creation .crea-note-1 {
        width: 100%;
        display: flex;
        gap: 1rem;
    }

    .creation .crea-note .crea-note-box {
        display: flex;
        height: 120px;
        width: 100%;
        margin-bottom: 0.5rem;
    }

        .creation .crea-note .crea-note-box > * {
            width: 100%;
            border: #60A5D4 2px solid;
            background: #FFFFFF;
        }

            .creation .crea-note .crea-note-box > *:hover {
                background: #BBD9ED;
            }

            .creation .crea-note .crea-note-box > *.playing {
                background-color: rgba(231, 111, 68, 0.3);
            }

        .creation .crea-note .crea-note-box .left {
            border-radius: 1rem 0 0 1rem;
        }

        .creation .crea-note .crea-note-box .right {
            border-radius: 0 1rem 1rem 0;
            border-left: 0;
        }

    .creation .crea-play {
        align-content: center;
    }

        .creation .crea-play.playing a {
            border: none;
        }

            .creation .crea-play.playing a .ico-play {
                background-image: url("images/icon/icon-stop.png") !important;
            }

.creation-select-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FEFFB7;
    padding: 1rem;
    border-radius: 1.2rem 1.2rem 0 0;
    z-index: 10;
}

    .creation-select-wrap .accordion {
        border: none;
    }

    .creation-select-wrap .accordion-item {
        background-color: transparent !important;
        border: none;
    }

    .creation-select-wrap .btn-creation-select {
        position: relative;
    }

        .creation-select-wrap .btn-creation-select::after {
            content: "";
            display: block;
            background: url("images/btn-sml-accordion.png") no-repeat;
            width: 74px;
            height: 40px;
            background-size: cover;
            top: -32px;
            left: 24px;
            position: absolute;
        }

        .creation-select-wrap .btn-creation-select:hover::after {
            background-position: 0 33.33%;
        }

        .creation-select-wrap .btn-creation-select.collapsed::after {
            background-position: 0 66.66%;
        }

        .creation-select-wrap .btn-creation-select.collapsed:hover::after {
            background-position: 0 100%;
        }

    .creation-select-wrap .accordion-collapse.collapse {
        display: block !important;
    }

        .creation-select-wrap .accordion-collapse.collapse .accordion-body {
            height: 0;
            padding: 0;
            border: none;
            border-radius: 1rem 1rem 0 0;
        }

        .creation-select-wrap .accordion-collapse.collapse.show {
            display: block !important;
        }

            .creation-select-wrap .accordion-collapse.collapse.show .accordion-body {
                height: auto;
                padding: 0 0 1rem;
                border: dashed 2px #E76474;
            }

    .creation-select-wrap .crea-select-items {
        width: 100%;
        display: flex;
        gap: 1rem;
        overflow: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* Firefox: Makes scrollbar thinner but visible */
        scrollbar-color: #888 #f1f1f1; /* Firefox: Customizes scrollbar color */
    }

        .creation-select-wrap .crea-select-items a {
            background: #FFFFFF;
            border: 1px solid #FFFFFF;
            border-radius: 0.75rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            height: 88px;
            text-align: center;
            padding: 8px;
        }

            .creation-select-wrap .crea-select-items a:hover {
                background: #E8F2F9;
                border: 1px solid #60A5D4;
            }

            .creation-select-wrap .crea-select-items a:active {
                background: #1C7FC2;
                border: 1px solid #60A5D4;
            }

.note,
.rest,
.qnote {
    min-width: 70px;
    height: 70px;
    display: inline-block;
    background-size: 70% !important;
    background-repeat: no-repeat !important;
    background-position: center;
    position: relative;
}

    .note.count-half:after,
    .rest.count-half:after,
    .qnote.count-half:after {
        content: ".";
        font-size: 32px;
        color: #000;
        position: absolute;
        right: 8px;
        bottom: 4px;
    }

    .note.whole {
        background-image: url("images/note/note-whole.png");
    }

    .note.half {
        background-image: url("images/note/note-half.png");
    }

    .note.quarter {
        background-image: url("images/note/note-quarter.png");
    }

    .note.eighth {
        background-image: url("images/note/note-eighth.png");
    }

    .note.sixteenth {
        background-image: url("images/note/note-sixteenth.png");
    }

.eighth-eighth {
    background-size: 80% !important;
    background-image: url("images/note/note-group1.png");
}

.dottedeighth-sixteenth {
    background-size: 90% !important;
    background-image: url("images/note/note-group2.png");
}

.eighth-sixteenth-sixteenth {
    background-size: 90% !important;
    min-width: 80px;
    background-image: url("images/note/note-group3.png");
}

.sixteenth-sixteenth-sixteenth-sixteenth {
    background-size: 90% !important;
    min-width: 100px;
    background-image: url("images/note/note-group4.png");
}

.sixteenth-sixteenth-eighth {
    background-size: 90% !important;
    min-width: 80px;
    background-image: url("images/note/note-group5.png");
}

.sixteenth-eighth-sixteenth {
    background-size: 90% !important;
    min-width: 84px;
    background-image: url("images/note/note-group6.png");
}

.quarter-eighth {
    background-size: 90% !important;
    min-width: 125px;
    background-image: url("images/note/note-quarter-eighth.png");
}

.dottedquarter-eighth {
    background-size: 90% !important;
    min-width: 125px;
    background-image: url("images/note/dottedquarter-eighth.png");
}

.eighth-dottedquarter {
    background-size: 90% !important;
    min-width: 85px;
    background-image: url("images/note/eighth-dottedquarter.png");
}

.eighth-quarter-eighth {
    background-size: 90% !important;
    min-width: 130px;
    background-image: url("images/note/eighth-quarter-eighth.png");
}

.eighth-eighth-eighth {
    background-size: 90% !important;
    min-width: 85px;
    background-image: url("images/note/eighth-eighth-eighth.png");
}

.dottedeighth-sixteenth-sixteenth {
    background-size: 90% !important;
    min-width: 75px;
    background-image: url("images/note/dottedeighth-sixteenth-sixteenth.png");
}

.sixteenth-sixteenth-sixteenth-sixteenth-sixteenth-sixteenth {
    background-size: 90% !important;
    min-width: 160px;
    background-image: url("images/note/sixteenth-sixteenth-sixteenth-sixteenth-sixteenth-sixteenth.png");
}

.rest.whole {
    background-image: url("images/rest/rest-whole.png");
}

.rest.half {
    background-image: url("images/rest/rest-half.png");
}

.rest.quarter {
    background-image: url("images/rest/rest-quarter.png");
}

.rest.eighth {
    background-image: url("images/rest/rest-eighth.png");
}

.rest.sixteenth {
    background-image: url("images/rest/rest-sixteenth.png");
}

/* Media query for iPad Air and smaller (max-width: 1180px) */
@media screen and (max-width: 1180px) {
    .note.whole {
        min-width: 60px;
    }

    .note.half {
        min-width: 60px;
    }

    .note.quarter {
        min-width: 60px;
    }

    .note.eighth {
        min-width: 60px;
    }

    .note.sixteenth {
        min-width: 60px;
    }

    .eighth-eighth {
        min-width: 60px;
    }

    .dottedeighth-sixteenth {
        min-width: 60px;
    }

    .eighth-sixteenth-sixteenth {
        min-width: 68px;
    }

    .sixteenth-sixteenth-sixteenth-sixteenth {
        min-width: 85px;
    }

    .sixteenth-sixteenth-eighth {
        min-width: 68px;
    }

    .sixteenth-eighth-sixteenth {
        min-width: 70px;
    }

    .rest.whole {
        min-width: 60px;
    }

    .rest.half {
        min-width: 60px;
    }

    .rest.quarter {
        min-width: 60px;
    }

    .rest.eighth {
        min-width: 60px;
    }

    .rest.sixteenth {
        min-width: 60px;
    }
}

.head-option {
    display: flex;
    justify-content: space-between;
}

    .head-option .right {
        display: flex;
        align-items: center;
        padding-right: 32px;
        gap: 2rem;
    }

    .head-option .dv-label a {
        text-decoration: none;
        background: url("images/note-label.png") no-repeat;
        background-size: 100%;
        background-position: 0 0;
        width: 100px;
        height: 43px;
        display: inline-block;
    }

        .head-option .dv-label a:hover {
            background-position: 0 33.33%;
        }

        .head-option .dv-label a.active {
            background-position: 0 66.66%;
        }

            .head-option .dv-label a.active:hover {
                background-position: 0 100%;
            }

.piano {
    background-color: #434343;
    margin: 0 -2rem -2rem;
    padding: 0.5rem 1.5rem;
}

    .piano .keys {
        background-color: #D8D8D8;
        width: 100%;
        position: relative;
    }

        .piano .keys .whole {
            border-top: 8px solid #DC2239;
            display: flex;
            gap: 1px;
        }

            .piano .keys .whole a {
                background-color: #FFFFFF;
                height: 170px;
                width: 100%;
                text-decoration: none;
            }

                .piano .keys .whole a:hover {
                    background-color: #F6F6F6;
                }

        .piano .keys .half {
            display: flex;
            gap: 2%;
            position: absolute;
            top: 8px;
            width: 100%;
            padding: 0 3.6%;
        }

            .piano .keys .half a {
                background-color: #434343;
                height: 100px;
                width: 100%;
                text-decoration: none;
            }

                .piano .keys .half a:nth-child(4), .piano .keys .half a:nth-child(6), .piano .keys .half a:nth-child(9), .piano .keys .half a:nth-child(11) {
                    margin-left: 6%;
                }

                .piano .keys .half a:hover {
                    background-color: #000000;
                }

#piano-doremi .whole a {
    text-decoration: none;
    color: #6E6E6E;
    font-style: italic;
    text-align: center;
    padding-top: 130px;
}

#piano-abc .whole a {
    text-decoration: none;
    color: #6E6E6E;
    text-align: center;
    padding-top: 130px;
}

.piano-wrap {
    display: flex;
}

    .piano-wrap .nav-tabs {
        border: none;
        flex: 1 0 auto;
        display: flex;
        padding: 1rem;
        border-right: dashed 2px #E76474;
    }

        .piano-wrap .nav-tabs .nav-item .nav-link {
            background: #B9B9B9;
            color: #434343;
            border: 1px solid #FFFFFF;
            border-radius: 0.75rem 0 0 0.75rem;
            height: 88px;
            font-size: 1.5rem;
        }

            .piano-wrap .nav-tabs .nav-item .nav-link.active {
                background: #1C7FC2;
                color: #FFFF;
            }

        .piano-wrap .nav-tabs .nav-item:last-child .nav-link {
            border-radius: 0 0.75rem 0.75rem 0;
        }

.rhythm-wrap.submit-wrap .cbox {
    border: 4px dotted #E76474;
}

.submit-wrap {
    max-height: 100%;
    padding-bottom: 20px;
}

    .submit-wrap .maincontent {
        gap: 0.5rem;
    }

    .submit-wrap .submit-ttl {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .submit-wrap .submit-ttl img.ttl {
            height: 8rem;
        }

        .submit-wrap .submit-ttl img.char-eli {
            height: 10rem;
        }

    .submit-wrap .thead {
        background-color: #BBD9ED;
        font-weight: 800;
        color: #145988;
        border: #8DBFE1 1px solid;
        border-radius: 16px;
        display: flex;
        width: 100%;
        gap: 0.5rem;
        padding: 1rem 1rem 1rem 2.5rem;
    }

        .submit-wrap .thead p {
            margin: 0;
            width: 24%;
        }

            .submit-wrap .thead p:last-child {
                width: 28%;
            }

    .submit-wrap .tbody {
        overflow: scroll;
        max-height: 44vh;
        background: #FFFFFF;
        border-radius: 16px;
        counter-reset: item;
        width: 100%;
    }

        .submit-wrap .tbody > div {
            display: flex;
            width: 100%;
            gap: 0.5rem;
            position: relative;
            padding: 1rem 1rem 1rem 2.5rem;
            border-bottom: 1px solid #D8D8D8;
        }

            .submit-wrap .tbody > div p {
                margin: 0;
                width: 24%;
                color: #145988;
                font-weight: 600;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

                .submit-wrap .tbody > div p:last-child {
                    width: 28%;
                }

                .submit-wrap .tbody > div p .btn {
                    width: auto;
                    display: inline-block;
                }

                .submit-wrap .tbody > div p a img {
                    width: 2rem;
                }

                    .submit-wrap .tbody > div p a img:hover {
                        opacity: 0.8;
                    }

                .submit-wrap .tbody > div p a:last-child {
                    float: right;
                }

            .submit-wrap .tbody > div::before {
                counter-increment: item;
                content: counter(item) ". ";
                position: absolute;
                left: 1rem;
                top: 1rem;
                color: #145988;
                font-weight: 600;
            }

#notation svg > rect {
    fill: transparent !important;
}

#notation {
    position: relative;
    flex: 1; /* take available space */
    overflow-y: auto; /* make it scrollable */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    padding-bottom: 250px; /* give breathing room above the drawer/piano */
}

.subwrap {
    display: flex;
    flex-direction: column;
    height: 100vh; /* full screen */
    overflow: hidden; /* prevent double scrolling */
}

/*.top {
    flex-shrink: 0;*/ /* header stays fixed */
/*}

.mid {
    flex: 1;*/ /* take remaining vertical space */
    /*overflow: hidden;*/ /* prevent double scrollbars */
    /*display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    overflow-y: auto;*/ /* main scroll area */
    /*-webkit-overflow-scrolling: touch;*/ /* smooth iOS scroll */
    /*padding-bottom: 120px;*/ /* give space so last staff clears the piano */
/*}*/

.creation-content {
    position: relative;
}

.btn-blue {
    background-color: #0d6efd; /* Vibrant blue, like Bootstrap primary */
    color: #ffffff;
}
.btn-blue:disabled, .btn-blue.disabled-link {
    background-color: #d3d3d3; /* Light gray for disabled state */
    color: #666666;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom styles for ViewModal (melodyModal) */
.modal-dialog.viewcompositionmodal {
    max-width: 80vw; /* 80% of viewport width */
    max-height: 80vh; /* 80% of viewport height */
    margin: 5vh auto; /* Center vertically and horizontally */
}

.modal-dialog.viewcompositionmodal .modal-content {
    background-color: #FFFFFF; /* Default Bootstrap modal background */
    padding: 0; /* Remove custom padding */
    border-radius: 0.3rem; /* Bootstrap default border-radius */
    height: 80vh; /* Match max-height of modal-dialog */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.modal-dialog.viewcompositionmodal .modal-content .modal-header {
    border-bottom: 1px solid #dee2e6; /* Bootstrap default border */
    padding: 1rem; /* Bootstrap default padding */
}

.modal-dialog.viewcompositionmodal .modal-content .modal-body {
    border: none; /* Remove dashed border from other modals */
    padding: 1rem; /* Bootstrap default padding */
    height: calc(100% - 114px); /* Adjust for header and footer */
    overflow-y: auto; /* Allow scrolling within body */
}

.modal-dialog.viewcompositionmodal .modal-content .modal-footer {
    border-top: 1px solid #dee2e6; /* Bootstrap default border */
    padding: 1rem; /* Bootstrap default padding */
}

/* Ensure modal backdrop is visible for viewcompositionmodal */
.modal-backdrop.show {
    display: block !important; /* Override display: none */
    opacity: 0.5; /* Bootstrap default opacity */
}

@media screen and (max-width: 767px) and (orientation: portrait) {
    .appwrap {
        transform: rotate(90deg); /* Rotate to simulate landscape */
        transform-origin: center; /* Rotate around the center */
        width: 100vh; /* Use viewport height as width (landscape width) */
        height: 100vw; /* Use viewport width as height */
        position: fixed; /* Ensure it fills the screen */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: auto; /* Allow scrolling if content overflows */
    }

    /* Counter-rotate content to keep it upright */
    .mainwrap,
    .subwrap,
    .modal-dialog,
    .login-form,
    .menu-wrap {
        transform: rotate(-90deg); /* Counter-rotate to keep content readable */
        transform-origin: center;
        width: 100%;
        height: 100%;
    }

    /* Adjust modal sizes for rotated viewport */
    .modal-dialog {
        max-width: 90vh; /* Use viewport height as width */
        max-height: 90vw; /* Use viewport width as height */
        margin: 5vw auto; /* Center in rotated viewport */
    }

        .modal-dialog.viewcompositionmodal,
        .modal-dialog.qmodal,
        .modal-dialog.savemodal,
        .modal-dialog.submitmodal {
            max-width: 90vh;
            max-height: 80vw;
        }
}

/*# sourceMappingURL=style.css.map */
