html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    margin: 0px;
    background-color: beige;
}

nav {
    display: flex;
    justify-content: center;
    margin-top: 10vh;
    background-color: black;
}

ul {
    display: flex;
    gap: 8vw;
}

a {
    color: beige;
    text-decoration: none;
}

.heroimg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: url(img/got-dragon-pk.jpg) no-repeat center center;
    width: 100%;
    height: 100vh;
    background-size: cover;
}

header {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 6vw;
    text-align: center;
    color: beige;
}

.title {
    font-size: 3.4vw;
}

.subtitle {
    font-size: 1.8vw;
    max-width: 800px;
}

h1 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 700;
    font-style: normal;
}

h2, h3 {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

h4, ul, a, p {
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

main {
    padding: 0 6vw;
}

.seccion-contenido {
    display: flex;
    gap: 40px;
    margin-top: 8vh;
    align-items: center;
    flex-direction: row-reverse;
}

.texto {
    flex: 1;
}

.contenedor-imagen {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 768px) {
    header {
        height: 85vh;
    }

    .title {
        font-size: 8vw;
    }

    .subtitle {
        font-size: 4.5vw;
    }

    .seccion-contenido {
        flex-direction: column;
        gap: 25px;
    }

    .contenedor-imagen {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    h2 {
        font-size: 6vw;
    }

    nav ul {
        gap: 5vw;
        padding-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}