@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100&display=swap');
:root {
    --text_svetly: white;
    --text_tmavy: black;
    --pozadi1: rgb(0, 71, 98);
    /* --pozadi1: rgb(109, 49, 158); */
    --pozadi2: rgb(96, 97, 98);
    --pozadi3: white;
    --pozadi_listecky: #e7e7ca;
    --pozadi_body: #333;
    --menu_text_hover: rgb(150, 190, 205);
    /* --menu_text_hover: rgb(178, 150, 205); */
    --jazyk_button: rgba(0, 71, 98, 0.5);
    /* --jazyk_button: rgba(55, 0, 98, 0.5); */
    --jazyk_button_text: rgb(150, 190, 205);
    --jazyk_button_hover: rgb(0, 22, 31);
    /* --jazyk_button_hover: rgb(22, 0, 31); */
    --jazyk_button_list_hover: rgba(120, 210, 255, 0.4);
    /* --jazyk_button_list_hover: rgba(163, 120, 255, 0.4); */
    --social_icons_hover: rgba(255, 255, 255, 0.4);
    --send_button: rgb(0, 47, 75);
    --send_button_hovar: rgb(1, 126, 198);
}

* {
    margin: 0;
    padding: 0;
    line-height: calc(1em + 0.8rem);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* scroll-behavior: smooth; */
}

body {
    /* font-family: "Bellota Text", sans-serif; */
    /* font-family: "Montserrat", sans-serif; */
    font-family: 'Raleway', sans-serif;
    /* nakloněný */
    /* font-family: "Edu AU VIC WA NT Pre", serif; */
    font-size: calc(0.8rem + 1vh);
    background: var(--pozadi_body);
    color: var(--text_svetly);
    /* line-height: 1.6; */
    height: 100vh;
    overflow: hidden;
}


/* Styly pro dropdown menu */

.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    align-content: center;
    right: 1.5%;
}

#dropdown-toggle {
    display: none;
}

.dropbtn {
    background: var(--jazyk_button);
    color: var(--jazyk_button_text);
    padding: 0.6em;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
    display: inline-block;
    width: auto;
    text-align: center;
    box-sizing: border-box;
    touch-action: manipulation;
    pointer-events: all;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    left: 0;
    font-size: 0.9em;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
    /* z-index: 11; */
}

.dropdown-content a {
    display: block;
    color: white;
    padding: 0.5em;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-content a:hover {
    background-color: var(--jazyk_button_list_hover);
    transition: 500ms;
}


/* Zobrazení menu při zaškrtnutí checkboxu */

#dropdown-toggle:checked+.dropbtn+.dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: var(--jazyk_button_hover);
}

.nula-zleva {
    padding-left: 0;
    padding-right: 0;
    text-indent: 0;
}

.container {
    width: 100%;
    height: 100%;
    /* overflow-y: scroll; */
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.moje-odrazky {
    font-size: 1.1em;
    font-weight: 300;
    font-style: italic;
}

h1 {
    font-family: "Noto Sans Mono", serif;
    font-size: 2.6em;
    font-weight: 600;
    padding-bottom: 0.5em;
    /* text-shadow: 2px 2px 5px rgb(0, 0, 0); */
    text-align: center;
    z-index: 5;
}

h2 {
    font-size: 1.6em;
    font-weight: 600;
    text-transform: uppercase;
    /* text-shadow: 2px 2px 5px rgb(0, 0, 0); */
    text-align: center;
    z-index: 5;
}

h3 {
    font-size: 1.3em;
    font-weight: 500;
    /* text-shadow: 2px 2px 5px rgb(0, 0, 0); */
    text-align: center;
    padding: 0 2em;
    z-index: 5;
}

p {
    font-size: 1.1em;
    font-weight: 300;
    text-indent: 1.5em;
    padding: 0 3%;
    padding-top: 0.5em;
    z-index: 5;
}

i {
    margin-right: 10px;
}

i:hover {
    color: var(--social_icons_hover);
}

.tucne {
    font-weight: 500;
}

.naklon {
    font-style: italic;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    width: 100%;
    min-height: 100vh;
    /* scroll-snap-align: start; */
    position: relative;
    z-index: 0;
    /* border: 1px solid red; */
}

#home h1,
#home h2,
#home h3 {
    padding-right: 2em;
    text-transform: none;
}

#home h1,
#home h2,
#home h3,
#home p {
    position: relative;
    padding-left: 50%;
    text-indent: 0;
    text-align: center;
}

#home h2 {
    font-family: "Hurricane", cursive;
    font-size: 2.5em;
    font-weight: 100;
}


/*  ul {
    padding: 0 4%;
} */

ul,
#about h2,
#about p,
#focus h2,
#focus p,
#contact h2,
#contact p {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

#about ul,
#focus ul {
    list-style-type: circle;
}

#about li,
#focus li {
    margin-left: 3%;
}

#home {
    position: relative;
    /* background: coral; */
    height: 100vh;
    overflow: hidden;
}

