.manrope {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.chakra-petch-regular {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.josefin-slab {
    font-family: "Josefin Slab", serif;
    font-optical-sizing: auto;
    font-weight: 00;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    font-family: Manrope, sans-serif;
    font-size: 13px;
    margin: 0;
    padding: 0;
    color: #252525;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    text-align: center;
    /* border-radius: 15em;
    background: rgba(255, 255, 255, 0.413);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 1px -1px 6px rgba(98, 98, 98, 0.1) ; */
}

a {
    background-color: rgb(38, 194, 62);
    color: white;
    padding: .1em;
    text-decoration: none;
    border-radius: 5px;
}

a:hover {
    background-color: #ffdf5f;
    color: #259679;
    border-radius: 7px;
}

a:visited {
    background-color: rgb(255, 178, 63);
    color: white;
    padding: .1em;
    text-decoration: none;
}

nav {
    padding: .8em;
}

nav ul {
    font-weight: 400;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav .nav-link,
nav .nav-link:visited,
nav .nav-link:hover {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    height: auto;
    background: rgb(255, 255, 255);
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: .5s ease-in-out;
    border-radius: 7px;
    box-shadow: rgba(79, 79, 79, 0.1) 0px 4px 6px -1px inset, rgba(82, 82, 82, 0.06) 0px 2px 4px -1px;
}

.overlay p {
    padding: 2.5rem;
    text-align: left;
    font-weight: 200;
    font-size: 0.8rem;
}


/* .overlay:hover {
    transition: .5s ease-in-out;
    transform: translate(-50%, -50%) rotateZ(5deg);
    background-color: rgb(255, 145, 200);
    color: #ffffff;
} */

#intro {
    margin-top: 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

#fliters {
    margin-top: 4rem;
}

.filter-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5%;
    cursor: -webkit-pointer;
}

.inactive {
    cursor: -webkit-pointer;
    width: 1rem;
    height: 1rem;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1px dotted #404040;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gogrid {
    cursor: -webkit-pointer;
    width: 1rem;
    height: 1rem;
    background-color: #ffffff;
    border: 1px dotted #404040;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tag:hover .inactive {
    cursor: -webkit-pointer;
    background-color: #ffdf5f;
    border: 0;
    transition: background-color 0.6s ease-in-out;
}

.tagg:hover .gogrid {
    cursor: -webkit-pointer;
    background-color: #ffdf5f;
    border: 0;
    transition: background-color 0.6s ease-in-out;
}


/* project-------------------------- */


/* #projects {
    transition: filter 3s ease-in-out;
} */

.section {
    width: 100vw;
    padding: 2rem;
}


/*  */

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project {
    transition: opacity 0.5s ease-in-out;
    /* opacity: 0; */
    padding-left: 6rem;
    padding-right: 6rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center;
}

#projects .project[hidden] {
    display: none !important;
}

.tag {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: .3rem;
    padding-bottom: 1.4rem;
    cursor: -webkit-pointer;
}

.tag p {
    font-size: 0.8rem;
    font-weight: 300;
}

.tag p sup {
    font-style: italic;
    font-size: .5rem;
    font-weight: 400;
}

.tagg {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: .3rem;
    padding-bottom: 1.4rem;
    cursor: -webkit-pointer;
}

.tagg p {
    font-size: .8rem;
    font-weight: 300;
}

