/* The Big Backgroundski */

.fixed-bg-parallax-container
{
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center 0;
    background-attachment: fixed;
    background-size:cover;
    overflow: hidden;

    transform: translateZ(-1);
    will-change: transform;

    min-height: 500px;

    perspective: 1px;
}

.fixed-bg-parallax-content
{
    padding-top: 10vh;
    padding-bottom: 10vh;
    z-index: 100;
    width: 100vw;
    position: relative;
}

.fixed-bg-content-container
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fixed-bg
{
    width: 100%;
    height: 60vh;

    background-attachment: fixed;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 117%;  
    
    transform: translateZ(-1);
    will-change: transform;
    perspective: 1px;

    transition: 
        transform 2s ease-in-out,
        top 2s ease-in-out,
        bottom 2s ease-in-out,
        left 2s ease-in-out,
        right 2s ease-in-out,
        position 2s ease-in-out;

    z-index: -1;
}

.fixed-bg.scale-content
{
    height: fit-content;
    padding: 48px;
}

.bg-container
{
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    width: 100%;
    height: 100%;

    color: rgb(255, 255, 255);

    font-size: 2rem;
    text-shadow: 3px 3px 5px black;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
}

.bg-container h1
{
    font-family: "Helvetica-Bk", sans-serif;
    font-weight: bolder;
    font-size: 4.6rem;

    margin-bottom: 0;

    position: relative;

    z-index: 1;
}

.bg-container h3
{
    font-family: "Helvetica-Bk", sans-serif;
    font-weight: bolder;
    font-size: 3rem;

    margin-bottom: 0;

    position: relative;

    z-index: 1;
}

.bg-container.title h1::before
{
    content: "";

    position: absolute;
    top:-20%;
    left: -25%;
    right:0;
    bottom:0;
    width: 150%; height: 120%;

    z-index: -1;

    backdrop-filter: blur(2px);
    mask-image: radial-gradient(ellipse, black, 50%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse, black, 50%, transparent 70%);
}

.bg-container.title div
{
    z-index:0;
}
.bg-container.title div::before
{
    content: "";

    position: absolute;
    top: 35%;
    left: 11%;
    right: 0;
    bottom: 0;
    width: 70%;
    height: 30%;

    z-index: -1;

    backdrop-filter: blur(2px);
    mask-image: radial-gradient(ellipse, black, 50%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse, black, 50%, transparent 70%);
}

.bg-fit
{
    height: fit-content !important;
}

.img-code-one
{
    background-image:url("/assets/images/pictures/DSC_9800.webp");
}

.img-code-two
{
    background-image:url("/assets/images/pictures/DSC_0736.webp");
}

/*Featured Card Carousel*/

.generic-card-container
{
    position: relative;
    width: 100%;
    min-height: 386px;
}

.featured-carousel-container
{
    position: absolute;
    top: 20%;
    right:15vw;

    width: 100%;
    height: 100%;

    max-width: 512px;
    max-height: 386px;

    overflow: visible;
}

.featured-carousel-selector-bar
{
    position: absolute;
    left: 25%;
    bottom: -24px;
    width: 50%;
    height: 12px;

    border-radius: 0px 0px 8px 8px;
    overflow: hidden;

    display: grid; 
    grid-template-columns: auto auto auto;
    gap: 8px;
}

.featured-carousel-selector-bar div
{
    background-color: #2c2c2c;
    cursor: pointer;

    transition: background-color 0.3s ease-in-out;
}

.featured-carousel-selector-bar .active
{
    background-color: #5c5c5c;
}

.featured-card
{
    /* background: radial-gradient(500px 200px at 10% 15%, rgba(46, 125, 50, 0.14), transparent 60%), radial-gradient(500px 200px at 90% 20%, rgba(102, 187, 106, 0.16), transparent 65%), #ffffff;*/
    box-sizing: border-box;
    position:absolute;
    left:0;
    top:0;

    border-radius: 18px;
    border: 1px solid rgba(65, 61, 56, 0.14);
    padding: 1.35rem 1.4rem;

    height: 100%;
    width: 100%;

    gap: 16px;

    font-family: "Roboto", sans-serif;
    font-style: italic;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    box-shadow: 1px 1px 16px rgb(0, 0, 0);

    transition: box-shadow 0.2s ease-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out;

    opacity: 0%;
    interactivity:unset;
    pointer-events: none;

    transform: translateX(50%) rotate(15deg);
}

.featured-card.active
{
    opacity: 100%;
    interactivity: inert;
    pointer-events: all;
    transform: translateX(0%) rotate(0);
}

.featured-card:hover
{
    box-shadow: 1px 1px 16px rgb(205, 205, 205);
    filter: brightness(1.03);
}

.featured-card h3
{
    font-size: 1.6rem;
    margin:0px;
}

.featured-card-image
{
    height: 100%;
    width: 100%;
    border-radius: 16px;

    border: 1px solid rgba(206, 206, 206, 0.9);

    background-origin: center;
    background-position: center;

    background-size: 100%;
    transition: background-size 0.15s ease-out, filter 0.2s ease-out;
}

.featured-card-title
{
    display: grid;
    grid-template-columns: 3fr 1fr;
}

.featured-card .featured-card-title span
{
    font-style: italic;
    color: #434343;
}

.featured-card span
{
    font-style: normal;
    font-weight: 500;
}

.featured-card-button
{
    padding: 16px;
    border-radius: 16px;

    box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);

    border: 1px solid rgba(65, 61, 56, 0.05);
    
    font-style: normal;
    font-weight: bolder;
    text-align: center;

    transition: filter 0.2s ease-out;
    cursor: pointer;
}

