header {
    position: fixed;
    width: 100%;
    padding: 1em 1em 0.3em 1em;
    z-index: 999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1780px) {
    header {
        width: 1780px;
        margin: 0 auto;
        left: 50%;
        transform: translate(-50%, 0);
    }
}

.header-logo {
    height: clamp(4em, 10vw, 6em);
    min-width: 80px;
}

.header-logo-link {
    display: inline-block;
}

/**************
LANGUAGE BUTTON
***************/
.lang-btn {
    position: relative;
}

.lang-btn button,
.lang-btn a {
    line-height: 1.5;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    display: block;
    height: 40px;
    width: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--main);
    text-transform: uppercase;
    color: var(--main);
    font-family: var(--eg2);
}

.lang-btn a:visited {
    color: var(--text);
}

.lang-btn div:nth-child(2) {
    margin-top: -1px;
    display: none;
    position: absolute;
    top: 100%;
}

.lang-btn div:nth-child(2) a {
    border-top: 0;
}

.lang-btn:hover div:nth-child(2) {
    display: block;
}

.lang-btn a:hover,
.lang-btn button:hover {
    background-color: var(--main-hover);
    color: white;
}

/********
nav
**********/
nav {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    align-content: center;
    gap: 10px;
}

#main-menu {
    position: fixed;
    top: 6em;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 0 1em;
    /* background: rgba(34, 152, 144, 0.3); */
    display: none;
}

#main-menu > div {
    position: absolute;
    top: calc(50% - 5em);
    left: 5%;
    transform: translate(0, -50%);
    width: 90%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    align-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 2em 1em;
    font-size: large;
    font-family: var(--eg2);
}

#main-menu > div a {
    border-bottom: 1px solid white;
    color: white;
    padding: 5px 10px;
    display: block;
    margin-top: -1px;
    cursor: pointer;
}

#main-menu > div a:hover {
    background-color: var(--main-hover);
    color: white;
}

#main-menu > div > div {
    align-self: flex-start;
}

#main-menu > div > div > div {
    margin-left: 2em;
}

#main-menu > div > div > div a:nth-child(n + 2) {
    margin-top: -1px;
}

@media (min-width: 799px) {
    #main-menu {
        position: relative;
        width: auto;
        height: auto;
        top: 0;
        left: 0;
        padding: 0;
        display: block;
    }

    #main-menu > div {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        align-content: center;
        background-color: transparent;
        transform: none;
        width: auto;
        position: relative;
        font-size: medium;
        padding: 0;
        left: auto;
        top: auto;
    }

    #main-menu > div > div {
        position: relative;
        height: 40px;
    }

    #main-menu > div > div a {
        display: grid;
        place-items: center;
        padding: 0 17px;
        height: 40px;
        background-color: white;
        border: 1px solid var(--main);
        margin-left: -1px;
        margin-top: 0;
        justify-items: end;
        white-space: nowrap;
        color: var(--main);
    }

    #main-menu > div > div > div {
        position: absolute;
        white-space: nowrap;
        right: 0;
        top: 100%;
        height: 40px;
        margin-top: -0.5px;
        display: none;
    }

    #main-menu > div > div:hover > div {
        display: block;
    }

    #main-menu > div > div > div a:nth-child(n + 2) {
        margin-top: -1px;
    }
}

/****************
BURGER MENU ICON
*****************/
.burger-menu {
    height: 40px;
    border: 1px solid var(--main);
    display: inline-grid;
    place-items: center;
    padding: 0 15px;
    font-size: 1.5rem;
    cursor: pointer;
    background-color: white;
    color: var(--main);
}

#menu-bar {
    position: absolute;
    top: 3em;
    opacity: 0.1;
    z-index: -1;
}

.fa-xmark {
    padding: 0 1.5px;
}

@media (min-width: 799px) {
    .burger-menu {
        display: none;
    }
}

/***********
MASTHEAD LANDING
***********/
.hero-main {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: grid;
    place-items: center;
}

.hero-wordmark {
    height: 14em;
    padding: 0 3em 3em 3em;
    margin: 0 auto;
}

