/* create variable for BG color */
:root {
    --bg-color: #2b2d40;
    --bg-alternate: #353754;
    --text-color: white;
    --link-color: rgb(246, 178, 255);
}

html {
    background: var(--bg-color);
    color: var(--text-color);
}

* {
    font-family: 'Jost', Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    line-height: 150%;
}

h1, h2, h3, h4 {
    font-family: 'Jost', Arial, Helvetica, sans-serif
}

h4 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 0;
}

body {
    margin: 0;
    padding: 0;
}

header {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 1em;
    position: fixed;
    left: 0;
    right: 0;
    box-shadow: 0px 4px 9px #3608226c;
    z-index: 10; /* helps to get video elements behind the header */
}

a {
    color: var(--link-color);
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}

a.active {
    font-weight: bold;
}

img {
    max-width: 100%;
    height: auto;
}

img.social-logo {
    box-shadow: none;
    filter: invert(1);
}

em {
    font-size: 1.4rem;
}


header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

header nav ul li {
    display: inline-block;
    margin-right: 20px;
}

header * {
    color: #fff !important;
}

header nav a {
    text-decoration: none;
    padding: 0.4rem 1rem;
    transition: background-color 0.3s ease;
}
header nav a:hover, a.active {
    background-color: #ffffff41;
    border-radius: 5px;
}

.image-link:hover{
    background: none;
    opacity: 0.8;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    background-color: var(--bg-alternate);
    padding: 3em;
    margin-top: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    box-sizing: border-box;

    /* background: radial-gradient(circle,rgba(24, 79, 82, 1) 0%, rgba(77, 97, 168, 1) 100%); */
}

section.no-bg {
    background: none;
    box-shadow: none;
}

section.news-item {
    flex-direction: column;
    gap: 0;
    padding: 3rem 6rem;
    box-sizing: border-box;
}

section.news-item h3, h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    background: #332c48;
    padding: 1rem;
    border-radius: 10px;
    background: #529da1;
    background: linear-gradient(270deg,rgba(82, 157, 161, 0) 0%, rgba(77, 97, 168, 0.52) 100%);
    width: 100%;
}


section img {
    border-radius: 5px;
    box-shadow: 2px 10px 18px 0px #281c32;
}

section span {
    width: 50%;
}

/* for long text to break it into multiple columns */
.two-col {
    column-count: 2;
    padding: 0 4rem;
}


h1 {
    font-size: 3.3rem;
}
h2 {
    font-size: 2.8rem;
}
h3 {
    font-size: 2.0rem;
    margin-bottom: 0;
}

h1, h2, h3 {
    font-weight: 400;
    line-height: 110%;
}

button {
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}


footer {
    margin-top: 3rem;
    background-color: #605e88;
    color: #fff;
    padding: 1em;
    text-align: center;
}

footer p {
    max-width: 800px;
    margin: 0 auto;
}

footer a {
    color: white;
}

.primary-button {
    background: #42a9c9;
    background: linear-gradient(180deg, rgba(66, 169, 201, 1) 0%, rgba(48, 135, 217, 1) 100%);
    border-radius: 5px;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 3px 3px 3px #2d090933;
    white-space: nowrap;
}

.primary-button:hover {
    background: #42a9c9;
    background: linear-gradient(180deg, rgba(48, 135, 217, 1) 0%, rgba(66, 169, 201, 1) 100%);
}

#hero {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    max-width: 25rem;
    flex-direction: column;
    gap: 0;
    border-radius: 5px;
}
#hero h2 {
    margin: 0;
    font-style: italic
}

iframe {
    width: 100%;
    height: 650px;
}

.news-date {
    font-style: italic;
    margin: 0;
    opacity: 0.7;
}

.release-notes-list {
    column-count: 2;
    margin-bottom: 2rem;
    gap: 3rem;
}
.release-notes-list li {
    margin-bottom: 1rem;
    padding-right: 3rem;
}
.release-notes-list video {
    max-width: 100%;
}

/* mobile styles */

@media (max-width: 1000px) {

    h1 {
        font-size: 2.3rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }


    #hero {
        max-width: 56%;
    }

    iframe {
        height: 350px
    }

    .mobile-hidden {
        display: none;
    }

    section {
        flex-direction: column;
        align-items: center;
        box-sizing: border-box; /* elimnates horizontal scrolling */
    }

    section span {
        width: 80%;
    }

    .release-notes-list {
        column-count: 1
    }

    .two-col {
        column-count: 1;
        padding: 0 2rem;
    }

    section.news-item {
        padding: 1rem 2rem;
    }
}


/* Hero background video styles */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 60px; /* moves top of video down below header */
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}


.hero-overlay-text {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: none;
    border-radius: 1rem;
}

/* Dark overlay for hero video */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    z-index: 2;
    pointer-events: none;
}

.hero-overlay-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Jost', sans-serif;
    text-shadow: 3px 3px 13px black;
    font-weight: 200;
    color: white;
}

.hero-overlay-text p {
    font-size: 1.25rem;
}