#home::before {
    content: "";
    background-image: url("./Img/home.jpg");
    background-position: left top;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    filter: grayscale(30%);
    top: -15%;
    left: -20%;
    right: 0;
    bottom: 0;
    height: 115%;
    width: 120%;
    pointer-events: none;
}

#home::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    /* Zabrání interakcím s tímto pseudo-elementem */
    pointer-events: none;
}

#about,
#focus {
    background: var(--pozadi1);
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 3em;
    padding-bottom: 6em;
    overflow: hidden;
}


/* #about {
    background-image: url("./Img/linear.png");
    background-size: cover;
} */

#focus {
    background: var(--pozadi2);
}

#obr1 {
    position: relative;
    min-height: 0vh;
    height: 80vh;
}

#obr1::before {
    content: "";
    position: absolute;
    background-image: url("./Img/obr1.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

#portfolio {
    background: var(--pozadi3);
    color: var(--text_tmavy);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5em 0;
    min-height: 100vh;
    overflow: hidden;
}

.content_line_row {
    display: flex;
    /* Uspořádá bloky vedle sebe */
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* Mezera mezi bloky (můžeš upravit dle potřeby) */
    gap: 2em;
    width: 60%;
}

.left-block,
.right-block {
    width: 50%;
    min-height: 45%;
    background-color: var(--pozadi_listecky);
    /* Lehké stínování pro vizuální oddělení */
    box-shadow: 0 1em 1em rgba(0, 0, 0, 0.3);
    color: var(--text_tmavy);
    padding: 2em 0em;
}

.full-width-block {
    /* Šířka textu přes celou sekci */
    width: 60%;
    /* width: calc(60% + 2.0em); */
    /* Lehké pozadí pro oddělení textu */
    background-color: rgba(0, 0, 0, 0.1);
    margin: 3em 0;
    padding: 2em 0;
}

#obr2 {
    position: relative;
    min-height: 0vh;
    height: 80vh;
}

#obr2::before {
    content: "";
    position: absolute;
    background-image: url("./Img/obr2.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

#contact {
    background: var(--pozadi1);
    overflow: hidden;
    padding-top: 3em;
    /* margin-bottom: 5em; */
}

#contact a {
    text-decoration: none;
    color: var(--text_svetly);
}

#contact a:hover {
    text-decoration: underline;
}

.contact_left,
.contact_right {
    left: 0;
    /* width: 50%; */
    min-height: 45%;
    /* Lehké stínování pro vizuální oddělení */
    padding: 2em 0em;
}

.contact_left {
    width: 40%;
    margin-right: auto;
}

#contact .contact_left p,
#contact .contact_right p {
    padding: 0;
    width: 100%;
    text-indent: 0;
}

#contact .contact-social {
    text-indent: 0.5em !important;
}

#contact .contact_right p {
    text-align: center;
}

.grid-col-span-2 {
    grid-column: span 2;
}

.grid-row-span-3 {
    grid-row: span 3;
}

.contact_right {
    width: 60%;
    display: grid;
    grid-template-columns: calc(23% - 1em) 77%;
    grid-template-rows: repeat(7, 1fr);
    gap: 1em;
    padding-top: 0;
    /* margin-left: auto; */
    /* display: flex;
    flex-direction: column;
    justify-content: flex-start; */
    /* align-items: center; */
}

.mail-form-grid:last-child {
    grid-area: 7 / span 2;
    text-align: right;
    /* grid-row: 7;
    grid-column: 2; */
}

#message,
#name,
#email {
    width: calc(100% - 10px);
    height: 100%;
    border-radius: 0.4em;
    resize: none;
    padding: 0 5px;
    font-family: inherit;
    font-size: inherit;
}

#send_button {
    font-family: inherit;
    font-size: inherit;
    padding: 0.4em 1em;
    border-width: 0;
    border-radius: 0.5em;
    font-weight: 500;
    color: var(--text_svetly);
    background-color: var(--send_button);
}

#send_button:hover,
#send_button:focus,
#send_button:active {
    background-color: var(--send_button_hovar);
    cursor: pointer;
}

