@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&family=Palanquin+Dark:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Palanquin+Dark:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cantarell:wght@700&display=swap');

:root {
    --body-background: #EDF2F6;
    --white: #eee;
    --blue: #001e60;
    --red: red;
}

* {
    scroll-behavior: smooth;
    outline: none;
}

body {
    margin: 0;
    padding: 0;
    background: var(--body-background);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, .2);
    width: 100%;
    height: 76px;
    z-index: 11;
}

#navborder {
    position: absolute;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

#navborder > .box {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--red);
}

#navborder > .box::after {
    content: '';
    margin-top: 4px;
    position: absolute;
    left: 0;
    width: 100%;
    height: 20vh;
    background: linear-gradient(to bottom, var(--red), transparent);
}

#navborder > .box:first-child::after {
    background: linear-gradient(to bottom, var(--white), transparent);
}

#navborder > .box:last-child::after {
    background: linear-gradient(to bottom, var(--blue), transparent);
}

nav > ul {
    padding: 0 8% 0 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

nav > ul > li > a {
    color: #171717;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all .15s;
}

nav > ul > li > a:hover {
    opacity: .6;
}



/* GENERAL */
section {
    padding: 2rem 3rem;
}

h3 {
    margin: 0 0 1rem;
    font-family: 'Cantarell';
    font-size: 1.5rem;
    font-weight: 700;
}

img {
    height: 400px;
    border: 2px solid #ccc;
}

a {
    color: darkblue;
}

span {
    opacity: .5;
    font-style: italic;
}

.name {
    margin-bottom: 0;
    font-family: 'Palanquin Dark', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

table {
    border-collapse: collapse;
}

table th, table td {
    padding: .5rem 1rem;
    border: 2px solid black;
    font-weight: 600;
}

table td:last-child {
    color: #fff;
}

table th {
    text-align: center;
    font-weight: 700;
}

input, button {
    padding: .7rem 1rem;
    border: 2px solid #aaa;
    border-radius: 5px;
}

input:focus, input:not(:placeholder-shown) {
    border-color: black;
}



/* HEADER */
header {
    height: 100vh;
    background: url('./assets/palac.jpg');
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--body-background), transparent), linear-gradient(to top, var(--blue) -200%, transparent);
}

header > div {
    z-index: 1;
}

img.zuzana {
    border-radius: 8px;
    opacity: 0;
    animation: popOut .5s;
    animation-fill-mode: forwards;
    z-index: 10;
}




/* VZDELANIE */
ol > li {
    font-weight: 600;
}

ol#skoly > li {
    font-weight: 700;
}



/* KONTAKT */
#kontakt {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}



/* KONIEC */
#end a {
    text-decoration: none;
}

/* RESPONZIVITA */
@media only screen and (max-width: 980px) {
    nav {
        height: unset;
    }
    
    nav > ul {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    nav > ul > li:nth-child(2) {
        margin-left: unset !important;
    }

    #navborder > .box::after {
        height: 10vh;
    }

    header {
        margin-top: 25vh;
    }

    img.zuzana {
        width: 250px;
        height: 300px;
    }
}

@media only screen and (max-width: 605px) {
    section {
        padding-left: 1.5rem;
    }

    header {
        flex-direction: column;
    }

    header > div {
        margin-top: 10rem;
    }

    .name {
        text-align: center;
    }

    #vzdelanie img {
        height: 320px;
    }
}

@media only screen and (max-width: 480px) {
    header {
        height: 105vh;
    }

    #vzdelanie img {
        height: 260px;
    }
}

@media only screen and (max-width: 410px) {
    #vzdelanie img {
        height: 200px;
    }
}

@media only screen and (max-width: 320px) {
    #vzdelanie img {
        height: 160px;
    }
}

/* ANIMACIE */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes popOut {
    0% {
        opacity: 0;
        transform: scale(.6);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}