/* * {
    border: 0.5px solid var(--primary-color) !important;
} */

.main.container {
    align-items: start;
    justify-content: start;
}
.content {
    padding-left: 10vw;
    padding-right: 10vw;
    padding-top: 15vh;
    padding-bottom: 30vh;
    width: 100%;
}
.title-text {
    text-align: left;
    align-items: start;
    margin-bottom: 2rem;
}
.title-text p {
    max-width: max-content;
}
.background-overlay {
    position: fixed;
    height: 100vh;
    width: 100vw;
    left: 0;
    top: 0;
}
.search {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    display: flex;
    border: 0.5px solid var(--primary-color);
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
    margin-bottom: 5rem;
}

.search * {
    min-width: 0 !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
}

.search h3 {
    min-width: max-content !important;
    flex-grow: 0;
}

.search select {
    min-width: max-content !important;
    flex-grow: 0 !important;
    flex-basis: 0;
}

.search.search input {
    max-width: none !important;
    flex-grow: 1;
}

.projects {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.project {
    height: 400px;
    width: 250px;
    border: 0.5px solid var(--primary-color);
    border-radius: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
}
.project:hover {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.4);
}
.project img {
    width: 100%;
    height: 50%;
    object-fit: contain;
}

#team .grid {
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: clip !important;
    /* gap: 2rem; */
    box-sizing: border-box !important;
    max-height: none !important;
}

#team > .grid .grid-item:last-of-type {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    justify-self: flex-start;
    justify-content: center !important;
    align-items: flex-start !important;
    /* max-width: 80%; */
    /* padding: 1rem; */
    /* scroll-snap-type: y mandatory !important;
    scroll-snap-points-y: repeat(45vh) !important;
    scroll-behavior: smooth; */
    overflow-x: hidden !important;
    /* -ms-overflow-style: none !important; */
    scrollbar-width: none !important;
    box-sizing: border-box;
    overflow-y: hidden !important;
    min-height: 55vh;
} 

#team > .grid .grid-item:last-of-type::-webkit-scrollbar {
    display: none;
}

#team .subtitle-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 40vw;
    margin: 1rem !important;
    height: 100%;
    min-height: 45vh;
    box-sizing: border-box;
    justify-self: center;
    overflow: hidden;
    overflow-y: scroll !important;
    align-self: center;
    justify-content: flex-start;
    border: 0.5px solid var(--primary-color);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0));
    border-radius: 0.5rem;
    padding: 1rem;
}

#team .subtitle-text:hover .proj-description {
    white-space: normal;
    min-height: max-content;
    overflow: visible !important;
}

#team .subtitle-text .img {
    height: 100%;
    min-height: 15vh;
    max-height: 30vh;
    background-size: cover;
    cursor: pointer;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
}

#team .subtitle-text .img:hover {
    scale: 1.1;
    opacity: 0.9;
    margin-bottom: 1rem;
    background-size: contain;
}

#team .subtitle-text .img:nth-of-type(1) {
    background-image: url("../assets/main/SPARKHS-SCHEDULE-IMAGE-2.png");
}

#team .subtitle-text h3,
#team .subtitle-text .img {
    border: 0.25px solid var(--secondary-color);
    border-radius: 0.1rem;
    padding: 0.2rem;
}

#team .subtitle-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    text-align: left;
    margin-bottom: 0.5rem;
}

#team .subtitle-text h3 span {
    font-size: 1rem;
    line-height: 0.5rem;
}

#team .subtitle-text .proj-description {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    min-height: 1.1rem;
    overflow: hidden;
    margin-top: 0;
    margin-left: 0;
}

.proj-description {
    font-weight: normal;
    color: var(--secondary-color);
}

.proj-tagline {
    margin: 0;
}

.ticker-box {
    margin: 0;
    margin-top: 0;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    font-size: 1rem;
    background: radial-gradient(
        circle at top left,
        var(--accent-color) 37%,
        var(--alt-color) 100%
    ) !important;
    padding: 0.1rem;
    padding-left: 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    overflow-x: hidden;
    min-height: 1.5rem;
}

.subtitle-text .ticker-box h5 {
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    animation: ticker 10s linear infinite;
    animation-play-state: paused;
    cursor: pointer;
    font-weight: normal;
}

.subtitle-text .ticker-box h5:hover {
    animation-play-state: running;
}

