@media (max-width: 768px) {
    h1 {
        font-size: 28px;
        font-family: 'IPST-SemiBold', sans-serif;
        font-style: normal;
    }
    .featureBox {
        height: calc(70vh);
        padding: 20px 20px 60px 20px;
        align-content: center;
        background-position: center;
        background-repeat: no-repeat;
    }

    .featureBox>h1 {
        font-size: 2em;
    }
    .mainContent-1 {
        padding: 30px 16px;
        color: white;
        background-color: rgb(20, 20, 20);
        display: flex;
        flex-wrap: wrap;
    }
    .mainContent-1-sub {
        display: block;
        margin-bottom: 40px;
    }
    .mainContent-1-sub-img {
        flex: 1;
        padding: 10px 60px;
    }
    .mainBox {
        display: flex;
        flex-wrap: wrap;
        padding: 30px 16px;
    }
    .artProjectsCard {
        min-width: calc(99%);
    }
    .contentBox {
        display: block;

    }
    .awardProjectsCard {
        min-width: calc(99.9%);
    }
    .paperCard {
        max-width: calc(99.9%);
    }
    .formGroup {
        width: 100%;
    }
    .logo {
        justify-content: center;
    }
    .textBox{
        /*background-color: rgba(0, 0, 0, 0.46);*/
        /*backdrop-filter: blur(2px);*/

    }

}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* color: red; 測試環境用*/

}

html {
    scroll-behavior: smooth;
    /*filter: grayscale(100%);*/


}

body {
    padding: 0px;
    margin: 0px;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'IPST-Regular', sans-serif;
    font-style: normal;
    background-color: rgb(235, 235, 235);
    background-color: #1a1a1a;


}

h1 {
    font-size: 65px;
    font-family: 'IPST-SemiBold', sans-serif;
    font-style: normal;
}

h2 {
    font-family: 'IPST-SemiBold', sans-serif;
    font-style: normal;
}

.techTitle2 {
    text-align: center;
    font-size: 2.2em;
}

.techTitle3 {
    text-align: center;
    font-size: 1.2em;
}

h3 {
    font-family: 'IPST-SemiBold', sans-serif;
    font-style: normal;

}

h4 {
    font-family: 'IPST-Medium', sans-serif;
    font-style: normal;

}

h5 {
    font-family: 'IPST-Medium', sans-serif;
    font-style: normal;

}

h6 {
    font-family: 'IPST-Medium', sans-serif;
    font-style: normal;
}

p {
    font-family: 'IPST-Light', sans-serif;
    font-style: normal;
}

.forAdmin {
    color: white;
    font-family: 'IPST-Medium', sans-serif;
    font-size: 1.2em;
}

.forAdmin > a {
    color: white;
    font-family: 'IPST-Medium', sans-serif;
    background-color: #890000;
    padding: 4px 6px;
}

.forAdmin > a:hover {
    color: #000000;
    background-color: #ff8484;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);

}

.overlay {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    height: calc(86vh);
    padding: 60px 10%;
}

.logo {
    display: flex;
    justify-content: flex-start;
    font-size: 24px;
    font-weight: bold;
    color: white;
    width: 100%;
}

#explore-button {
    align-self: center;
    margin-bottom: 30px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

#explore-button:hover {
    background: white;
    color: black;
}

#explore-button > a {
    color: rgb(255, 255, 255);
}

#explore-button > a:hover {
    color: black;
}

.infoBox {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.iconImag {
    width: 36px;
}

.iconImag1 {
    width: 38px;
}

.footerSubBox {
    width: fit-content;
}

#showInfo {
    opacity: 0;
    transition: opacity 2s ease;
}

#showInfo.visible {
    opacity: 1;
}

.slide-in {
    position: relative;
    animation: slideFromRight 1s ease-out forwards;
    opacity: 0;
}

