:root {
    --background: #212121;
    --surface: #303030;
    --text-color: #f5f5f5;
    --primary-color: #818cf8;
    --accent-color: #ffc64a;
}

body {
    margin: 0;
    background-color: var(--background);
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);

    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 50%);

    background: -moz-linear-gradient(135deg, var(--surface) 0%, var(--background) 50%);

    background: -webkit-linear-gradient(135deg, var(--surface) 0%, var(--background) 50%);

}

header {
    width: 100%;
    box-sizing: border-box;
    padding: 1em 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h1{
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
}
p{
    font-size: larger;
}
a.button {
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: .5em 1em;
    background-color: var(--background);
    transition: all 0.2s ease-in-out;
}

a.button.alternate {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

a.button:hover {
    box-shadow: 0px 0px 20px var(--primary-color);
}

a.button.alternate:hover {
    box-shadow: 0px 0px 20px var(--accent-color);
}

header a {
    text-decoration: none;
}

header img {
    width: 40px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

header .logo h2 {
    color: var(--text-color);
    margin: .5em 0;
    letter-spacing: .1ch;
}

main {
    width: 90%;
    max-width: 1024px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

button {
    outline: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transform: scale(1);
    transition: all 0.2s ease-in-out;
}

button:active {
    transform: scale(0.5);
    background-color: rgba(255, 255, 255, 0.5);
}

button.icon {
    background-size: 60%;
    background-position: center;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-color: var(--background);
    padding: .5em;
    border-radius: 4px;
    border: 1px solid var(--surface);
}

button.icon:active {
    background-color: rgba(255, 255, 255, 0.5);
}

button.icon.preview {
    background-image: url(/assets/images/eye.svg);
}

button.icon.close {
    background-image: url(/assets/images/close.svg);
}

.file-extension{
    color: var(--accent-color);
    font-family: 'Courier New', Courier, monospace;
}
footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background);
    margin-top: 2em;
}

footer ul {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

footer ul li {
    display: inline;
    padding: 0 5px;
    border-right: 1px solid var(--text-color);
}

footer ul li:last-child {
    border-right: none;
}

section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 1em;
    position: relative;
}

p,
h3 {
    width: 100%;
    margin: .5em 0;
    line-height: 1.5;
}

section#hero {
    padding: 0;
    height: 80vh;
    background-image: url('/assets/images/y-gradient.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100%;
}

section#hero p {
    width: fit-content;
    text-align: center;
    background: var(--background);
    padding: .25em 0.5em;
    color: white;
}

section#hero span.highlight {
    color: rgb(248, 209, 79);
    letter-spacing: 2px;
    font-weight: bold;
}

section#hero .image-showcase {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: 100%;
    z-index: -1;
    height: 80vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

section#hero .blur {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: blur(4px);
    z-index: -1;
}

section#hero .image-showcase img {
    max-width: 90vw;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    width: 100%;
}

section#hero a.button {
    margin: 2em 0;
}

section#hero .tag-line {
    background-color: var(--background);
    padding: .25em .5em;
    text-align: center;
}

section#features .features-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8em;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 4em 0;
    position: relative;
}

section#features .features-container .feature-item {
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4em;
    position: relative;
    align-items:center;
}

section#features .features-container .feature-item:nth-child(2n) {
    flex-direction: row-reverse;
}

section#features .features-container .feature-item img,
section#features .features-container .feature-item video {
    width: 40%;
    border-radius: 10px;
}

section#features .features-container .feature-item .feature-description {
    width: 50%;
    position: relative;
}

section#features .features-container .feature-item .feature-description h2 {
    margin: 0 0 .5em 0;
    color: var(--accent-color);
}

section#features .features-container .feature-item .feature-description::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 800px;
    height: 800px;
    opacity: 0.2;
    z-index: -1;
    background-size: cover;
    background-image: url(/assets/images/gradient.png);
}


.button-container {
    margin-top: 2em;
}

.margin-bottom-md {
    margin-bottom: 2em;
}

.margin-top-md {
    margin-top: 1em;
}

section#getting-started {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 1em;
    padding-bottom: 4em;
}

section#getting-started .note {
    margin: 0;
    margin-bottom: 1em;
    text-align: center;
}