@keyframes ticker {
    0% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

.tags {
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    justify-self: flex-end !important;
    align-items: center;
    overflow: visible !important;
    overflow-x: scroll;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    border: 0.25px solid var(--primary-color);
    border-radius: 0.1rem;
    padding: 0.25rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: transparent;
}

.tag:hover {
    letter-spacing: 0.05rem;
    background: radial-gradient(
        circle at bottom left,
        var(--accent-color) 37%,
        var(--alt-color) 100%
    ) !important;
}

#end {
    text-align: center;
    margin-top: 5rem;
}

#login .title-text {
    align-items: center;
}
#login button {
    background-color: var(--accent-color) !important;
}

footer {
    scroll-snap-align: none !important;
}

@media (max-width: 1512px) {
    #team > .grid .grid-item:last-of-type {
        grid-template-columns: repeat(3, 1fr);
        min-width: 80% !important;
        box-sizing: border-box;
    }

    #team .subtitle-text {
        max-width: 100%;
    }

    #team .subtitle-text h4 {
        margin-top: 0;
    }

    #team .subtitle-text .ticker-box {
        margin-top: 0;
    }

    #team .subtitle-text .img {
        min-height: 10vh !important;
    }

    #team .subtitle-text:hover {
        scale: 1 !important;
    }

    #team .subtitle-text:hover h3 {
        letter-spacing: 0 !important;
    }
}

@media (max-width: 768px) {
    #team .grid {
        gap: 0.5rem !important;
    }

    #team > .grid .grid-item:last-of-type {
        grid-template-columns: repeat(1, 1fr);
        min-width: 100%;
    }

    #team .subtitle-text h3 {
        font-size: 1.2rem;
    }

    #team .subtitle-text h5 {
        font-size: 0.9rem;
    }

    #team .subtitle-text .tag {
        font-size: 0.8rem !important;
    }
}

#mainloader {
    position: fixed;
    top: calc(50vh - 1.5rem);
    left: calc(50vw - 1.5rem);
}

section {
    scroll-snap-align: none;
}

.title-text h1 {
    text-align: center;
    margin: 0 !important;
    line-height: 2.5rem !important;
}