.hero-main-text {
    text-align: center;
}

body.cn .hero-main-text {
    font-family: var(--cn1);
}

.hero-main-text h2,
.hero-main-text h3 {
    color: white;
    line-height: 1;
}

.hero-main-text h2 {
    font-size: clamp(3rem, 10vw, 4rem);
    padding: 0 0.5em 0.3em 0.5em;
    line-height: 1.2;
}

.hero-main-text h2 span {
    display: block;
}

.hero-main-text h3 {
    font-size: clamp(1.3rem, 4vw, 2rem);
}

/*600*/
@media (min-width: 600px) {
    .hero-main-text h2 span {
        display: inline-block;
    }
}

/************
UNDER HERO
*************/
.under-hero {
    display: flex;
    flex-flow: column nowrap;
}

.under-hero-text {
    padding: 6em 1em 3em 1em;
}

.under-hero .title {
    padding-bottom: 1em;
}

.under-hero .title span {
    display: block;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.under-hero p {
    max-width: 520px;
}

.under-hero-img-1,
.under-hero-img-2 {
    width: 100%;
    height: 30em;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (min-width: 900px) {
    .under-hero {
        justify-content: space-between;
        flex-flow: row nowrap;
    }

    .under-hero-img-1,
    .under-hero-img-2 {
        flex-grow: 1;
        max-width: 60%;
        margin: 10em 0;
    }

    .under-hero-img-2 {
        order: -1;
    }

    .under-hero-text {
        margin-left: clamp(1em, 3vw, 10%);
        margin-right: clamp(1em, 3vw, 10%);
    }
}

/***********
ENJOY HERO
***********/
.enjoy-hero {
    padding: 10em 0;
}

.sub-hero-title {
    text-align: center;
    padding: 0 1em 4em 1em;
}

.enjoy-hero-cards {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-content: center;
    gap: 5em;
}

.enjoy-hero-card {
    min-height: 500px;
    flex-basis: 100%;
    display: flex;
    flex-flow: row nowrap;
    text-align: center;
}

.enjoy-hero-card h4 {
    padding: 0 1em 1em 1em;
}

.enjoy-hero-card p {
    line-height: 1.2;
}

.enjoy-hero-card-img {
    padding: 2em;
    min-height: 400px;
    flex-basis: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.enjoy-hero-card-img.order-1 {
    order: -1;
}

@media (min-width: 900px) {
    .enjoy-hero {
        padding: 5em 0;
    }

    .enjoy-hero-cards {
        flex-flow: row wrap;
        gap: 3em;
    }

    .enjoy-hero-card {
        flex-basis: 47%;
    }

    .enjoy-hero-card:first-child {
        margin-bottom: 25em;
    }

    .enjoy-hero-card:nth-child(2) {
        margin-top: 25em;
    }

    .enjoy-hero-card:nth-child(3) {
        margin-top: -10em;
        margin-bottom: 30em;
    }

    .enjoy-hero-card:nth-child(4) {
        margin-top: 15em;
        margin-bottom: 5em;
    }

    .enjoy-hero-card-img.order-1 {
        order: 1;
    }

    .enjoy-hero-card-img.order-2 {
        order: -1;
    }
}

@media (min-width: 1920px) {
    .enjoy-hero {
        max-width: 1920px;
        margin: 0 auto;
    }
}

/*********
SPECIAL
*********/
.harpy {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.harpy-img {
    position: absolute;
    bottom: 0;
    right: clamp(1%, 5vw, 20% * 2);
    width: 130px;
}

.event_title_1-1 {
    position: absolute;
    width: clamp(210px, 30vw, 300px);
    bottom: 60px;
    /* left: clamp(10%, 20vw, 80%); */
    right: clamp(1% + 100px, 5vw * 2, 20% * 3);
    /* background-color: green; */
}

/*1280*/
@media (min-width: 1280px) {
    .harpy {
        width: 1280px;
    }
}

.scripture {
    padding: 2em 1em;
    text-align: center;
    display: block;
}

.scripture blockquote {
    font-size: 2rem;
    font-family: var(--cn3);
    font-weight: bold;
    letter-spacing: -2px;
    display: block;
    padding-bottom: 5px;
    color: var(--aclick-dark);
}

.scripture span {
    font-size: 1.2rem;
}

.fea-1,
.fea-2 {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
}

.fea-1 div:first-child,
.fea-2 div:first-child {
    padding: 0 1em 1em 1em;
    font-size: 1.2rem;
}

.fea-1 div:last-child,
.fea-2 div:last-child {
    padding: 0 1em 3em 1em;
}

/*600*/
@media (min-width: 600px) {
    .fea-1,
    .fea-2 {
        flex-flow: row nowrap;
    }

    .fea-1 div:last-child {
        flex-basis: 100%;
    }

    .fea-2 div:last-child {
        order: -1;
        flex-basis: 60%;
        flex-shrink: 0;
    }

    .fea-2 div:first-child {
        flex-shrink: 1;
    }
}

.event-where {
    background-color: seagreen;
    color: white;
    padding: 2em 1em;
    display: flex;
    justify-content: center;
    border-radius: 1em;
    margin: 0 1em 2em 1em;
}

.event-where li {
    padding-left: 10px;
    padding-bottom: 8px;
    margin-left: 2.5em;
    font-size: 1.2rem;
    line-height: 1.3;
}

.event-where li:first-child {
    list-style-type: "地点:";
}

.event-where li:nth-child(2) {
    list-style-type: "日期:";
}

.event-where li:nth-child(3) {
    list-style-type: "时间:";
}

.event-where li:last-child {
    list-style-type: "导师:";
    padding-bottom: 0;
}

/*600*/
@media (min-width: 600px) {
    .event-where {
        display: inline-block;
        margin: 0 auto 2em auto;
    }
}

.event {
    padding-bottom: 2em;
}

.event h2 {
    font-size: 1.8rem;
    display: block;
    text-align: center;
    padding-bottom: 0.5em;
}

.event h3 {
    font-size: 1.3rem;
    display: block;
    text-align: center;
    padding-bottom: 10px;
}

.event p {
    padding: 0;
    line-height: 1.4;
}

.event-hilite ul {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
}

.event-hilite li {
    background-color: LightGoldenrodYellow;
    border: 1px solid darkkhaki;
    border-radius: 10px;
    margin: 1em;
    padding: 1em;
}

/*600*/
@media (min-width: 600px) {
    .event-hilite ul {
        flex-flow: row nowrap;
    }

    .event-hilite li {
        flex-basis: 20%;
    }
}

.std-tbl {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3em;
    margin-top: 1em;
}

.std-tbl tr,
td,
th {
    border: 1px solid #555;
    padding: 5px 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.std-tbl td {
    text-align: left;
}

.std-tbl.first-td-nowrap td:first-child {
    text-align: center;
    text-wrap: nowrap;
}

.std-tbl.last-td-align-right td:last-child {
    text-align: right;
}

.std-tbl.last-td-nowrap td:last-child {
    text-wrap: nowrap;
}

.std-tbl th {
    background-color: rgb(238, 255, 235);
    font-weight: bold;
}

.notes {
    display: flex;
    flex-flow: column wrap;
    padding: 0 1em 3em 1em;
    gap: 2em;
}

.notes div {
    border-radius: 10px;
    padding: 1em 1.5em 1.5em 1em;
}

.notes div:first-child {
    background-color: paleturquoise;
}

.notes div:last-child {
    background-color: khaki;
}

.notes h2 {
    color: var(--aclick-dark);
}

.notes span {
    background-color: crimson;
    color: white;
    padding: 5px 10px;
    display: block;
    border-radius: 10px;
    margin-top: 1em;
}

/*600*/
@media (min-width: 600px) {
    .notes {
        flex-flow: row nowrap;
    }

    .notes div {
        flex-basis: 50%;
    }
}

.event-urge {
    padding: 0 1em 3em 1em;
    text-align: center;
}

.event-lecture {
    display: flex;
    flex-flow: column wrap;
    gap: 2em;
    background-color: mediumseagreen;
    border-radius: 10px;
    padding: 1em 2em;
    margin: 0 1em;
    color: white;
    align-items: center;
}

.event-lecture div {
    padding-bottom: 1em;
}

.event-lecture p {
    padding: 1em 0;
}

.event-lecture h3 {
    text-align: left;
    padding-bottom: 1em;
    color: white;
}

.lecture-avatar {
    width: 150px;
    border-radius: 50%;
    border: 2px solid white;
    float: left;
    margin: 1em 1em 5px 0;
}

.lecture-book {
    width: 150px;
    float: left;
    margin: 1.5em 1em 0 0;
}

.lecture-q {
    padding-bottom: 1em;
}

.lecture-q li {
    list-style-type: disc;
    margin-left: 1em;
    padding: 0 0 8px 5px;
    line-height: 1.5;
}

/*600*/
@media (min-width: 600px) {
    .event-lecture {
        flex-flow: row nowrap;
    }

    .event-lecture div:first-child {
        flex-basis: 60%;
    }

    .event-lecture div:last-child {
        flex-basis: 40%;
    }

    .lecture-avatar {
        width: 170px;
        margin-bottom: 2em;
    }

    .lecture-book {
        width: 180px;
    }
}

.form-container {
    padding: 1em;
}

.form-container h2 {
    font-size: 1.8rem;
    letter-spacing: normal;
    padding-bottom: 1em;
    text-align: center;
}

.form-f-flex {
    display: flex;
    flex-flow: column wrap;
    gap: 1em;
    justify-content: space-between;
}

.submit-btn-wrap {
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

.submit-btn-wrap button {
    width: 100%;
}

.auth-form {
    display: flex;
    flex-flow: column nowrap;
    gap: 1em;
}

/*800*/
@media (min-width: 800px) {
    .form-f-flex {
        flex-flow: row nowrap;
    }

    .flex-1 div {
        flex-basis: 100%;
    }

    .flex-2 div {
        flex-basis: 50%;
    }

    .flex-3 div {
        flex-basis: 33%;
    }

    .submit-btn-wrap {
        width: 50%;
    }

    .flex-end div {
        align-self: flex-end;
    }
}

.alert {
    display: block;
    font-weight: bold;
    padding: 2em 0;
}

.alert p {
    padding: 1em;
    width: 90%;
    margin: 0 auto;
    background-color: #ccc;
    color: var(--main);
    text-align: center;
    border-radius: 10px;
}

.alert-success p {
    color: white;
    background-color: forestgreen;
}

.alert-danger p {
    color: var(--main);
    background-color: salmon;
}

form .alert {
    padding: 0;
    color: var(--alink-dark);
    font-weight: normal;
}

.text-danger {
    color: orangered;
}

.size-chart {
    width: 100%;
    max-width: 600px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: right;
    display: none;
    filter: drop-shadow(0px 15px 15px rgba(19, 52, 43, 0.5));
}

.chart-wrap {
    display: flex;
    flex-flow: column wrap;
    padding: 0 1em;
}

.chart-wrap div:first-child {
    padding-bottom: 1em;
}

.chart-wrap table {
    width: 100%;
    border: 2px solid var(--main);
}

.chart-wrap table th,
td {
    font-size: 1rem;
    background-color: white;
    text-align: center;
}

.chart-close {
    font-size: 2rem;
    padding: 0 5px;
    margin-right: 0.5em;
    border: 2px solid var(--main);
    border-bottom: 0;
    background-color: white;
    display: inline-block;
    cursor: pointer;
}

/*600*/
@media (min-width: 600px) {
    .chart-wrap {
        flex-flow: row nowrap;
    }

    .td-hide {
        display: none;
    }

    .chart-wrap div:first-child table {
        border-right-width: 1px;
    }

    .chart-wrap div:last-child table {
        border-left: 0;
    }

    .chart-wrap div:first-child {
        flex-basis: 70%;
    }

    .chart-wrap div:last-child {
        flex-basis: 30%;
    }
}

.location {
    display: flex;
    flex-flow: column wrap;
    padding: 0 1em 2em 1em;
    gap: 1em;
}

.qr-link-flex {
    display: flex;
    gap: 1em;
    align-items: center;
    flex-flow: row nowrap;
}

.qr-link-flex div {
    text-align: center;
    flex-basis: 50%;
    align-self: center;
}

.qr-link-flex img {
    width: 120px;
    margin: 0 auto;
}

/*800*/
@media (min-width: 600px) {
    .location {
        flex-flow: row nowrap;
        align-items: center;
    }

    .location div:first-child {
        flex-basis: 70%;
    }

    .location div:last-child {
        flex-basis: 30%;
    }

    .qr-link-flex {
        flex-flow: column wrap;
    }
}

.visit-info {
    font-weight: bold;
    font-size: 1.3rem;
}

.visitor-info-card {
    display: flex;
    border: 1px solid #aaa;
    border-radius: 5px;
    padding: 1em;
    margin-bottom: 1em;
    background-color: #eee;
}

.visitor-info-card h6 {
    flex-basis: 8em;
    padding-top: 3px;
    font-size: 0.9rem;
}

.visitor-info {
    display: flex;
    flex-flow: column wrap;
    width: 100%;
    gap: 1em;
}

@media (min-width: 600px) {
    .visitor-info {
        flex-flow: row nowrap;
        justify-content: space-evenly;
    }
}

/************
ABOUT
************/
.about-logo {
    margin: 0 auto;
    padding: 8em 0 5em 0;
    display: flex;
    justify-content: center;
}

.about-logo img {
    width: 75%;
    max-width: 600px;
}

.about-title {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin-bottom: 5em;
}

.about-title > div {
    /* background-color: yellow; */
    text-align: center;
}

.about-title > div:first-child {
    flex-basis: 50%;
    /* background-color: aquamarine; */
}

.about-title > div:last-child {
    flex-basis: 50%;
    /* background-color: khaki; */
}

.about-title > div:last-child h3 {
    text-align: center;
    /* background-color: #aaa; */
}

.about-content {
    display: flex;
    flex-flow: column nowrap;
    gap: 3em;
    margin-bottom: 5em;
}

.about-content > div {
    padding: 0 1em;
}

.about-content > div:first-child {
    /* background-color: lightcoral; */
}

.about-content > div:last-child {
    /* background-color: lightgreen; */
}

.about-img {
    min-height: 30em;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.about-img.inner-title h2 {
    text-align: center;
    padding-top: 1em;
    color: white;
    text-shadow: 0px 5px 15px black;
}

.img-bg-pos-right {
    background-position: right;
}

.page-title-unic {
    padding-top: 10em;
}

body.cn .cn-vertical {
    writing-mode: vertical-lr;
}

@media (min-width: 800px) {
    .about-logo {
        padding-right: clamp(5em, 40%, 50%);
    }

    .about-title > div:first-child {
        flex-basis: 40%;
    }
    .about-title > div:last-child {
        flex-basis: 60%;
    }

    .about-content {
        flex-flow: row nowrap;
        min-height: 30em;
        text-align: right;
    }

    .about-content.left-p p {
        margin-left: auto;
        max-width: 20em;
    }

    .about-content.right-p p {
        margin-right: auto;
        max-width: 20em;
        text-align: left;
    }

    .about-content > div:first-child {
        flex-basis: 40%;
        padding-left: 10%;
    }
    .about-content > div:last-child {
        flex-basis: 60%;
        padding-right: 10%;
    }

    .about-img.inner-title h2 {
        text-align: inherit;
        padding-right: 1em;
    }

    .maxwidth30em {
        max-width: 30em;
    }

    .fullwidth-self-align-right {
        margin-left: auto;
    }

    .padd-0-fullwidth {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/************
EVENT INFO
************/
.event-info .title-main h1 {
    position: relative;
    padding-bottom: 10px;
}

.event-info .title-main h1::before {
    content: "◖";
    position: absolute;
    left: calc(50% - 3em);
    top: 40%;
    transform: translateY(-50%);
    display: block;
}

.event-info .title-main h1::after {
    content: "◗";
    position: absolute;
    right: calc(50% - 3em);
    top: 40%;
    transform: translateY(-50%);
    display: block;
}

.event-info .title-main span {
    display: block;
    padding-bottom: 5px;
}

.event-promo {
    padding: 2em 1em;
}

.event-promo p {
    background-color: rgb(83, 53, 31);
    color: white;
    padding: 1em 10px 1.1em 10px;
    display: inline-block;
    border-radius: 10px;
    font-size: 1.1rem;
}

.event-poster-1,
.event-poster-2 {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 1em;
    margin-bottom: 2em;
    display: grid;
    grid-template-columns: 50%;
    gap: 0;
    padding: 1.5em;
    color: white;
}

.event-poster-1 > div:first-child {
    align-self: end;
}

.event-poster-1 > div:last-child {
    align-self: start;
    justify-self: end;
}

.event-poster-2 > div:first-child {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}

.event-poster-2 > div:last-child {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
}

.action-btn a {
    display: inline-block;
    padding: 0.5em 1.5em;
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    text-wrap: nowrap;
}

.action-btn a:hover {
    background-color: white;
    color: var(--main);
}

.urge-login-wrap {
    display: block;
    text-align: center;
}

.urge-login {
    display: inline-block;
    margin: 0 auto;
    background-color: aliceblue;
    text-align: center;
    border-radius: 1em;
    padding-bottom: 0em;
}

.urge-login h4 {
    padding: 1em;
}

/*600*/
@media (min-width: 600px) {
    .event-info .title-main span {
        display: inline-block;
        padding-right: 20px;
    }
}

/*********
CONTENT
**********/
.content {
    display: block;
    /* background-color: gold; */
}

/*900*/
@media (min-width: 1920px) {
    .boxed {
        width: 1920px !important;
        margin: 0 auto !important;
    }
}

.col-type-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
}

.hilite-img-1,
.hilite-img-2 {
    flex-basis: 50%;
    object-fit: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hilite-img-1 {
    -webkit-mask-image: url("/frontend/imgs/mask_hilite_01.svg");
    mask-image: url("/frontend/imgs/mask_hilite_01.svg");
}

.hilite-img-2 {
    -webkit-mask-image: url("/frontend/imgs/mask_hilite_02.svg");
    mask-image: url("/frontend/imgs/mask_hilite_02.svg");
}

.hilite-text,
.hilite-text-reorder {
    flex-basis: 50%;
    padding: 0 1em;
}

.home-title2 {
    position: relative;
    padding-bottom: 2em;
    text-align: center;
}

.home-title2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    width: 100%;
    height: 1px;
    border-top: 2px dotted #aaa;
    z-index: -1;
}

.home-title2 h3 {
    display: inline-block;
    padding: 0 20px;
    background-color: white;
    z-index: 9;
}

.padd-0 {
    padding: 0 !important;
}
.padd-1em {
    padding: 1em !important;
}
.padd-bottom-0-5em {
    padding-bottom: 0.5em !important;
}
.padd-bottom-1em {
    padding-bottom: 1em !important;
}
.padd-bottom-1-5em {
    padding-bottom: 1.5em !important;
}
.padd-bottom-2em {
    padding-bottom: 2em !important;
}
.padd-bottom-3em {
    padding-bottom: 3em !important;
}
.padd-top-0-5em {
    padding-top: 0.5em !important;
}
.padd-top-1em {
    padding-top: 1em !important;
}
.padd-top-1-5em {
    padding-top: 1.5em !important;
}
.padd-top-2em {
    padding-top: 2em !important;
}
.padd-top-3em {
    padding-top: 3em !important;
}
.align-left {
    text-align: left !important;
}
.padd-left-right-1em {
    padding-left: 1em;
    padding-right: 1em;
}
.padd-left-right-2em {
    padding-left: 2em;
    padding-right: 2em;
}

.border-radius-10px img {
    border-radius: 10px;
}
.nowrap {
    text-wrap: nowrap;
}
.text-alert {
    color: var(--ahover);
}
.text-left {
    text-align: left !important;
}
.block {
    display: block;
}
.line-height-1-5 {
    line-height: 1.5;
}
.inline-block {
    display: inline-block;
    margin: 0 auto;
}
.color-white {
    color: white;
}

.msg-box {
    padding: 1em 3em;
    background-color: darkslategrey;
    color: white;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 2em;
}

.msg-box h4 {
    padding: 0;
    margin: 0;
    color: white;
}

.rsp-padd-LR-1em {
    padding-left: 1em !important;
    padding-right: 1em !important;
}

.width-max-600px {
    width: min(100%, 600px) !important;
    margin: 0 auto !important;
}

/*980*/
@media (min-width: 980px) {
    .rsp-padd-left-right-1em {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/*******
MAIN
*******/
main {
    padding-top: 9em;
}

.title-h {
    font-size: 2rem;
    text-align: center;
    padding: 0.5em 0 1em 0;
}

.formset {
    display: flex;
    flex-flow: column nowrap;
    padding-top: 11em;
}

.formset > div:nth-child(1) {
    position: relative;
    text-align: center;
    padding-bottom: 1em;
}

.formset > div:nth-child(1) .form-img {
    display: none;
    width: 100%;
    object-fit: cover;
    /* -webkit-mask-image: url('/frontend/imgs/form_img_mask_3.png'); */
    -webkit-mask-repeat: no-repeat;
    /* mask-image: url('/frontend/imgs/form_img_mask_3.png'); */
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100%;
}

.form-wrap {
    padding: 0 1em 2em 1em;
}

form > div {
    padding-bottom: 1em;
}

form > div:last-child a {
    padding-right: 1em;
}

.opt-action {
    display: flex;
    justify-content: space-between;
}

.align-right {
    text-align: right;
}
.align-left {
    text-align: left;
}
.align-center {
    text-align: center;
}

.padd-right-1em {
    padding-right: 1em;
}

.sep-bottom {
    position: relative;
    padding-bottom: 2em;
    margin-bottom: 2em;
}
.sep-bottom:before {
    content: "";
    position: absolute;
    width: 50%;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text);
}

#reg-form {
    padding: 1em;
    background-color: aliceblue;
    border-radius: 1em;
}

/*600*/
@media (min-width: 500px) {
    .form-wrap {
        width: 500px;
        margin: 0 auto;
    }
}

/*900*/
@media (min-width: 900px) {
    .formset {
        flex-flow: row nowrap;
    }

    .formset > div:nth-child(1) {
        text-align: right;
        flex-basis: 50%;
        flex-grow: 1;
    }

    .formset > div:nth-child(1) .form-img {
        display: block;
    }

    .formset > div:nth-child(1) h3 {
        position: absolute;
        top: 0;
        right: 2em;
    }

    .form-wrap {
        flex-grow: 0;
        padding-right: 10%;
    }
}

/*1280*/
@media (min-width: 1280px) {
    .formset {
        width: 1280px;
        margin: 0 auto;
    }
}

/************
STATIONS
*************/
.station-meta {
    padding: 2em 0;
}

.station-hilite {
    padding: 1.5em 2em;
    background-color: khaki;
    border-radius: 5px;
    display: inline-block;
    text-align: left;
    margin-bottom: 2em;
}

.station-hilite p {
    padding: 0;
}

.station-hi-hilite {
    color: FireBrick;
}

.station-subtitle {
    padding-bottom: 1em;
}

.station-content p {
    max-width: none !important;
}

.qr-wrap-respond {
    width: 150px;
    text-align: center;
    font-size: 0.9rem;
    margin: 0 auto;
}

.station-repond-btn {
    margin: 0 auto;
    width: fit-content;
    padding: 1em 0;
}

/*800*/
@media (min-width: 800px) {
    .station-repond-btn {
        margin: 0;
    }
}

/**************
ALERT MESSAGES
***************/
.alert-field {
    padding: 1px 7px;
    display: inline-block;
    margin: 0 1em;
}

.alert-field p {
    font-size: 1rem;
    padding: 0;
}

.alert-red {
    background-color: var(--alert-red-bg);
    color: var(--alert-red-text);
}

.alert-green {
    background-color: var(--alert-green-bg);
    color: var(--alert-green-text);
}

.alert-blue {
    background-color: var(--alert-blue-bg);
    color: var(--alert-blue-text);
}

.alert-main {
    font-size: 1.1rem;
    text-align: center;
    padding: 1em 2em;
    border-radius: 5px;
    width: clamp(300px, 50%, 35em);
    margin: 0 auto;
}

.div-center {
    display: flex;
    justify-content: center;
    padding: 0;
}

.error404-msg {
    padding: 2em 2em;
    text-align: center;
}

.error404-msg h3 {
    padding-bottom: 1em;
}

.error404-msg h5 {
    line-height: 1.5;
}

.error404-msg h6 {
    padding: 1em 0;
}

.error404-msg ul {
    text-align: left;
    padding: 0 1em;
    list-style-type: decimal;
    display: inline-block;
}

.error404-msg li {
    line-height: 1.3;
    padding: 5px 0;
}

.error-ways {
    margin: 0 auto;
}

/**************
DASHBOARD
***************/
.dash-wrapper {
    display: flex;
    flex-flow: column nowrap;
    align-content: center;
}

.dash-head {
    position: relative;
    border: 1px solid var(--text);
    padding: 1em;
    margin: 7em 1em 1em 1em;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-notify {
    position: absolute;
    top: 15em;
    display: flex;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    z-index: 1001;
}

.mship-badge {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
}

.badge-info-wrap {
    position: absolute;
    top: 14em;
    display: none;
    flex-flow: column nowrap;
    gap: 2em;
    background-color: white;
    border: 1px solid var(--text);
    padding: 1.5em 2em;
    margin: 1em;
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal backdrop overlay */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

/* Show modal when active */
.badge-info-wrap.show {
    display: flex;
}

.modal-backdrop.show {
    display: block;
}

.badge {
    width: 130px;
    padding: 1em 2em 0.5em 0;
    float: left;
}

.badge-info-wrap p {
    font-size: 0.9rem;
    padding: 0;
}

.badge-info-wrap h6 {
    padding-bottom: 10px;
    line-height: 1.3;
}

.badge-info-wrap h6 span {
    display: none;
}

/*500*/
@media (min-width: 500px) {
    .badge-info-wrap h6 span {
        display: inline;
    }

    .badge-info-wrap h6 i {
        display: none;
    }
}

/*700*/
@media (min-width: 700px) {
    .badge-info-wrap {
        width: min(100%, 700px);
        margin: 1em auto;
        left: 50%;
        transform: translate(-50%, 0);
    }

    .dash-notify {
        left: 50%;
        transform: translate(-50%, 0);
    }
}

/***********
STICKY FOOTER
************/
body {
    display: flex;
    flex-direction: column;
}

.content-wrap {
    /* min-height: calc(100vh - (276px + 8em)); */
}

footer {
    position: relative;
    margin-top: auto; /*sticky footer must*/
    padding: 8em 1em 3em 1em;
    text-align: center;
    color: white;
    background-image: url("/frontend/imgs/bg/bg_footer_loop.png");
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: auto 100%;
}

footer a,
footer a:visited {
    color: white;
}

footer a:hover {
    color: var(--text);
}

.footer-wrap {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    font-family: var(--eg2);
}

.gap-before-footer {
    height: 10em;
    background-color: aqua;
}

/*1280*/
@media (min-width: 1280px) {
    .footer-wrap {
        width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }
}

.footer-wrap div {
    padding-bottom: 1em;
}

.footer-wrap div:nth-child(3) {
    order: -1;
}

.footer-wrap div:nth-child(1) {
    order: -1;
    width: 2em;
}

.footer-wrap div:nth-child(3) i {
    font-size: 2rem;
    padding: 0 5px;
}

.footer-wrap div:nth-child(2) span {
    display: block;
}

/*800*/
@media (min-width: 800px) {
    footer {
        padding: 10em 1em 4em 1em;
    }
    .footer-wrap {
        flex-flow: row nowrap;
        justify-content: space-between;
    }

    .footer-wrap div:nth-child(2),
    .footer-wrap div:nth-child(3) {
        order: 0;
    }

    .footer-wrap div:nth-child(2) span {
        display: inline;
    }
}
