/*------------ PROJECTS PAGE LAYOUT ------------ */

body.no-scroll
{
    overflow: hidden;
}

@media only screen and (max-width: 820px) {
	.content {
		margin-top: 20px;
	}
}

/*------------ PROJECT CAROUSEL ------------ */

#carousel-block
{
    box-sizing: border-box;
    padding:40px;
    width: 100vw;
    margin-left: calc(50% - 50vw); /* fix for small gap near scrollbar*/
    margin-right: calc(50% - 50vw);
    background-color: var(--secondary-highlight-color);
    margin-bottom:20px;
}

#project-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 20px;
}

#project-carousel .splide__track {
    flex: 1 0 100%;
}

#project-carousel .splide__slide {
    overflow: hidden;
    margin: 0 20px 0 20px;
}

#project-carousel .slide-inner {
    position: relative;
    height: 380px;
    /* border-radius: 10px; */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#project-carousel img,
#project-carousel video {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

#project-carousel video {
    aspect-ratio: 16 / 9;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'%3E%3Ccircle cx='32' cy='28' r='22' fill='white' fill-opacity='0.85'/%3E%3Cpath d='M24 18 L42 28 L24 38 Z' fill='%2357d3d3'/%3E%3Ctext x='32' y='68' text-anchor='middle' font-family='sans-serif' font-size='12' fill='white'%3ELoading...%3C/text%3E%3C/svg%3E"),
        linear-gradient(#d8fffc, #57d3d3);
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: 64px 80px, contain;
}

#project-carousel .slide-caption {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.3em;
    opacity: 0;
    transition: opacity 300ms ease;
    text-align: center;
}

#project-carousel .splide__slide.is-active .slide-caption {
    opacity: 1;
}

#project-carousel .splide__arrows {
    display: contents;
}

#project-carousel .splide__arrow {
    position: static;
    top: auto;
    transform: none;
    background-color: var(--main-highlight-color);
    opacity: 1;
}

#project-carousel .splide__arrow:hover {
    background-color: #343434;
}

#project-carousel .splide__arrow svg {
    fill: #222;
}

#project-carousel .splide__arrow:hover svg {
    fill: var(--main-highlight-color);
}

#project-carousel .splide__arrow--prev {
    order: 1;
}

#project-carousel .splide__arrow--next {
    order: 3;
}

#project-carousel .splide__pagination {
    order: 2;
    position: static;
    margin: 0;
}

#project-carousel .splide__pagination__page {
    background: #ffffffbd;
}

#project-carousel .splide__pagination__page.is-active {
    background: var(--main-highlight-color);
}

@media only screen and (max-width: 1020px) {
    #project-carousel .splide__slide {
        width: 100%;
        height: auto;
        align-self: center;
        margin: 0;
    }

    #project-carousel .slide-inner {
        height: auto;
    }

    #project-carousel img,
    #project-carousel video {
        width: 100%;
        height: auto;
    }
}

@media only screen and (max-width: 600px) {
    #project-carousel .slide-caption {
        font-size: 1.1em;
    }
}

/*------------ PROJECTS PAGE ------------ */

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
}

.project {
	display: flex;
    flex-direction: column;
    flex-flow: column-reverse;
    width: 300px;
    height: 270px;
	/* border: #6CC solid 3px; */
    font-size: 1.1em;
    /* padding: 12px 0; */
    border-radius: 10px;
    background-color: white;
    background-image: linear-gradient(#d8fffc, #57d3d3);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: 25px 25px;
    overflow: hidden;
    cursor: pointer;
    /* transition: transform 400ms ease; */
}

/*
    .project:hover {
        transform: scale(1.02);
    }
 */

.project:hover .project-info {
    transform: translateY(0);
    background-color: #ffffffd9;
}

.project:hover .project-title {
    height: unset;
}

.project .break {
    height: 10px;
    border-bottom: 2px solid var(--main-highlight-color);
    margin-bottom: 10px;
}

.project-info {
    height: 85%;
    background-color: #ffffffbd;
    padding: 5px 15px;
    /* margin: 10px; */
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    pointer-events: none;

}

@media(hover) {
    .project-info {
        transform: translateY(170px);
        transform-origin: bottom;
        transition: transform 400ms ease,
            background-color 200ms ease;
    }
}

.project-button {
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 5px;
    background-color: var(--main-highlight-color);
    padding: 0.25em 1em;
    border-radius: 10px;
    pointer-events: all;
}

.project-button:hover,
.project-button:focus {
    background-color: #343434;
    color: var(--main-highlight-color);
}

.project-title {
    height: 65px;
    font-weight: bold;
    font-size: 1.4em;
    pointer-events: none;
}
.project img {
	position: relative;
	top: 0;
	left: 0;
}

#project-instructions {
    color: #2f7d7d;
    font-size: 22px;
    margin: 5px 0;
    text-align: center;
}

li.prettylist {
	left: 25px;
	list-style: square;
}

.description-modal {
    background-color: #000000aa;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

#modal-contents {
    max-height: 90%;
    min-height: 180px;
    width: 70%;
    min-width: 0;
    max-width: 800px;
    padding: 20px 20px 25px 25px;
    box-sizing: border-box;

    border: solid 4px #6CC;
    border-radius: 10px;
    background-color: white;

    overflow-y: auto;
    overflow-wrap: break-word;
    overscroll-behavior: contain;
    -ms-scroll-chaining: none;
}

#modal-header {
    display: flex;
    flex-direction: row-reverse;
}

#modal-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-right: 50px;
    flex-grow: 1;
}

#modal-close {
    position: fixed;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    width: 38px;
    height: 38px;
}

#modal-desc {
    font-size: 22px;
}

@media only screen and (max-width: 820px) {
    #modal-contents {
        width:90%
    }
    #modal-desc {
        font-size: 18px;
    }
    #modal-title {
        font-size: 26px;
    }
}

#fw-blurb {
    margin-top: 25px;
    padding:10px  20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-image:url("images/fw_stars_boost.gif");
    background-position: top;
    background-repeat: no-repeat;
    background-color: black;
    color: white;
    font-size: 1.1em;
}

#fw-blurb p {
    margin: 10px 0;
}

/*------------ CODE SAMPLE TAG ------------ */

#code-sample-tag {
    position: fixed;
    bottom: 15%;
    left: 0;
    z-index: 1;

    writing-mode: vertical-lr;
    text-orientation: mixed;

    font-weight: bold;
    font-size: 1.4em;
    text-decoration: none;
    color: #222;

    padding: 18px 10px;
    border-radius: 0 10px 10px 0;
    background-color: var(--main-highlight-color);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

#code-sample-tag span {
    display: inline-block;
    transform: rotate(180deg);
}

#code-sample-tag:hover {
    background-color: #343434;
    color: var(--main-highlight-color);
}

@media only screen and (max-width: 820px) {
    #code-sample-tag
    {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 180px auto 10px auto;
        display: block;
        width: fit-content;

        border-radius: 10px 10px 10px 10px;
        writing-mode: horizontal-tb;
        text-orientation: initial;

        padding: 10px 10px;
    }

    #code-sample-tag span {
        transform: none;
    }
}