.title-text span {
    font-size: 1.25rem !important;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.title-text h2 {
    background: radial-gradient(
        circle at top left,
        var(--accent-color) 37%,
        var(--alt-color) 100%
    ) !important;
    padding: 1rem;
    padding-left: 2rem;
    padding-right: 5rem;
    border-radius: 0.25rem;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: normal;
}

.title-text.submission {
    align-items: center;
    width: 100vw;
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    background: radial-gradient(circle at bottom left, rgba(102, 16, 242, 0.7) 37%, rgba(0, 29, 74, 0.7) 100%) !important;
    margin-top: 8rem;
    padding: 2rem;
}

.title-text p {
    max-width: 50%;
    margin: 0;
}

.title-text button {
    background-color: var(--alt-color);
}

.title-text .tags {
    margin-top: 1rem;
}

.title-text .tags .tag {
    font-size: 1.2em;
}

.img {
    background-image: url(/thumbnail/0103d6e44892e6cfdc6a4f18d8c022b8);
}

.hero {
    display: flex;
    width: 50%;
    margin-left: 25%;
    gap: 2rem;
    flex-flow: row wrap;
}

.slider {
    flex: 2 0 0;
    border: 0.25px solid var(--secondary-color);
    border-radius: 1rem;
    overflow: clip !important;
    overflow-clip-margin: 2rem !important;
}

.info {
    flex: 1 0 0;
    border: 0.25px solid var(--secondary-color);
    border-radius: 1rem;
    padding: 1rem;
    height: max-content;
}

.info h1 {
    font-weight: bold;
}

.info h1:hover {
    letter-spacing: 0.1rem;
}

.info ul {
    color: var(--secondary-color) !important;
}

.info p {
    padding-left: 1.25rem;
    color: var(--secondary-color) !important;
    margin-bottom: 2rem;
}

.info p.date-text {
    color: var(--secondary-color) !important;
    margin: 0;
    padding: 0;
    margin-top: 1rem !important;
}

.info .ticker-box:last-of-type {
    opacity: 0.8;
}

.buttons {
    display: flex;
    flex-flow: row wrap;
    min-width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}
.buttons svg {
    font-weight: 900;
    color: white;
    cursor: pointer;
}

.leftarrow, .rightarrow, .dots {
    font-size: 3rem;
    position: absolute;
    cursor: pointer;
    font-weight: bold;
}

.leftarrow {
    top: calc(50% - 1em);
    left: 1rem;
}

.rightarrow {
    top: calc(50% - 1em);
    right: 1rem;
}

.dots {
    font-size: 5rem;
    bottom: 0;
    width: 100%;
    text-align: center;
    letter-spacing: 1rem;
}

.dot-selected {
    color: var(--accent-color);
    font-size: 5rem;
    letter-spacing: 1rem;
}

.bullet-container {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    min-width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.bullet-container p {
    min-width: 100%;
    text-align: center;
    margin: 0;
}

.bullet-container .bullet {
    width: 100%;
    max-height: 3rem;
    margin: 0 !important;
    margin-top: 1rem !important; 
    display: flex !important;
    overflow-x: scroll;
    flex-direction: row !important;
    justify-content: center;
}

.bullet .bullet-item {
    aspect-ratio: 1 / 1 !important;
    background-color: var(--secondary-color);
    border-radius: 50%;
    height: 0.6rem !important;
    width: 0.6rem !important;
    max-height: 1rem;
    opacity: 0.7;
    margin: 0.5rem;
    cursor: pointer;
}

.active-bullet, .bullet-item:hover {
    opacity: 1 !important;
    scale: 1.1 !important;
}

.slider {
    min-height: 50vh !important;
    position: relative;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider h1 {
    position: absolute;
    left: 1rem;
    top: 0;
}

.slider-content {
    display: flex;
    flex-flow: row nowrap;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory !important;
}

.slider-content > * {
    scroll-snap-align: center;
    flex: none;
}

iframe {
    min-height: 100% !important;
    min-width: 100% !important;
    aspect-ratio: unset !important;
}

.questions {
    margin-bottom: 5rem;
}

.questions h1 {
    margin-top: 3rem;
    cursor: pointer;
    font-weight: bold;
}

.questions h1:hover {
    letter-spacing: 0.1rem;
}

.questions p {
    max-height: 3rem;
    /* max-width: 50% !important; */
    overflow: hidden;
    transition: max-height 1s ease !important;
}

.questions p:hover {
    max-height: 1000rem;
    transition: max-height 1s ease !important;
}

.judging {
    min-width: 100%;
    margin-bottom: 30rem;
}

.judging h1 {
    font-size: 2rem;
}

.judgement {
    min-width: 100%;
    display: flex;
    border: 0.25px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-flow: row wrap;
    box-sizing: border-box;
    overflow: hidden !important;
}

.judgement > div {
    flex: 0 0 0;
    min-width: max-content;
}

.judgement h1 {
    margin: 0 !important;
    flex: 1 0 0;
    text-align: right;
}

.judgement div button {
    background-color: var(--accent-color) !important;
    margin-top: 0.25rem;
}

.judgement .rest {
    min-width: 100%;
}

.judgement .rest .col {
    min-width: 100%;
    display: flex;
    align-items: center !important;
    flex-flow: row wrap;
    justify-items: center !important;
    margin-top: 3rem !important;
}

.rest .col.left {
    margin-top: 0.5rem !important;
}

.col h2 {
    margin: 0 !important;
}
.col h3 {
    margin: 0;
}

.col input {
    min-width: 25vw !important;
    box-shadow: none;
    border: 0.25px solid var(--primary-color);
}

.col.left div {
    padding-left: 1rem;
}

.judgement .rest .col > *:nth-child(1) {
    flex: 1 0 0;
    max-width: 100%;
}
.judgement .rest .col > *:nth-child(2) {
    flex: 0 0 0;
    word-wrap: break-word;
}

.judgement textarea {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 50%;
    height: 15vh;
}

.judgement span {
    color: var(--secondary-color);
}

.judgement h3 {
    margin: 0;
}

@media (max-width: 768px) {
    .title-text span {
        max-width: 90%;
    }

    iframe {
        display: block !important;
    }
    
    .hero {
        width: 70% !important;
        margin-left: 15% !important;
    }
}

@media (max-width: 1024px) {
    .slider {
        min-width: 100%;
    }
}

@media (max-width: 1512px) {
    .hero {
        width: 80%;
        margin-left: 10%;
    }
}