.featured-card-button:hover
{
    filter: brightness(1.1);
}

.absolute
{
    position: absolute;
}

.featured-card:before
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 999px;
    
    box-sizing: inherit;
}

.top-line::before
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 999px;
    
    box-sizing: inherit;
}

.top-line
{
    overflow: hidden !important;
}

.featured-card h4
{
    margin:0;
}

/* Coloured Feature Cards */
/* Blue Cards */
.card-orange:before 
{
    background: linear-gradient(90deg, #feaf28, #e4cf31);
}

.card-orange 
{
    background: radial-gradient(500px 200px at 10% 15%, rgba(230, 219, 0, 0.44), transparent 60%), radial-gradient(500px 200px at 90% 20%, rgba(239, 207, 3, 0.36), transparent 80%), #ffffff;
}

.card-orange .featured-card-button
{
    background: radial-gradient(circle at 20% 100%, rgb(255, 181, 44), #ffe942);
}

/* Green Cards */

.card-green:before, .card-green.top-line::before
{
    background: linear-gradient(90deg, #93e839, #3cb228);
}

.card-green
{
    background: radial-gradient(500px 200px at 10% 15%, rgba(119, 230, 0, 0.44), transparent 60%), radial-gradient(500px 200px at 90% 20%, rgba(156, 239, 3, 0.36), transparent 80%), #ffffff;
}

.card-green .featured-card-button
{
    background: radial-gradient(circle at 20% 100%, rgb(65, 208, 17), #8aff42);
}

/* Blue Cards */

.card-blue:before 
{
    background: linear-gradient(90deg, #71b6f3, #2387cf);
}

.card-blue
{
    background: radial-gradient(500px 200px at 10% 15%, rgba(0, 184, 230, 0.44), transparent 60%), radial-gradient(500px 200px at 90% 20%, rgba(3, 133, 239, 0.36), transparent 80%), #ffffff;
}

.card-blue .featured-card-button
{
    background: radial-gradient(circle at 20% 100%, rgb(138, 216, 255),rgb(55, 188, 255));
}
/* Main Body Stylings */
.overlay-card
{
    background-color:rgb(255, 255, 255);
    width: 100%;
    height:512px;

    margin-top: -13vh;

    transform: skewy(-7deg);
    transform-origin: 50% 0;
}

.overlay-card-container
{
    width: 100%;
    max-height: 128px;
}

.body-content
{
    background-color:rgb(255, 255, 255);
    width: 100%;
    position: relative;
    z-index: 1;

    font-family: "Roboto", sans-serif;
    font-weight: normal;
    font-size: 1.3rem;
    color: rgb(36, 36, 36);
}

.body-content.body-content-single
{
    padding-top: 32px;
    padding-bottom: 32px;
}

.body-content.body-content-single h1
{
    margin-top: 0px;
}

.body-wrapper
{
    position: relative;
    z-index: 1;
}

.body-wrapper .body-content
{
    background-color: unset;
}

.body-wrapper::after
{
    z-index: 0;
    content: "";
    display:block;
    width: 100%; height: 35vh;
    background-color: rgb(255, 255, 255);
    transform: skew(0deg, 2deg);
    position: absolute; top: 0px; left: 0px;
    transform-origin: right;
    
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
}

.section-wrapper
{
    position: relative;
    z-index: 1;

    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
}

.section-wrapper .body-content
{
    padding: 32px 0px 32px 0;
}

/* Home Page Elements */
.intro-hi
{
    /*position: absolute; top: -5vh; right: 21vw;*/

    font-family: "Roboto", sans-serif;
    font-weight: 1000;
    font-size: 3rem;

    z-index: 3;

    /*
    color: #fee022;
    text-shadow: 2px 2px 4px black;
    */

    margin-top: -15px;
    margin-bottom: -10px;

    color:rgb(29, 29, 17);
}

.intro-body
{
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
     
    color:rgb(36, 36, 36);
}

.intro-section
{
    /*padding: 32px 32px 86px 32px;*/
    padding: 32px 32px 0px 32px;
}

.button-big
{
    width: 100%;

    font-weight: bold;
    color:white;
    border-radius: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    background-color: rgb(114, 187, 255);

    transition: background-color 0.2s linear;
}

.button-big:hover
{
    background-color: rgb(0, 142, 250);
    cursor: pointer;
}

/*About Me Page Elements*/
.image-sticker
{
    width: auto; height: 108px;
    position: relative; 
}

.image-sticker.bot-left
{
    left:-7vw;
    bottom:2vw;
    transform: rotateZ(-25deg);
}

.image-sticker.top-right
{
    top:0vw;
    right:-6vw;
    transform: rotateZ(5deg);
}

/* Header */
.raised-header
{
    width: 100%;
    height: 64px;
    z-index: 2;
    background-color: white;
    box-shadow: 1px 1px 16px rgb(0, 0, 0);
}

.raised-header h2
{
    padding:0;
    margin:0;
}
.body-top-shadow
{
    box-shadow: inset 0 24px 24px -24px rgba(0, 0, 0, 0.5);
}

/*Page-Specific Formatting */

#page-about .body-wrapper::after
{
    transform: skew(0deg,-1deg) !important;
    transform-origin: left;
}

#page-about .fixed-bg
{
    background-image: url("/assets/images/misc/Emeryville-Jun.jpg");
}

#page-projects .fixed-bg
{
    background-image: url("/assets/images/honkgame/honk_screenshot_3.png");
    background-size: cover;
}
