*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    height:  200vh;
    /*background-color: #9ab6c8; původní modrá */
    background-color: #eff7fc;
    background-image: url("images/circle-top.svg");
    background-repeat: no-repeat;
    background-position: 0% 0%;
    background-size: 100% 35%;
    background-attachment: scroll;
    overflow-x: hidden;
}

/***************************************************************/
/* Navigace                                                    */
/***************************************************************/

nav {
    display: flex;
    justify-content: space-between;
    height: 4rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
}

nav.scrolled {
    background-color: #638da9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

nav h1 {
    opacity: 0;
    font-family: 'Baloo Tammudu 2', cursive;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 0.7rem;
    padding-left: 4vw;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    /*background-image: url("images/bullet.svg");
    background-repeat: no-repeat;
    background-size: 2rem 2rem;
    background-position: calc(4vw - 0.5rem) center;*/
    transition: opacity 300ms ease-in-out;
}

nav ul {
    padding-top: 1.0rem;
    padding-right: 4vw;
    list-style: none;
    width: 50%;
    max-width: 30em;
    /*min-width: 38em;*/
    display: flex;
    justify-content: space-between;
}
nav a, 
nav a:visited {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #eee;
    text-decoration: none;
    font-weight: 700;
    display: block;
    padding: 0.4rem 0.7rem;
    /*border-radius: 1.0rem;*/
    border-bottom: 2px solid rgba(121, 157, 181, 0);
    transition: border-color 1.5s ease-out;
}

nav a:hover {
    border-bottom: 2px solid white;
    /*background-color: #a93a3a; */
    /*background-image: url("images/bullet.svg");
    border: none;*/
}

.burger {
    display: none;
    cursor: pointer;
    margin-top: 1.0rem;
    margin-right: 4vw;
    /*height: 33px;*/
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px;
    /*box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);*/
    transition: all 0.3s ease;
}
.burger:hover .line1 {
    transform: rotate(-22deg) translate(0px,3px);
}
.burger:hover .line2 {
    transform: translate(3px,0px);
}
.burger:hover .line3 {
    transform: rotate(25deg) translate(0px,-3px);
}

.burger.opened .line1 {
    transform: rotate(-45deg) translate(-6px,6px);
}
.burger.opened .line2 {
    opacity: 0;    
}
.burger.opened .line3 {
    transform: rotate(45deg) translate(-6px,-6px);
}

.burger.opened:hover .line1 {
    transform: rotate(-20deg) translate(-6px,13px);
}
.burger.opened:hover .line3 {
    transform: rotate(20deg) translate(-6px,-13px);
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade{
    from{
        opacity: 0;
        transform: translateX(50px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}

/***************************************************************/
/* Úvodní stránka                                              */
/***************************************************************/
.title-container {
    margin-left: 7%;
    margin-top: 13vh;
    
}
.title-container h1 {
    font-family: 'Baloo Tammudu 2', cursive;
    position: relative;
    font-weight: 600;
    color: #eeeeee;
    text-shadow: 0 0 9px rgba(0, 0, 0, 0.3);
    font-size: 5.2vw;
    padding: 0 1.73vw;
    transition: opacity 300ms ease-in-out;
}

.title-container h1::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-image: url("images/bullet.svg");
    background-repeat: no-repeat;
    background-size: 6.36vw 6.36vw;
    background-position: 0 1.16vw;
    padding: 0 1.73vw;
    animation: tomkotCircle 1.0s ease-out;
    z-index: -1;
}
@keyframes tomkotCircle{
    from{
        opacity: 0;
        background-position: 100% 1.16vw;
    }
    to{
        opacity: 1;
        background-position: 0 1.16vw;
    }
}

.title-container p {
    color: #d2e0e8;
    position: relative;
    top: -3vw;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}
section#intro {
    /*height: calc(100vh - 2rem);*/ /* 2rem je spodní pruh "scroll-down" */
    height: 100vh;
}

.circles {
    width: 70%;
    height: 80vh;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: 1%;
    bottom: 1%;
    pointer-events: none;
    z-index: -1;
    background-image: url("images/robosim2.png");
}


.scroll-down {
    position: absolute;
    /*left: 8vw;*/
    right: 8vw;
    bottom: 0;
    height: 2rem;
    font-weight: bold; 
    color:#507a96;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: scrollDownAppear 1s ease-in-out 2s forwards, scrollDownBlink 1s ease-in-out 3.1s infinite alternate none;
}
.scroll-down div {
    transition: opacity 500ms ease-out;
}
@keyframes scrollDownAppear {
    from{
        transform: translate(0, -50vh);
        opacity: 0;
    }
    to{
        transform: translate(0, 0);
        opacity: 1;
    }
}
@keyframes scrollDownBlink {
    from{
        transform: translate(0, 0);
        opacity: 1;
    }
    to{
        transform: translate(0, -2vh);
        opacity: 0.2;
    }
}




/***************************************************************/
/* Jednotlivé sekce (stránky)                                  */
/***************************************************************/

section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    /*min-height: calc(100% - 4rem - 1.6rem);*/ /*4rem je <nav>, 1.6rem je <footer>*/
}

section h2 {
    font-family: 'Baloo Tammudu 2', cursive;
    position: relative;
    font-weight: 600;
    color:black;
    font-size: 4.5rem;
    padding-left: 1.2rem;
    /*text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.7);*/
    z-index: 10;
    margin: 15vh auto 0 auto;
}
section h2::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-image: url("images/bullet-white.svg");
    background-repeat: no-repeat;
    background-size: 5rem 5rem;
    background-position: 0 1.5rem;
    animation: titleCircle 1.0s ease-out;
    animation-play-state: paused;
    z-index: -2;
}
section h2.running::after {
    animation-play-state: running;
}
@keyframes titleCircle{
    from{
        opacity: 0;
        background-position: 100% 1.5rem;
    }
    to{
        opacity: 1;
        background-position: 0 1.5rem;
    }
}