.reveal-span {
    display: inline-block;
    animation: clipUnroll 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes clipUnroll {
    0% {
        clip-path: inset(0 50% 0 50%);
        opacity: 0;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* 正式，上面要整理  */
a {
    text-decoration: none;
    color: rgb(0, 41, 204);
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: rgb(0, 108, 171);
}

a:active {
    text-decoration: none;
}

a:focus {
    text-decoration: none;
}

.mainContent {
    margin-top: 80px;
}

.showThreeLines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showTwoLines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.showOneLines {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

button {
    background-color: rgba(255, 255, 255, 0);
    border: #ffffff 1px solid;
    color: white;
    padding: 5px;
    line-height: 1em;
    margin: 0px 10px;
}

button:hover {
    background-color: rgb(255, 255, 255);
    border: #ffffff 1px solid;
    color: rgb(0, 0, 0);
    padding: 5px;
}

.loginAndOutbutton {
    background-color: rgba(255, 255, 255, 0);
    border: #ffffff 1px solid;
    color: white;
    padding: 5px;
    line-height: 1em;
    margin: 0px 10px;
}

.loginAndOutbutton:hover {
    background-color: rgb(255, 255, 255);
    border: #ffffff 1px solid;
    color: rgb(0, 0, 0);
    padding: 5px;
}

.footerloginBox {
    background-color: #2c2c2c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-family: 'IPST-Regular', sans-serif;
    font-style: normal;

}

.footerloginBox > a {
    text-decoration: underline;
    color: white;
}

.mainBox {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 80px;
    background-color: #1a1a1a;
    color: white;
    gap: 10px;
}

.artProjectsCard {
    max-width: calc(33.33% - 9.9px);
    border: 0px;
    background-color: #1a1a1a;
    padding: 10px;
    margin-bottom: 30px;
}

.artProjectsCard > a {
    color: white;
}
.cardText {
    color: white;
}
.cardText > a {
    color: white;
}


.awardProjectsCard {
    max-width: calc(50% - 9.9px);
    width: calc(50% - 9.9px);
    border: 0px;
    background-color: #1a1a1a;
    padding: 10px;
}

.awardProjectsCard > a {
    color: white;
}

.awardProjectsCard:hover {
    background-color: #464646;
}


.paperCard {
    max-width: calc(50% - 9.9px);
    border: 0px;
    background-color: #1a1a1a;
    padding: 10px;
}

.paperCard > a {
    color: white;
}

.abstract {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cardH2 {
    font-size: 1.4em;
    line-height: 1.2em;
}
.cardSpan{
    font-size: 0.8em;
    line-height: 1em;
}

.cardP {
    font-size: 0.8em;
    line-height: 1.6em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artProjectsCard:hover {
    background-color: #464646;

}

.artProjectsCard > img {
    width: 100%;
}

.projectImage {
    background-size: cover;
    width: 100%;
    aspect-ratio: 16/9;
}

.adminBox {
    padding: 20px;
    background-image: url(/images/admin_background.jpg);
    background-blend-mode: color;
    background-color: #e6e6e65e;
    background-size: cover;
    background-position: center center;
}
.info2 {
    color: #e1e1e1;
}


.contentBox {
    padding: 20px;
    background-blend-mode: color;
    background-color: #111111;
    background-size: cover;
    background-position: center center;
    display: flex;
    gap: 20px;
}

.contentBoxInfo {
    flex: 1;
}

.contentBoxImgs {
    flex: 1;
}

.featureBox {
    height: calc(90vh);
    background-size: cover;
    display: flex;
    flex-wrap: wrap;
    padding: 12% 26% 8% 15%;
    color: white;
    align-content: flex-start;
}
.featureBox>H1{
    margin-block-start: 0px;
    margin-block-end: 0px;
    line-height: 0.7em;
    font-family: "elza", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.featureBoxH1 {
    margin-block-start: 0px;
    margin-block-end: 0px;
    line-height: 0.7em;
    font-family: "elza", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.featureBoxSubitem {
    height: calc(40vh);
    background-size: cover;
    display: flex;
    flex-wrap: wrap;
    padding: 10% 30% 10% 17%;
    color: white;
    align-content: flex-start;
}
.textBox{
    height: 60vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    background-color: rgba(0, 0, 0, 0);
    padding: 20px;
}

/*上傳樣式，暫時 */

.formContainer {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #222;
    color: white;
}

.formGroup {
    margin-bottom: 1.5rem;
}

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

.formRow .formGroup {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    /* font-weight: bold; */
}

input[type="text"],
input[type="number"],
textarea,
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #222;
    border: 0.8px solid white;
    border-radius: 0px;
    color: white;

}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-radius: 0;
    box-shadow: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: black !important;
    background-color: transparent !important;
    transition: background-color 9999s ease-in-out 0s;
    color: white;
}

.submitButton {
    background-color: #fff;
    color: #111;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    /* font-weight: bold; */
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submitButton:hover {
    background-color: #ddd;
}

.mainContent-1 {
    padding: 40px 24%;
    color: white;
    background-color: rgb(20, 20, 20);
    display: flex;
    flex-wrap: wrap;
}

.mainContent-1-sub {
    display: flex;
    margin-bottom: 40px;
}

.mainContent-1-sub-img {
    flex: 1;
    padding: 20px;
}

.mainContent-1-sub-text {
    flex: 2;
}


.contentText {
    font-size: 0.9em;
    font-family: 'IPST-Regular';
    line-height: 1.6em;
    color: rgb(240, 240, 240);
    margin-bottom: 20px;

}

li {
    font-size: 14px;
    margin: 0px;
    padding: 0px;
    list-style-position: inside;
}

.partnerBox {
    max-width: calc(24.99% - 9.9px);
}

.loginBox {
    width: 100%;
    height: calc(90vh);
    display: flex;
    justify-content: center;
    align-items: center;
}

.adminButton {
    color: darkred;
}
.comingSoon{
    margin-top: 20px;
    font-size: 1em;
    padding:2px 14px;
    border: 1px solid white;
    color:  white;
    border-radius: 40px;
    font-family: 'IPST-Medium';
}
