* {
    box-sizing: border-box;
    position: relative;
    font-family: 'Noto Serif TC', serif;
}

html {
    font-size: 1rem;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    /* font-family: '微軟正黑體', Arial, Helvetica, sans-serif; */
    font-weight: normal;
}

a,
button {
    border: 0;
    text-decoration: none;
    color: unset;
    cursor: pointer;
}

a:focus,
button:focus {
    outline: none;
}


/* font */

.title,
.subtitle,
.para,
.text {
    /* font-family: '微軟正黑體', Arial, Helvetica, sans-serif; */
    font-weight: normal;
    color: #E9F8FF;
}

.title {
    font-size: 2rem;
    line-height: 3rem;
}

.subtitle {
    font-size: 1.4rem;
    line-height: 2rem;
}

.para {
    font-size: 1rem;
    line-height: 2rem;
    margin-bottom: 2rem;
}

.text {
    font-size: 1rem;
    line-height: 1.5rem;
}

::selection {
    background: transparent;
}

@media (max-width:768px) {
    .title {
        font-size: 2rem;
        line-height: 3rem;
    }
}

@media (max-width:425px) {
    .title {
        font-size: 1.4rem;
        line-height: 2rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .para {
        line-height: 1.8rem;
    }
}

h2.title {
    margin-bottom: 3rem;
    opacity: 0;
}

h2.title span {
    display: inline-block;
    font-size: 60px;
    font-weight: 700;
    line-height: 80px;
    z-index: 1;
}

h2.title span::after {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    background-color: #0081DC;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: -1;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

@media(max-width:575px) {
    h2.title span {
        font-size: 48px;
    }
}


/* image */

.img {
    background-image: url();
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.img.img-sq {
    width: 100%;
    padding-top: 100%;
}

.img.img-rect {
    width: 100%;
    padding-top: 75%;
}


/* btn */

.outter-btn {
    display: inline-block;
    cursor: pointer !important;
    padding: 1.5px;
    background: linear-gradient(50deg, #e9f8ff, #04F4FC, #e9f8ff, #04F4FC);
    background-size: 200% 400%;
    background-repeat: repeat;
    animation: btn 1.5s linear infinite;
}

.outter-btn:hover .inner-btn {
    background-color: transparent;
    color: #0c233d;
}

.inner-btn {
    letter-spacing: 2px;
    color: #e9f8ff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    background-color: #0c233d;
    transition: all 0.2s;
}

@keyframes btn {
    0% {
        background-position: 200% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn {
    width: 160px;
    padding: 12px;
    font-size: 1rem;
    line-height: 1rem;
    text-align: left;
}


/* others */

.wrapper {
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

section {
    padding: 5rem 0;
}

.flex {
    display: flex;
}

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

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

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

@media(max-width:575px) {
    section {
        padding: 3rem 0;
    }
}


/* bg */

.menu-btn.outter-btn {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(60deg, #e9f8ff, #04F4FC, #e9f8ff, #04F4FC);
    background-size: 200% 400%;
    animation: btn 2s linear infinite;
}

.menu-btn.outter-btn:hover .inner-btn {
    background-color: transparent;
    color: #0c233d;
}

.menu-btn .inner-btn {
    width: 100px;
    text-align: center;
    color: #e9f8ff;
    background-color: #0c233d;
}

.menu-btn.outter-btn.light-bg {
    background: linear-gradient(60deg, #0c233d, #0081dc, #0c233d, #0081dc);
    background-size: 200% 400%;
}

.menu-btn.outter-btn.light-bg:hover .inner-btn {
    color: #e9f8ff;
    background-color: transparent;
}

.menu-btn.light-bg .inner-btn {
    color: #0c233d;
    background-color: #e9f8ff;
}

.menu {
    width: 150vw;
    height: 150vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -3;
    opacity: 0;
    transition: all 0.5s;
}

.menu.active {
    opacity: 1;
    z-index: 90;
}

.bg {
    width: 100vw;
    height: 100vh;
    background-image: url('../media/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
}

.bg .c_sm {
    width: 55vw;
    height: 55vw;
    position: absolute;
    top: -30vw;
    left: 10vw;
    opacity: 0.5;
    border-radius: 50%;
    background: rgb(0, 140, 207);
    background: radial-gradient(circle, rgba(0, 140, 207, 1) 0%, rgba(0, 140, 207, 0) 50%);
}

.bg .c_md {
    width: 58vw;
    height: 58vw;
    position: absolute;
    bottom: -10vw;
    left: -28vw;
    opacity: 0.5;
    border-radius: 50%;
    background: rgb(0, 140, 207);
    background: radial-gradient(circle, rgba(0, 140, 207, 1) 0%, rgba(0, 140, 207, 0) 50%);
}

.bg .c_lg {
    width: 85vw;
    height: 85vw;
    position: absolute;
    bottom: -45vw;
    left: 30vw;
    opacity: 0.5;
    border-radius: 50%;
    background: rgb(0, 180, 207);
    background: radial-gradient(circle, rgba(0, 180, 207, 1) 0%, rgba(0, 180, 207, 0) 50%);
}

.star {
    transition: opacity 0.5s ease;
    filter: blur(1.2px);
    position: absolute;
    opacity: 0;
}


/* landing */

.landing {
    padding: 0;
    width: 100vw;
    height: 100vh;
}

.landing svg {
    position: absolute;
    top: 0;
    left: 0;
}

.landing #moveR {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}

.landing .logo {
    width: 360px;
    height: auto;
    margin-top: 15rem;
    animation: logo 1.5s forwards;
}

.landing .info {
    width: 88px;
    height: 260px;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: start;
    color: #e9f8ff;
    font-size: 20px;
    line-height: 32px;
    margin-top: 2rem;
    opacity: 0.7;
}

@media(max-width:575px) {
    .landing svg {
        transform: translate(30px, 20vh) rotate(90deg) scale(2.5);
    }
    .landing #moveR {
        flex-direction: row-reverse;
        padding-top: 40px;
    }
    .landing .logo {
        height: 300px;
        width: auto;
        margin-top: 37vh;
    }
    .landing .info {
        margin-right: 2rem;
        transform: translateY(72px);
    }
}

.typewriter {
    display: block;
    height: 0;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 2px;
    /* border-bottom: 4px solid orange; */
}

.typewriter.tp1 {
    animation: typing_1 0.7s 1s steps(7, end) forwards;
}

.typewriter.tp2 {
    animation: typing_2 1.1s 1.7s steps(11, end) forwards;
}

.typewriter.tp3 {
    animation: typing_3 1.3s 2.8s steps(13, end) forwards;
}

.typewriter0 {
    color: #fff;
    font-family: monospace;
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 5s steps(20, end), blink-caret .75s step-end infinite;
}


/* The typing effect */

@keyframes logo {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes typing_1 {
    from {
        height: 0;
    }
    to {
        height: 128px;
    }
}

@keyframes typing_2 {
    from {
        height: 0;
    }
    to {
        height: 200px;
    }
}

@keyframes typing_3 {
    from {
        height: 0;
    }
    to {
        height: 238px;
    }
}


/* intro */

.intro .box-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.intro .box {
    width: 228px;
    height: 172px;
    flex-shrink: 0;
    border-width: 2px;
    border-style: solid;
    /* border-image: linear-gradient(135deg, #04F4FC 30%, #E9F8FF, #04F4FC 70%) 1; */
    background: linear-gradient(30deg, #04F4FC22, #04F4FC00 70%), linear-gradient(150deg, #E9F8FF22, #E9F8FF00 70%), linear-gradient(270deg, #0081dc22, #0081dc00 70%);
    padding: 1rem;
}

@media(max-width:575px) {
    .intro .box-wrap {
        justify-content: center;
        align-items: center;
        margin: 0 -6px;
        margin-top: 20px;
    }
    .intro .box {
        width: calc(50% - 12px);
        height: 200px;
        margin: 6px;
    }
}

.intro .box:nth-child(1) {
    animation: box-border 1.5s -1s linear infinite;
}

.intro .box:nth-child(2) {
    animation: box-border 1.5s -0.75s linear infinite;
}

.intro .box:nth-child(3) {
    animation: box-border 1.5s -0.5s linear infinite;
}

.intro .box:nth-child(4) {
    animation: box-border 1.5s -0.25s linear infinite;
}

.intro .box p {
    line-height: 1.8rem;
    font-weight: 500;
}

@keyframes box-border {
    0% {
        border-image: linear-gradient(135deg, #04F4FC 20%, #E9F8FF, #04F4FC 80%) 1;
    }
    50% {
        border-image: linear-gradient(135deg, #E9F8FF 20%, #04F4FC, #E9F8FF 80%) 1;
    }
    100% {
        border-image: linear-gradient(135deg, #04F4FC 20%, #E9F8FF, #04F4FC 80%) 1;
    }
}


/* wedo */

.wedo-group {
    width: 100%;
    height: 60vh;
}

.wedo-group .content {
    width: 240px;
    height: 200px;
    text-align: center;
    position: absolute;
}

.wedo-group .content img {
    width: 72px;
    height: 72px;
    margin-bottom: 0.8rem;
}

.wedo-group .content p {
    width: 180px;
    margin: 0 auto;
}

.wedo-group .content:nth-child(1) {
    top: -24%;
    left: 56%;
}

.wedo-group .content:nth-child(2) {
    top: 6%;
    left: 0;
}

.wedo-group .content:nth-child(3) {
    top: 10%;
    left: 36%;
}

.wedo-group .content:nth-child(4) {
    top: 12%;
    right: 0;
}

.wedo-group .content:nth-child(5) {
    top: 46%;
    left: 18%;
}

.wedo-group .content:nth-child(6) {
    top: 52%;
    left: 60%;
}

@media(max-width:575px) {
    section.wedo {
        padding-bottom: 4rem;
    }
    .wedo-group {
        display: flex;
        height: auto;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .wedo-group .content {
        position: relative;
        width: calc(50% - 12px);
        margin-bottom: 40px;
    }
    .wedo-group .content:nth-child(1),
    .wedo-group .content:nth-child(2),
    .wedo-group .content:nth-child(3),
    .wedo-group .content:nth-child(4),
    .wedo-group .content:nth-child(5),
    .wedo-group .content:nth-child(6) {
        top: 0;
        left: 0;
    }
    .wedo-group .content:nth-child(even) {
        transform: translateY(120px);
    }
    .wedo-group .content p {
        width: 160px;
        margin-bottom: 20px;
    }
}


/* gallery */

.gallery svg {
    margin: 10px 0;
}

.gallery-container {
    margin-top: -80px;
}

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

.gallery-group a {
    display: block;
    width: 32%;
}

.gallery-group .text {
    font-size: 14px;
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 1;
    color: #333;
}

.gallery-group .img {
    width: 100%;
    padding-top: 72%;
}

.gallery .more {
    position: absolute;
    right: 15px;
    bottom: -80px;
    z-index: 1;
}

@media(max-width:575px) {
    .gallery #gallery-svg-T {
        transform: scale(2.5) translateX(-60px);
        margin-bottom: 40px;
    }
    .gallery #gallery-svg-B {
        transform: scale(2.5) translateX(60px);
        margin-top: 60px;
    }
    .gallery-container {
        margin-top: 0px;
    }
    .gallery-group {
        flex-direction: column;
    }
    .gallery-group a {
        width: 100%;
    }
    .gallery-group .img {
        width: 100%;
        padding-top: 72%;
        margin-bottom: 20px;
    }
    .gallery .more {
        bottom: -40px;
    }
}


/* footer */

footer {
    width: 100vw;
    background-color: #ffffff15;
    backdrop-filter: blur(4px);
    padding: 40px 0;
    margin-top: 40px;
}

footer .logo {
    width: 200px;
    height: auto;
    margin-top: 2.5rem;
}

footer .title {
    font-size: 20px;
    line-height: 32px;
    color: #e9f8ff;
    letter-spacing: 1px;
    margin: 12px 0;
}

footer .line {
    width: 240px;
    height: 1px;
    background: linear-gradient(90deg, #0081dc, #04F4FC);
    margin-bottom: 12px;
}

footer .line::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #04F4FC;
    position: absolute;
    top: -2px;
    right: -4px;
}

footer .text {
    line-height: 36px;
}

footer span.img {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    margin-right: 8px;
    transform: translateY(5px);
}

@media(max-width:575px) {
    footer .logo {
        margin-top: 10px;
    }
}