#confirmation {
    display: none;
    position: fixed;
    /* bottom: 10px;
    right: 10px; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 7%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text_svetly);
    border-radius: 2em;
    z-index: 1000;
    text-align: center;
}

@media(max-width: 900px) {
    body {
        font-size: calc(0.6rem + 1vh);
        /* line-height: 1.5; */
    }
    .dropdown {
        position: absolute;
        right: 2.5%;
        top: 25%;
        height: auto;
    }
    .dropbtn {
        padding: 0.8em;
        width: 100%;
    }
    .dropdown-content a {
        padding: 0.7em;
    }
    .navbar {
        position: fixed;
        width: 100%;
        z-index: 10;
    }
    .navbar a {
        text-decoration: none;
        color: seashell;
    }
    .navbar a:hover {
        opacity: 0.5;
        text-decoration: underline;
        transition: 1000ms;
    }
    .navbar ul {
        padding: 0;
        list-style-type: none;
    }
    .navbar #menuToggle {
        display: flex;
        flex-direction: column;
        position: relative;
        top: 20px;
        left: 20px;
        z-index: 12;
        -webkit-user-select: none;
        user-select: none;
    }
    .navbar #menuToggle input {
        display: flex;
        top: -5px;
        left: -5px;
        width: 40px;
        height: 25px;
        position: absolute;
        cursor: pointer;
        opacity: 0;
        z-index: 12;
    }
    .navbar #menuToggle span {
        display: flex;
        width: calc(20px + 1.5vh);
        height: 1.3px;
        margin-bottom: 6px;
        position: relative;
        background: #ffffff;
        transform-origin: center;
        z-index: 12;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
    }
    .navbar #menuToggle input:checked~span {
        opacity: 10;
        transform: rotate(45deg) translateY(10px);
        background: seashell;
    }
    .navbar #menuToggle input:checked~span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }
    .navbar #menuToggle input:checked~span:nth-last-child(2) {
        transform: rotate(-45deg) translateY(-10px);
    }
    .navbar #menu {
        position: absolute;
        font-size: 1.2em;
        height: 8em;
        width: 9em;
        border-radius: 1em;
        margin: -2.5em 0 0 -2.5em;
        padding: 3em 0em 2em 5em;
        background: rgba(0, 0, 0, 0.8);
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 1s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 11;
    }
    .navbar #menu li {
        padding: 0.1em 0;
    }
    .navbar #menuToggle input:checked~ul {
        transform: none;
    }
    .container {
        scroll-behavior: unset;
        scroll-snap-type: y mandatory;
        -webkit-scroll-snap-type: y mandatory;
        -ms-scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        /* scroll-snap-type: none; */
    }
    section {
        -webkit-scroll-snap-align: start;
        -ms-scroll-snap-align: start;
        scroll-snap-align: unset;
    }
    section p {
        text-indent: 0.5em;
    }
    #home h1,
    #home h2 {
        padding-right: 0.5em;
    }
    #home h1,
    #home h2,
    #home p {
        text-indent: 0;
    }
    ul,
    #about h2,
    #about p,
    #focus h2,
    #focus p,
    #contact h2,
    #contact p {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
    #about li,
    #focus li {
        margin-left: 6%;
    }
    #home::before {
        top: -80px;
        left: -250px;
        /* left: -150px; */
        width: auto;
        height: auto;
    }
    #portfolio {
        padding-top: 1em;
    }
    .content_line_row {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        width: 85%;
    }
    .left-block,
    .right-block,
    .contact_left,
    .contact_right {
        width: 100%;
        min-height: 45%;
        margin: 1em 0;
        padding: 0.8em 0;
    }
    .contact_right {
        grid-template-columns: calc(30% - 1em) 70%;
    }
    .full-width-block {
        width: 85%;
        padding: 0.8em 0;
        margin: 1em 1em;
    }
    #contact a {
        text-decoration: underline;
    }
    /* #contact .contact_left p,
    #contact .contact_right p {
        width: 100%;
    } */
}

@media(max-width: 350px) {
    body {
        font-size: calc(0.4rem + 1vh);
        /* line-height: 1.5; */
    }
    #home::before {
        top: 0px;
        left: -200px;
        /* left: -225px; */
    }
}

@media((min-width: 351px) and (max-width: 400px)) {
    body {
        font-size: calc(0.4rem + 1vh);
        /* line-height: 1.5; */
    }
    #home::before {
        top: 0px;
        left: -270px;
        /* left: -225px; */
    }
}

@media((min-width: 401px) and (max-width: 500px)) {
    body {
        font-size: calc(0.4rem + 1vh);
        /* line-height: 1.5; */
    }
    #home::before {
        top: 0px;
        left: -300px;
        /* left: -225px; */
    }
}

@media((min-width: 501px) and (max-width: 650px)) {
    body {
        font-size: calc(0.5rem + 1vh);
        /* line-height: 1.5; */
    }
    #home::before {
        top: -40px;
        left: -150px;
        /* left: -185px; */
    }
}

@media(min-width: 901px) {
    input[type='checkbox'] {
        display: none;
    }
    .dropdown:hover .dropdown-content {
        display: block;
    }
    .navbar {
        position: fixed;
        top: 0px;
        z-index: 10;
        display: flex;
        width: 100%;
        height: 3em;
        background: rgba(0, 0, 0, 0.7);
        justify-content: space-between;
    }
    .navbar #menu {
        position: absolute;
        width: 100%;
        height: 100%;
        align-items: center;
    }
    .navbar ul {
        display: flex;
        list-style-type: none;
        margin: 0;
        padding: 0;
        justify-content: flex-end;
        right: 10%;
    }
    .navbar ul li {
        border: none;
    }
    .navbar ul li a {
        border-radius: 10px;
        display: inline-block;
        /* margin: 0 0.9em; */
        padding: 0.6em 1.5em;
        font-size: 0.9em;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 400;
        color: var(--text_svetly);
    }
    .navbar ul li a:hover,
    .navbar ul li a.active {
        background-color: rgba(0, 0, 0, 0.4);
        color: var(--menu_text_hover);
        outline: none;
        border: none;
        transition: 1000ms;
    }
}