﻿.home-page {
    background-color: var(--primary-color);
    --article-header-size: 30px;
    --article-height: 26em;
    --sponsor-article-width: 100%;
    --sponsor-img-top: 13em;
    --sponsor-img-width: 112%;
    --promote-img-top: -4em;
    --promote-img-height: 28em;
    --promote-article-left: 14em;
    --promote-article-width: calc(100vw - 18em);

    --hero-width: 250px;
    --overhang: -10vw;
    --overhand-width: 60vw;
    --overhang-top: -40px;
}

@media (max-width: 768px) {
    /* xs, sm */
    #sponsor > div > div {
        justify-content: start !important;
    }
}

@media (min-width: 576px) {
    /* sm, md, lg, xl */
    .home-page {
        --hero-width: 250px;
        --overhang: -10vw;
        --overhand-width: 50vw;
        --overhang-top: -50px;
    }
}

@media (min-width: 768px) {
    /* md, lg, xl */
    .home-page {
        --article-header-size: 30px;
        --article-height: 26em;
        --sponsor-article-width: 45%;
        --sponsor-img-top: 7em;
        --sponsor-img-width: 85%;
        --sponsor-img-right: -10em;
        --promote-img-top: -4em;
        --promote-img-height: 28em;
        --promote-article-left: 20em;
        --promote-article-width: 50%;

        --hero-width: 30vw;
        --overhang: -4vw;
        --overhand-width: 35vw;
        --overhang-top: -20px;
    }

    /* consistent gig card height */
    #gigs .row > div {
        display: flex;
    }
}

@media (min-width: 992px) {
    /* lg, xl */
    .home-page {
        --hero-width: 30vw;
        --overhang: -4vw;
        --overhand-width: 400px;
        --overhang-top: -40px;
    }
}

@media (min-width: 1200px) {
    /* xl */
    .home-page {
        --hero-width: 450px;
        --overhang: -9vw;
        --overhand-width: 480px;
    }
}

.home-page .form-control, .home-page button, .home-page .input-group-text {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.home-page h3 {
    color: white;
}

.home-logo {
    height: 35px;
    width: auto;
}

.home-header a, .home-footer a {
    color: white;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: 16px;
}

.home-header a:active, .home-footer a:active {
    color: var(--secondary-color);
}

.home-page #sponsor {
    background-color: #5000D1;
    padding: 8rem 0;
    height: var(--article-height);
}

.home-page #sponsor article, .home-page #promote article {
    position: relative;
}

.home-page #sponsor h1, .home-page #promote h1 {
    text-transform: uppercase;
    font-stretch: 110%;
    font-size: var(--article-header-size);
    white-space: nowrap;
}

.home-page #sponsor img, .home-page #promote img {
    position: absolute;
}

.home-page #sponsor h1,
.home-page #sponsor p {
    color: white;
}

.home-page #sponsor .row,
.home-page #promote .row {
    height: 100%;
}

.home-page #sponsor .row > div,
.home-page #promote .row > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-page #sponsor article {
    width: var(--sponsor-article-width);
}

.home-page #sponsor img {
    top: var(--sponsor-img-top);
    width: var(--sponsor-img-width);
    right: var(--sponsor-img-right);
    height: auto;
}

.home-page #promote img {
    top: var(--promote-img-top);
    height: var(--promote-img-height);
    width: auto;
}

.home-page #promote article {
    left: var(--promote-article-left);
    width: var(--promote-article-width);
}

.home-page #promote h1 {
    color: #5000D1;
}

.home-page #promote p {
    color: black;
}

.home-page #promote {
    background-color: #FFF;
    height: var(--article-height);
}

.overhangs {
    position: relative;
    z-index: 2;
    text-align: center;
}

.overhang-right {
    right: var(--overhang);
}

.overhang-left {
    left: var(--overhang);
}

.home-hero img:first-child {
    width: var(--hero-width);
}

.home-hero img:not(:first-child) {
    position: absolute;
    z-index: 1;
    top: var(--overhang-top);
    width: var(--overhand-width);
}

.tabs {
    position: relative;
    top: -6em;
    z-index: 3;
}

.tabs input[type="radio"] {
    display: none;
}

.tabs label {
    background-color: var(--widget-inactive);
    border-radius: 0.5em 0.5em 0 0;
    padding: 0.5em 1em;
    cursor: pointer;
    color: var(--widget-inactive-text);
    transition: background-color, color 0.2s;
}

.tabs input[type="radio"]:checked + label {
    background-color: var(--widget-background);
    color: var(--widget-text);
}

.tabs input#search-sponsor:checked + label {
    background-color: var(--primary-bg-color);
}

.tabs input#search-promoter:checked + label {
    background-color: var(--tertiary-bg-color);
}

.tabs {
    --content-bg: var(--primary-bg-color); /* sponsor color */
}

/* When "Promoter" is checked, switch the variable */
.tabs:has(#search-promoter:checked) {
    --content-bg: var(--tertiary-bg-color); /* promoter color */
}

.tabs .content {
    background-color: var(--content-bg);
    border-radius: 0 0.5em 0.5em 0.5em;
}

body:has(> .home-page) {
    background-color: var(--primary-color);
    width: 100vw;
    overflow-x: hidden;
}