.web {
    width: 10px;
    height: 10px;
    background-color: lightskyblue;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.print {
    width: 10px;
    height: 10px;
    background-color: yellowgreen;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.motion {
    width: 10px;
    height: 10px;
    background-color: rgb(255, 174, 74);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.etc {
    width: 10px;
    height: 10px;
    background-color: violet;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 3%;
}

.Slides.sliding {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3%;
    overflow: hidden;
}

.slideshow-container > img {
    border-radius: 3%;
}

.Slides.sliding img,
.Slides.sliding video {
    max-height: 600px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
    -webkit-user-drag: none;
    /* Safari */
    -khtml-user-drag: none;
    /* Konqueror */
    -moz-user-drag: none;
    /* Firefox */
    -o-user-drag: none;
    /* Opera */
    user-drag: none;
    /* Standard */
    pointer-events: none;
    /* 防止鼠标事件 */
    border-radius: 3%;
}

@keyframes slideInOut {
    0% {
        transform: translateX(10%);
    }
    15% {
        transform: translateX(0);
    }
    90% {
        transform: translateX(0);
        opacity: 1;
    }
}

.sliding {
    animation: slideInOut 13.6s;
}

.project .info {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: 500;
    display: grid;
    grid-template-columns: 1fr 3fr;
    text-align: left;
    padding-bottom: 3%;
    padding-top: 3%;
}

.project .info .title {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 1%;
    padding-top: 1%;
    font-weight: 600;
    line-height: .9rem;
}

.project .info .type {
    font-size: .7rem;
}

.project .info .description {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 1%;
    font-weight: 400;
    font-size: .9rem;
    line-height: 1rem;
    /* display: flex; */
    justify-content: center;
    max-width: 500px;
}

.project .info span {
    font-weight: 500;
}

.video_roll {
    display: flex;
    justify-content: center;
    align-items: center;
}

.videos {
    width: 100%;
    height: auto;
}

.handle_left {
    width: 25px;
    height: 25px;
    font-size: 1.5rem;
    /* background-color: rgb(177, 177, 177);
    border-radius: 50%; */
    z-index: 1000;
    cursor: pointer;
}

.handle_right {
    font-size: 1.5rem;
    width: 25px;
    height: 25px;
    /* background-color: rgb(177, 177, 177);
    border-radius: 50%; */
    z-index: 1000;
    cursor: pointer;
}

.handle_left:hover,
.handle_right:hover {
    background-color: rgb(255, 216, 98);
}


/* gridview */

.grid-view {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.grid-view .project--larger-media {
    padding-left: 2rem;
    padding-right: 2rem;
}

.grid-view .project--double {
    grid-column: span 2;
}

.grid-view .project--double .video {
    width: 100%;
}

.grid-view .project--fill-media {
    padding-left: 1rem;
    padding-right: 1rem;
}

.grid-view .project--fill-media .Slides.sliding,
.grid-view .project--fill-media .Slides.sliding img,
.grid-view .project--fill-media .Slides.sliding video {
    width: 100%;
    max-width: none;
}

.project .video > div,
.project .video iframe,
.project .video_roll .videos,
.project .video_roll video {
    border-radius: 3%;
}

.project .video > div,
.project .video_roll .videos {
    overflow: hidden;
}

.yearly-plan-slideshow {
    position: relative;
}

.yearly-plan-slideshow .Slides.sliding,
.yearly-plan-slideshow .Slides.sliding > div {
    width: 100%;
}

.yearly-plan-slideshow .video-click-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 3%;
}

.grid-view .project:hover {
    transform: rotate(1deg) scale(1.005);
    transition: transform 0.35s ease-in-out;
}

@media (max-width: 1200px) {
    .grid-view {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

footer {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    font-size: .7rem;
    letter-spacing: .02rem;
}


/* @media (max-width: 800px) {
body{font-size: 12px;}
    .inactive {
        cursor: -webkit-bing;
        width: .6rem;
        height: .6rem;
        background-color: #ffffff;
        border-radius: 50%;
        border: 1px dotted #404040;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .project{padding: 0;}
    .project .info {
        display: flex;
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
      
    }
    .project .info .title {
        padding-top: 0.2rem;
        padding-bottom: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        line-height: .8rem;
    }
    .project .info .type {
      
        font-size: .55rem;
    }
    .project .info .description {
        padding-top: 0.2rem;
        padding-bottom: 0rem;
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: .6rem;
    }
} */

@keyframes fall {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}

@media (max-width: 600px) {
    .tag p {
        font-size: .7rem;
        font-weight: 300;
    }
    .filter-list {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 3%;
        cursor: -webkit-pointer;
    }
    .project {
        display: block;
        transition: opacity 0.5s ease-in-out;
        /* opacity: 0; */
        padding: 2rem;
        border-bottom: 1px solid #ccc;
        box-sizing: border-box;
        text-align: center;
    }
    .project .info {
        font-family: 'Courier New', Courier, monospace;
        font-size: .8rem;
        font-weight: 500;
        display: flex;
        flex-direction: column;
        text-align: left;
        padding-bottom: 3%;
        padding-top: 5%;
    }
    .project .info .title {
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: 1%;
        padding-top: 1%;
        font-size: .8rem;
        font-weight: 600;
        line-height: .8rem;
    }
    .project .info .type {
        font-size: .7rem;
    }
    .project .info .description {
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: 1%;
        font-weight: 400;
        font-size: .8rem;
        line-height: .8rem;
        /* display: flex; */
        justify-content: center;
        max-width: 500px;
    }
    .overlay {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        width: 55%;
        height: auto;
        background: rgb(255, 255, 255);
        z-index: 1000;
        transform: translate(-50%, -50%);
        transition: .5s ease-in-out;
        border-radius: 7px;
        box-shadow: rgba(79, 79, 79, 0.1) 0px 4px 6px -1px inset, rgba(82, 82, 82, 0.06) 0px 2px 4px -1px;
    }
    .overlay p {
        padding: 2.5rem;
        text-align: left;
        font-weight: 200;
        font-size: 0.6rem;
    }
    .grid-view {
        display: grid;
        grid-template-columns: 1fr;
    }

    .grid-view .project--double {
        grid-column: span 1;
    }
}