section#getting-started .featured-templates {
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
}

section#getting-started .featured-templates .featured-item {
    width: 200px;
    height: 300px;
    background-position: center;
    background-size: cover;
    background-color: var(--background);
    border-radius: 8px;
    box-shadow: 0 0 18px var(--background);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border: 8px solid var(--surface);
}

section#getting-started .featured-templates .featured-item button,
section#getting-started .featured-templates .featured-item a.button {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    display: none;
}

section#getting-started .featured-templates .featured-item .blur {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: all 0.2s ease-in;
}

section#getting-started .featured-templates .featured-item button.preview {
    top: -30px;
    animation: slideDown 0.4s .2s ease-in forwards;
}

section#getting-started .featured-templates .featured-item a.button {
    bottom: -40px;
    animation: slideTop 0.4s .2s ease-in forwards;
}

section#getting-started .featured-templates .featured-item:hover .blur {
    opacity: 1;
}

section#getting-started .featured-templates .featured-item:hover button,
section#getting-started .featured-templates .featured-item:hover a.button {
    display: block;
}


section#faq {
    background-color: var(--background);
    margin: 4em 0;
    padding-bottom: 2em;
    border-radius: 8px;
}

section#faq .faq-container {
    width: 100%;
    max-width: 600px;
}

section#faq .qa-item {
    width: 100%;
    border-bottom: 1px solid var(--text-color);
    padding: 1em 0;
}

section#faq .qa-item:last-of-type {
    border-bottom: none;
}

section#faq .qa-item .question {
    width: 100%;
}

section#faq .qa-item .question input[type=checkbox] {
    display: none;
}

section#faq .qa-item .question label {
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
}

section#faq .qa-item .question:has(input[type=checkbox]:checked) label {
    color: var(--accent-color);
}

section#faq .qa-item .answers {
    font-size: medium;
    display: none;
}

section#faq .qa-item:has(.question input[type=checkbox]:checked) .answers {
    display: block;
}

#previewer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    height: 100vh;
    width: 100vw;
}

#previewer .image-container {
    width: 90%;
    margin-top: 5vh;
    max-width: 620px;
    background-color: var(--surface);
    padding: 1em;
    overflow: scroll;
    height: 90vh;
    border-radius: 8px;
    scrollbar-width: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#previewer .image-container .image{
    display: flex;
    justify-content: center;
    align-items: center;
}

#previewer .image-container::-webkit-scrollbar {
    display: none;
}

#previewer .image-container::-webkit-scrollbar-track {
    background-color: transparent;
}

#previewer .image-container .image img {
    width: 80%;
}

#previewer.show {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: .5em;
}

#previewer button {
    margin-top: 5vh;
    border-radius: 50%;
    transform: rotate(45deg);
}

@keyframes slideTop {
    0% {
        bottom: -40px;
    }

    100% {
        bottom: 10px;
    }
}

@keyframes slideDown {
    0% {
        top: -30px;
    }

    100% {
        top: 10px;
    }
}


@media screen and (max-width: 1024px){
    section#features .features-container .feature-item img,
    section#features .features-container .feature-item video {
        width: 100%;
    }
    
    section#features .features-container .feature-item .feature-description {
        width: 100%;
    }
    section#features .features-container{
        gap: 4em;
    }
    section#features .features-container .feature-item{
        gap: 1em;
    }

    section#getting-started .featured-templates{
        justify-content: center;
    }

    h1{
        font-size: 26px;
    }
    p{
        font-size: 16px;
    }

    section#faq .qa-item .question label {
        font-size: 18px;
    }


    #previewer div.image-container{
        width: 80%;
        height: 85vh;
    }

    #previewer .image-container .image img {
        width: 100%;
    }

    #previewer button{
        position: absolute;
        top: -30px;
        right: 20px;
    }

    section#features .features-container .feature-item div.feature-description::before{
        width: 200px;
        height: 200px;
    }

}

@media screen and (max-width: 600px){
    header{
        justify-content: center;
        margin-bottom: 2em;
    }

    header a.button{
        display: none;
    }
    
    section#hero {
        height: 60vh;   
    }

    section#getting-started .featured-templates .featured-item{
        width: 90vw;
        height: calc(1.333 * 90vw);
    }

}