.topmar {
    background-color: rgba(236, 50, 55, 1);
}

body {
    overflow: scroll;
}

.section1 {
    background: url(/images/franchisebg.svg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    position: relative;
    justify-content: space-between;
    z-index: 1;
    align-items: flex-start;
    /* instead of stretch */
}

.section1 .left {
    width: 50%;
    padding: 0 10% 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section1 .right {
    width: 50%;
    display: flex;
    align-items: flex-start;
}

.section1 .right img {
    width: 100%;
}



.textwrapper {
    display: flex;
    align-items: center;
}

.textwrapper h1 {
    font-size: 1.5em;
    color: #fff;
    margin-block-start: 0;
    margin-block-end: 0;
}


.textwrapper p {
    font-size: 1.2em;
    color: #fff;
    margin-left: 5px;
    margin-block-start: .2em;
    margin-block-end: 0;
}


.menuwrapper {
    margin-top: 5%;
    width: 80%;
    border: 2px solid #292929;
    background: #fff;
    border-radius: 8%;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0px 0px 1em rgba(0, 0, 0, 0.2));
    overflow-y: auto;
    /* scroll if content is too long */
}

.menuwrapper::-webkit-scrollbar {
    width: 1.5em;
}

.menuwrapper::-webkit-scrollbar-track {

    margin-block: 1.4em;

}

.menuwrapper::-webkit-scrollbar-thumb {
    background: #EC3237;
    border: 0.25em solid hsl(0, 0%, 100%);
    border-radius: 100vw;
    margin-left: 10px;
}

.menuwrapper .parlormenu p {
    font-size: 1em;
    margin-block-start: 0;
    margin-block-end: 0;
    margin: 5% 5%;
    cursor: pointer;
}

.menuwrapper .parlormenu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menuwrapper .parlormenu p:hover {
    font-size: 1.1em;
    font-weight: 500;
}


.menuwrapper .parlormenu .line {
    width: 90%;
    height: 2px;
    background: #292929;
    border-radius: 100vw;
}

.wrapper {
    margin-top: -6%;
    position: relative;
    z-index: 2;
}

.textwrapper {
    margin-bottom: 20px;
}

.menuwrapper p {
    cursor: pointer;
    padding: 10px;
    margin: 5px 0;
    border-radius: 6px;
    transition: background 0.2s;
}

.menuwrapper p:hover {
    background: #f0f0f0;
}

.line {
    height: 1px;
    background: #ddd;
}

/* Dialog styles */
.dialog-overlay {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.dialog-box h2 {
    margin: 0 0 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    border: none;
    background: none;
}



.section2 {
    width: 100%;
    background: url(/images/franchisebg2.svg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 7% 5% 2% 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section2 p {
    color: #ffffff;
}

.sec2top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frcbutton {
    background: url(/images/joinbutton.svg);
    background-size: cover;
    background-repeat: no-repeat;
    height: 57px;
    width: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.panimage {
    width: 100vw;
    height: 50vw;
}

#panorama {
    width: 100vw;
    height: 100vh;
}

.pt {
    color: #fff;
    font-size: 2em
}

footer {
    position: relative;
    z-index: 5;
}


@media screen and (max-width : 1700px) {

    .textwrapper h1 {
        font-size: 1.4em;
    }


    .textwrapper p {
        font-size: 1.1em;
    }

}

@media screen and (max-width : 1500px) {

    .textwrapper h1 {
        font-size: 1.3em;
    }


    .textwrapper p {
        font-size: 1em;
    }

    .menuwrapper .parlormenu p {
        font-size: 1em;
    }

}

@media screen and (max-width : 1200px) {


    .textwrapper h1 {
        font-size: 1.2em;
    }


    .textwrapper p {
        font-size: 0.8em;
    }

    .menuwrapper .parlormenu p {
        font-size: 0.8em;
    }

    .pt {
        font-size: 1.4em
    }


}



@media screen and (max-width : 880px) {

    .section1 {
        display: flex;
        flex-direction: column;
    }

    .section1 .right {
        width: 100%;
    }

    .section1 .imagewrapper {
        display: flex;
        width: 100%;
        justify-content: flex-end;
    }

    .section1 .right img {
        position: relative;
        width: 90%;
    }

    .section2 {
        width: 100%;
        padding: 7% 5% 5% 5%;
    }


    #panorama {
        width: 100vw;
        height: 100vw;
    }


    .section1 .left {
        width: 100%;
    }

}