@charset "UTF-8";

/* header ------------------------------------------------ */

header{
    background-color:#b5f5ff !important;
    font-size: 0.8em;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow .3s ease, background .3s ease;
    &.scrolled {
        box-shadow: 0 4px 12px rgba(0,0,0,.2);
    }
    & a{
        color: #2f4f5a;
        position:relative;
        display:inline-block;
        width: 120px;
        text-align: center;
        padding:0;
        text-decoration:none;
        transition:transform .08s ease, color .15s ease;
    }
    & a.txt::after{
        content:"";
        position:absolute;
        left:4px;
        right:4px;
        bottom:0px;
        height:2px;
        border-radius:999px;
        background:#1f7ed0;
        opacity:0;
        transform:scaleX(.6);
        transition:opacity .15s ease, transform .15s ease;
    }

    & a.txt:hover::after{
        opacity:.9;
        transform:scaleX(1);
    }

    & a.txt:active{
        transform:translateY(1px);
    }

    & a.txt:focus-visible{
        outline:2px solid var(--link-txt);
        outline-offset:3px;
        border-radius:6px;
    }
    & .header-inner{
        max-width:1100px;
        margin:0 auto;
        padding:16px 0;
        display:flex;
        align-items:center;
        justify-content:space-between;

        & .header-left{
            display:flex;
            align-items:center;
            gap:16px;

            & .logo{
                margin:0;
                font-size:0;

                & a{ display:block; }
            }

            & .home-link{
                font-size:.9em;
                text-decoration:none;
                white-space:nowrap;
            }

            & .tickets{
                display:inline-flex;
                align-items:center;
                gap:4px;
                padding:4px 10px;
                background:#fff;
                border-radius:8px;
                text-decoration:none;
                color:#333;
                font-weight:700;
                white-space:nowrap;
                width: auto;
                min-width: 180px;
                max-width: 220px;
                text-align: left;
                box-shadow: 0 2px 6px rgba(0,0,0,.08);
                transition: transform .15s ease, box-shadow .15s ease;
                cursor: pointer;
                position: relative;
                &.active {
                    background: #fff5ce;
                    &:hover{
                        transform: translateY(-1px);
                        box-shadow: 0 4px 10px rgba(0,0,0,.12);
                        background:#fff1b8;
                        opacity: 1;
                        & img{
                            opacity: 1;
                        }
                    }
                    & .ticket-icon {
                        animation: ticketSwing 7s ease-in-out infinite;
                        animation-delay: 2s;
                        transform-origin: center bottom;
                    }
                }
                &::after{
                    content: " ›";
                    display: inline-block;
                    transition: transform .2s ease;
                }

                &:hover::after{
                    transform: translateX(2px);
                }

                &:hover{
                    transform: translateY(-1px);
                    box-shadow: 0 4px 10px rgba(0,0,0,.12);
                    opacity: 1;
                    & img{
                        opacity: 1;
                    }
                }

                & .ticket-icon{
                    width:60px;
                    height:auto;
                    display:block;
                }

                & .ticket-count{
                    font-size: 0.9em;
                    line-height: 1.5em;
                    padding: 0.2em 0.5em 0;
                    & strong{
                        font-size:1.4em;
                        font-weight:900;
                        padding:0 2px;
                    }
                    & b{
                        font-weight: bold;
                        color: #ff4d4d;
                        font-size: 0.7em;
                    }
                }
            }
        }

        & .header-right{
            margin-left:auto; 
            & ul{
                display:flex;
                justify-content:flex-end;
                gap:0;
                width:auto;
                justify-content: center;
                align-items: center;
                & li{
                    flex:0 0 auto;
                    width: auto;
                    margin:0;
                    font-size: 0.9em;
                    position: relative;
                    & img.badge-icon{
                        width: 14px;
                        height: 14px;
                        position: absolute;
                        right: 14%;
                        top: -10%;
                    }
                    & a{
                        &:hover img{
                            opacity: 0.8;
                        }
                        &.bnr{
                            & img{
                                height: 50px;
                                width: auto;
                                margin-left: auto;
                            }
                        }
                    }
                }
            }
        }
    }
}

@keyframes headerEnter {
  0%   { transform: translateY(-10px); opacity: .2; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* footer ------------------------------------------------ */
footer {
    background:  var(--color-bg-b);
    width: 100%;
    margin:0 auto;
    padding-block: var(--space-s) 100px;
    & ul{
        max-width: var(--max-width);
        width: var(--max-width);
        display: flex;
        justify-content: space-between;
        padding: var(--space-l);
        margin: 0 auto;
        & li{
            padding: 0;
            font-size: 0.8rem;
            text-align: center;
            &:last-child{
                flex-basis: 450px;
            }
            & p{
                text-align: center;
            }
        }
    }
}

/* feedback ------------------------------------------------ */
.feedback{
    position: fixed;
    bottom: 120px;
    right: -8px;
    z-index: 1000;
    & .feedback-button{
        background-color: #3a5599;
        font-size: 0.8em;
        letter-spacing: 0.15em;
        color: #fff;
        border: none;
        border-radius: 50px 0 0 50px;
        padding: 0.8rem 50px 0.8rem 25px;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-50%) translateX(70%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

        &:hover{ transform: translateY(-50%) translateX(12%); }
        & .icon{
            vertical-align: middle;
            display: inline-block;
            width: 28px;
            padding-right: 8px;
        }
    }

    & .feedback-modal{
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
    }

    & .feedback-modal:not([hidden]){
        display: flex;
    }

    & .overlay{
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    & .modal-content{
        position: relative;
        z-index: 1;
        background-color: #fff;
        padding: 1.5em;
        border-radius: 8px;
        width: 90%;
        max-width: 600px;
        & h2{
            margin:0 auto 1em auto;
            text-align: center;
        }
        & label{
            text-align: center;
            margin-bottom: 0.5em;
            display: block;
        }
        & p{
            font-size: 0.8em;
            margin-bottom: 1em;
            & a{
                color: #658ed4;
            }
        }
    }

    & .modal-close{
        position: absolute;
        top: 0px;
        right: 10px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    & .feedback-form{
        display: flex;
        flex-direction: column;

        & textarea{
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 4px;
        border: 1px solid #ccc;
        resize: vertical;
        box-sizing: border-box;
        background-color: #fff;
        }

        & .submit-button{
        background-color: #ea645e;
        color: #fff;
        border: none;
        border-radius: 16px;
        padding: 10px;
        cursor: pointer;

        &:hover{ opacity: 0.8; }
        }
    }

    & .thank-you-message{
        text-align: center;
        font-size: 16px;
        color: #28a745;
    }
}

@keyframes ticketSwing {
    0% { transform: rotate(0deg); }
    3% { transform: rotate(-8deg); }
    6% { transform: rotate(6deg); }
    9% { transform: rotate(-4deg); }
    12% { transform: rotate(2deg); }
    15% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* error ------------------------------------------------ */
.wrap.error {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    & main {
        flex: 1;
        background-color:#b5f5ff;
        .error_pages{
            padding: 3rem 2rem;
            h1{
                width: 50%;
                min-width: 6rem;
                max-width: 12rem;
                margin: 0 auto;
                a{
                    img{
                        width: 100%;
                    }
                }
            }
            p{
                padding: 3rem 0;
                font-size: 1rem;
                text-align: center;
                img{
                    width: 6rem;
                    display: block;
                    margin: 1rem auto;
                }
            }
            a{
                color: var(--link-txt);
                font-size: 1.1rem;
                text-align: center;
                display: block;
            }
        }
    }
}