section:nth-of-type(2) {
    background-image: radial-gradient(ellipse 50% 100% at 0% 0%, #dfc6a3 10%,  white);
}
section:nth-of-type(2) h2 {
    color: #61574a;
}
section:nth-of-type(3) {
    background-image: radial-gradient(ellipse 50% 100% at 0% 0%,#638da9 20%, #f0f8fc);
}
section:nth-of-type(3) h2 {
    color: #314552;
}
section:not(:first-of-type)::before {
    content: '';
    width: 100%;
    height: 7px;
    position: absolute;
    left: 0;
    top: 0;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2),  rgba(0, 0, 0, 0.05), transparent);
}



.content {
    width: 60%;
    text-align: justify;
    margin-top: 7rem;
    margin-bottom: 6rem;
    margin-right: 5vw;
    color: #222;
    line-height: 150%;
    /*background-color: rgba(255, 255, 255, 0.4);
    padding: 0 2rem 2rem 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 1.5rem;
    animation: test 400ms ease-out;*/
}

.content p {
    margin: 0.5rem 0 0 0.1rem;
}

.content em {
    font-style: italic;
    color: #000;
}

.content b {
    font-weight: 400;
    color: #000;
}

.content strong {
    font-weight: 600;
    color: #000;
}

.content h3 {
    padding: 0;
    margin: 2.0rem 0 0.5rem 0;
    font-size: 1.2rem;
    color:  #000;
    font-weight: 700;
}
.content h3:first-of-type {
    margin-top: 0;
}

.content h3.project {
    color:  #a93a3a;
}

.content h4 {
    padding: 0;
    margin: 1.0rem 0 0.2rem 0;
    font-size: 1.0rem;
    color:  #444;
    font-weight: 600;
}

.content acronym {
    cursor: help;
    text-decoration: none;
    border-bottom: 1px dotted #888;
}
.content acronym::after {
    content: "?";
    color: #888;
    font-size: 70%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
    padding-left: 0.1em;
}

.content a, .content a:visited {
    color: #000;
    text-decoration: underline;
    transition: color 0.1s ease-out;
}
.content a:hover, .content a:active {
    color: #a93a3a;
}

.content ul {
    list-style: none;
}
.content li {
    padding-left: 1.5rem;
    background-image: url("images/bullet.svg");
    background-repeat: no-repeat;
    background-size: 0.8rem;
    background-position: left center;
    margin: 0.1rem 0 0.6rem 0.6rem;
}

.content ul.minor li {
    padding-left: 1.5rem;
    background-image: url("images/bullet-gray.svg");
    background-repeat: no-repeat;
    background-size: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.1rem;
}

.content .text-and-image {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}
.text-and-image div:first-child {
    flex: 3 1 500px;
}
.text-and-image div:nth-child(2) {
    flex: 2 1 300px;
}
.text-and-image div:nth-child(2) img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

footer {
    margin-right: 5vw;
    height: 1.6rem;
    text-align: right;
    color: #eeeeee;
    letter-spacing: 2px;
}



/***************************************************************/
/* Media queries                                               */
/***************************************************************/

@media screen and (max-width:1200px) {
    .title-container p {
        font-size: 0.8rem;
        width: 25vw;
        margin: 0 auto;
    }
}

@media screen and (max-width:1000px) {
    section:not(#intro) {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    section h2 {
        margin: 3rem 0 -2rem 0;
        transform: scale(0.7) translate(-0.2em, 0);
        align-self: flex-start;
    }
    .content {
        width: 90%;
        margin: 0;
    }
    .title-container p {
        width: 20vw;
    }

    section:nth-of-type(2) {
        background-image: radial-gradient(ellipse 60% 60% at 0% 0%, #f3d8b1 10%,  white);
    }
    section:nth-of-type(3) {
        background-image: radial-gradient(ellipse 60% 60% at 0% 0%,#638da9 20%, #f0f8fc);
    }    
}

@media screen and (max-width:730px) {
    body {
        overflow-x: hidden;
    }
    nav ul {
        position: absolute;
        right: 0px;
        height: 70vh;
        top: 4rem;
        background-color: #507a96;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 50%;
        z-index: 1;
        padding: 0;
        box-shadow: -2px 0px 15px rgba(0, 0, 0, 0.5);
        transform: translateX(110%);
        transition: transform 0.3s ease-out;
    }
    nav ul li {
        opacity: 0;
    }
    .burger {
        display: block;
    }
    .title-container p {
        font-size: 0.8rem;
    }
    
}

@media screen and (max-aspect-ratio:3/2) {
    section .circles {
        width: 80%;
    }
}
@media screen and (max-aspect-ratio:13/10) {
    section .circles {
        width: 90%;
    }
}
@media screen and (max-aspect-ratio:11/10) {
    section .circles {
        background-position: 100% 70%;
    }
}
@media screen and (max-aspect-ratio:1/1) {
    section .circles {
        background-position: 100% 40%;
    }
}
