@import url(fonts.css);

:root {
    --dark-walnut: #582f0eff;
    --saddle-brown: #7f4f24ff;
    --toffee-brown: #936639ff;
    --camel: #a68a64ff;
    --khaki-beige: #b6ad90ff;
    --dry-sage: #c2c5aaff;
    --dry-sage-2: #a4ac86ff;
    --dusty-olive: #656d4aff;
    --ebony: #414833ff;
    --charcoal-brown: #333d29ff;
    --almost-white-sage: #fcffeb;

    --accent: var(--dry-sage-2);
    --accent-950: var(--dry-sage);
    --primary: var(--ebony);
    --secondary: var(--charcoal-brown);
    --background: var(--dusty-olive);
    --text-light: #101211;
    --text-dark: var(--almost-white-sage);
    --global-width: 800px;
    --nav-padding: 1rem 1.2rem;
    --title-text-size: 6em;
    --global-margin: 16rem;
    --radius: 15px;
}

body {
    font-family: 'Alegreya Sans', 'Cantarell', sans-serif;
    margin: auto;
    background-color: var(--background);
    color: var(--text-dark);
}

a {
    color: var(--accent-950);
}

/* NAVBAR START */

nav {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;

    align-items: center;
    justify-content: start ;

    background-color: var(--secondary);
    
    color: var(--text-dark);
    font-size: 1.2em;
    height: max-content;
}

nav div#links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
}

nav div#links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.3em 0;
    border-radius: var(--radius);
}

nav div#links a:hover {
    color: var(--camel);
}

nav div#links a.active {
    font-weight: 700;
}

nav div#logo-container {
    display: flex;
    justify-content: center;
}

nav img#logo {
    aspect-ratio: 1;
}

/* NAVBAR END */

.min::after {
    content: " perc";
}

.price::after {
    content: " Ft.";
}

div#greet {
    background-image: url(../assets/panorama.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;

    min-height: 60vh;
    max-height: 100vh;

    align-content: end;
}

div#greet span#title {
    font-family: 'Redaction';
    color: var(--almost-white-sage);
    font-size: var(--title-text-size);
    font-weight: bold;
}

nav, div#greet {
    padding: 1em calc((100vw - var(--global-width)) / 2);
}

section:nth-child(even) {
    background-color: var(--secondary);
}

section:nth-child(odd) {
    background-color: var(--background);
}

h1 {
    margin: 1.5em 0;
}

h2 {
    margin: 1.2em 0;
}

h3 {
    margin: 1em 0;
}

h4 {
    margin: 0.7em 0;
}

h5 {
    margin: 0.4em 0;
}

h6 {
    margin: 0.1em 0;
}

img {
    max-width: 100%;
}

p, li, td, th {
    font-size: 110%;
}

section {
    padding: 5em calc((100vw - var(--global-width)) / 2);
}

section:first-child {
    padding-top: 0;
}

/* Introducition section */

section#intro {
    border-radius: 1000px;
}

section#intro img#portrait {
    padding-right: 2em;
    float: left;
    height: 22em;
}

/* Images section */

section#images div#image-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;

}

section#images a.linker {
    display: flex;
    flex-flow: column nowrap;
    gap: 1em;
    justify-content: start;

    color: var(--text-dark);

    padding: 1em;
    border: 4px solid #00000000;
    border-radius: 10px;
}

section#images a.linker img {
    aspect-ratio: 4/3;
    max-height: 20em;
    width: 100%;
    border-radius: 10px;
}

section#images a.linker:hover {
    color: var(--accent);
    border: 4px solid var(--camel);
}

table {
    text-align: left;
    border-collapse: collapse;
    font-size: 1.1em;
}

th, td {
    border: 2px solid var(--camel);
    padding: 1em;
}

div.review {
    background-color: var(--primary);
    border-left: 5px solid var(--accent);
    padding: 1em;
    margin: 1em;
}

q::after, q::before {
    content: none;
}

div.ai-image-container {
    position: relative;
}

div.ai-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-family: 'Redaction';
    font-weight: 700;
    color: var(--charcoal-brown);
    font-size: 30pt;
    text-align: center;
    
    position: absolute;
    top: 0;
    left: 0;
    
    border-radius: 100%;
    background-color: var(--almost-white-sage);
    min-width: 3ch;

    aspect-ratio: 1;

    margin: 20px;

    user-select: none;
}

footer {
    padding: 1em 1.2em;
    color: var(--text-dark);
}

footer p {
    margin: 0;
}

footer h2 {
    margin-top: 0;
}

footer a:hover {
    color: var(--accent);
}


@media only screen and (max-width: 900px) {
    :root {
        --global-width: 100%;
    }
    nav, div#greet {
        padding: 1em 50px;
    }
    section {
        padding: 5em 50px;
    }

    section#images div#image-container {
        display: unset;
    }

    nav {
        justify-content: center;
    }

    nav div#logo-container {
        display: none;
    }

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

}

@media only screen and (max-width: 700px) {
    nav div#links {
        flex-direction: column;
        gap: 1em;
    }
}

@media only screen and (max-width: 600px) {
    header div#greet {
        min-height: 20vh;
        max-height: 50vh;
    }

    header div#greet span#title {
        font-size: 3em;
    }

    table {
        display: flex;
    }

    tbody {
        overflow-x: scroll;
    }
}