@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;500;700&display=swap');

:root {
    --color-main: rgb(50, 150, 220);
    --color-light-bg: rgb(235, 235, 235);
    --color-darker-section-bg: rgb(225, 225, 225);
    --color-dark-section-bg: rgb(50, 50, 50);
}

body, html {
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-light-bg);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* TEXT OBECNĚ  */

h1, h2, h3, h4, h5 {
    font-family: 'Roboto', sans-serif;
    line-height: 1.25;
    letter-spacing: 0.05rem;
    font-weight: 700;
    color: rgb(10, 10, 10);
}

ul, p, table {
    font-family: 'Raleway', sans-serif;
    line-height: 1.4em;
    color: rgb(45, 45, 45);
    font-size: 1.0rem;
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
}

a {
    transition: 0.15s linear;
    text-decoration: none;
    color: var(--color-main);
}
.a-on-dark:hover{
    color: var(--color-light-bg);
}
.red {
    color: #a1162e
}
.kurziva{
    font-style: italic;
}
a:hover {
    color: rgb(24, 72, 148);
    cursor: pointer;
}
.left-align {text-align: left;}
.no-margin {margin: 0}
h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

span.mirror {
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* na stroji */

.typewriter-wrap {
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: right;
}

.typewriter {
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .1em solid rgb(220, 220, 220); /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: auto auto; /* Gives that scrolling effect as the typing happens */
    /*letter-spacing: .15em;  Adjust as needed */
    animation: typing 5.8s steps(15, end) forwards infinite alternate,
    blink-caret .75s step-end infinite;

}

/* The typing effect */
@keyframes typing {
    0% {
        width: 0
    }
    25% {
        width: 100%
    }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: rgb(220, 220, 220);
    }
}

/* header */
.navbar {

    background-color: rgba(2, 59, 81, 0.5);
    backdrop-filter: blur(5px);
    color: rgb(230, 230, 230);
    position: fixed;
    top: 0;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 1rem;
    z-index: 10;
    transition: 0.75s ease;
    border-bottom: .5px solid rgb(115, 115, 115);
    min-height: 3rem;
}

.scrolling-active {
    background-color: rgba(235, 235, 235, 0.75);
    box-shadow: 0 3px 1rem rgba(0, 0, 0, .1);
    padding-top: 1rem;
    border-bottom: none;
}

.scrolling-active .nav-wrp ul.nav-list li a {
    color: rgb(30, 30, 30);
}

.scrolling-active .nav-wrp ul.nav-list li a:hover {
    color: var(--color-main);
}

.scrolling-active .nav-wrp .toggle-button .bar {
    background-color: rgb(30, 30, 30);
}

.nav-wrp {
    display: flex;
    justify-content: flex-end;
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-list {
    list-style-type: none;
}

.nav-list li {
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: 0.1rem;
    margin: 0 0.5rem;
    text-transform: uppercase;
}

.nav-list li a {
    color: rgb(230, 230, 230);
    text-decoration: none;
    transition: color .25s linear;
    padding: .5rem;
}

.nav-list a:hover {
    color: var(--color-main);
    cursor: pointer;
}

ul.nav-list li.active a {
    border-bottom: 1px solid var(--color-main);

}

.toggle-button {
    position: absolute;
    top: .75rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 19px;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-light-bg);
    border-radius: 5px;
}

header {
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: url("../img/headers/chuttersnap--gS54SWrHMg-unsplash.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

header h1 {
    color: rgb(230, 230, 230);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    text-align: center;

}

.under_h1 {
    color: rgb(230, 230, 230);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1.1rem;
    font-weight: 300;
}

.blur {
    padding: 1rem;
    background-color: rgba(2, 59, 81, 0.5);
    backdrop-filter: blur(5px);

}

/* sections */
.section-box {
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
    text-align: center;
}

.darker {
    background-color: var(--color-darker-section-bg);
}

.dark {
    background-color: var(--color-dark-section-bg);
}

h2 + p {
    margin-top: 0.5rem
}



/* about */

.about-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

}

.about-photo {
    flex-basis: 38%;
    border: 1px solid rgb(190, 190, 190);
    padding: 0.5rem;
    max-height: 350px;

}

.about-text {
    flex-basis: 58%;
    text-align: left;
}

.photo {
    background-image: url("../img/roman-lenner.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    width: 100%;
    height: 100%;

}

ul.info {
    list-style: none;
    margin-bottom: 1rem
}

ul.info li span.ico-offset {
    padding-left: 1.6rem;
}

ul.info li {
    line-height: 1.5rem
}

ul.info li:before {
    display: inline-block;
    content: ' ';
    top: 3px;
    position: relative;
    height: 1rem;
    width: 1.3rem;
    background-size: contain;
    margin-right: 0.3rem;
    background-repeat: no-repeat;
}

ul.info li.office:before {
    background-image: url("../img/svg/key-svgrepo-com.svg");
}

ul.info li.phone:before {
    background-image: url("../img/svg/phone-svgrepo-com.svg");
}

ul.info li.obalk:before {
    background-image: url("../img/svg/obalk.svg");
}
ul.info li.linked:before {
    background-image: url("../img/svg/linkedin-svgrepo-com.svg");
}
ul.info li.scopus:before {
    background-image: url("../img/svg/scopus-svgrepo-com.svg");
}

ul.info li.konz:before {
    background-image: url("../img/svg/chat-svgrepo-com(1).svg");
}

ul.info li.address:before {
    background-image: url("../img/svg/location-pin-svgrepo-com.svg");
}

/* vyuka */

/* teaching */

.dark h2 {
    color: rgb(245, 245, 245);
}

.dark p, .dark li, .dark table, .dark h3 {
    color: rgb(210, 210, 210);
}

.dark h3 {
    line-height: 3rem
}

.dark h3 a {
    text-decoration: none;
    color: rgb(230, 230, 230);
    padding: 0.5rem;
    transition: color .25s linear;
}

.dark h3 a:hover {
    text-decoration: none;
    color: rgb(50, 150, 220);
    cursor: pointer
}

.dark h3.neaktivni a {
    text-decoration: none;
    color: rgb(130, 130, 130);
    font-size: 75%;
    cursor: no-drop
}

.dark h3 a span {
    font-size: 75%
}

.predmet {
    padding: 1rem 0;
    white-space: nowrap;
}

.predmet a {
    padding: 0.95rem 0.2rem;
}

.predmet a span {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: var(--color-light-bg);
    font-size: 1.5rem;
    background-color: var(--color-main);
    padding: 0.5rem;
    border-radius: 0.2rem;
    vertical-align: middle;
    transition: 0.15s linear;
    margin-right: 0.5rem;
}

.predmet a:hover {
    color: var(--color-main);
}

.predmet a:hover span {
    border-radius: 2rem;
    /*border-radius: 0.4rem;
    padding-right: 0.9rem;
    padding-left: 0.1rem;*/
}

.neaktivni a span {
    background-color: rgb(160, 160, 160);
}

.neaktivni a, .neaktivni a:hover {
    color: rgb(140, 140, 140);
    cursor: no-drop;
    border-radius: 0.2rem;
}

.neaktivni a:hover span {
    border-radius: 0.2rem;
}

/* wrapery */

.wrapper {
    display: flex;
    width: 85%;
    min-height: 250px;
    max-width: 1200px;
    margin: 1rem auto;
}

.wide-wrapper{
    display: flex;
    width: 95%;
    min-height: 250px;
    max-width: 1300px;
    margin: 1rem auto;

}

.zajmy-wrapper {
    margin-top: 5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.predmety-wrapper {
    margin-top: 3rem;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 800px;

    align-content: center;
}

.veda-wrapper {
    margin-top: 5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.box {
    border: 1px solid rgb(190, 190, 190);
    flex-basis: fit-content;
    margin: 1rem;
    padding: 1rem;
    max-width: 320px;
}

.box h3 {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
}
.box-on-dark{
    display: flex;
    flex-direction: column;
    background-color: rgb(70,70,70);
    flex-basis: 22%;
    flex-grow: 1;
    margin: 1rem;
    padding: 1rem;
    max-width: 320px;
}

.dwn{padding: 0.25rem 0;
    display: inline-flex;
    align-items: center;
    line-height: 1.2rem;
}
.dwn:before{
    content: ' ';
    position: relative;
    min-height: 1.75rem;
    min-width: 1.75rem;
    background-size: contain;
    margin-right: 0.75rem;
    background-repeat: no-repeat;
}

.exe:before{background-image: url("../img/svg/exe-svgrepo-com.svg");}
.pdf:before{background-image: url("../img/svg/pdf-svgrepo-com.svg");}
.txt:before{background-image: url("../img/svg/txt-svgrepo-com.svg");}
.jpg:before{background-image: url("../img/svg/jpg-svgrepo-com.svg");}

.to-bottom{
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;}




i:before {
    content: " ";

    background-size: contain;
    background-repeat: no-repeat;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 2rem;

}

i.zajem1:before {
    background: url("../img/svg/science-svgrepo-com.svg");
}

i.zajem2:before {
    background: url("../img/svg/electrocardiogram-svgrepo-com.svg");
}

i.zajem3:before {
    background: url("../img/svg/microscope-svgrepo-com.svg");
}

.spacer {
    height: 2px;
    width: 4rem;
    background-color: var(--color-main);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* mouse scroll */

.mouse_scroll {
    display: block;
    position: absolute;
    bottom: 3rem;
    padding: 2rem;
}

.m_scroll_arrows {
    display: block;
    -ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);

    border-right: 2px solid white;
    border-bottom: 2px solid white;
    margin: 0 0 3px 4px;

    width: 16px;
    height: 16px;
}

.unu {
    margin-top: 1px;
}

.unu, .doi, .trei {
    -webkit-animation: mouse-scroll 1s infinite;
    -moz-animation: mouse-scroll 1s infinite;
    animation: mouse-scroll 1s infinite;

}

.unu {
    -webkit-animation-delay: .1s;
    -moz-animation-delay: .1s;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;

}

.doi {
    -webkit-animation-delay: .2s;
    -moz-animation-delay: .2s;
    -webkit-animation-direction: alternate;

    animation-delay: .2s;
    animation-direction: alternate;

    margin-top: -6px;
}

.trei {
    -webkit-animation-delay: .3s;
    -moz-animation-delay: .3s;
    -webkit-animation-direction: alternate;

    animation-delay: .3s;
    animation-direction: alternate;

    margin-top: -6px;
}

.mouse {
    height: 42px;
    width: 24px;
    border-radius: 14px;
    transform: none;
    border: 2px solid white;
    top: 170px;
}

.wheel {
    display: block;
    margin: 5px auto;
    background: white;
    position: relative;
    border: 2px solid #fff;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    height: 4px;
    width: 4px;
}

.wheel {
    -webkit-animation: mouse-wheel 0.6s linear infinite;
    -moz-animation: mouse-wheel 0.6s linear infinite;
    animation: mouse-wheel 0.6s linear infinite;
}

@-webkit-keyframes mouse-wheel {
    0% {
        opacity: 1;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(6px);
        -ms-transform: translateY(6px);
        transform: translateY(6px);
    }
}

@-moz-keyframes mouse-wheel {
    0% {
        top: 1px;
    }
    25% {
        top: 2px;
    }
    50% {
        top: 3px;
    }
    75% {
        top: 2px;
    }
    100% {
        top: 1px;
    }
}

@-o-keyframes mouse-wheel {

    0% {
        top: 1px;
    }
    25% {
        top: 2px;
    }
    50% {
        top: 3px;
    }
    75% {
        top: 2px;
    }
    100% {
        top: 1px;
    }
}

@keyframes mouse-wheel {

    0% {
        top: 1px;
    }
    25% {
        top: 2px;
    }
    50% {
        top: 3px;
    }
    75% {
        top: 2px;
    }
    100% {
        top: 1px;
    }
}

@-webkit-keyframes mouse-scroll {

    0% {
        opacity: 0;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    }
}

@-moz-keyframes mouse-scroll {

    0% {
        opacity: 0;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    }
}

@-o-keyframes mouse-scroll {

    0% {
        opacity: 0;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes mouse-scroll {

    0% {
        opacity: 0;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    }
}

.link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Responsive layout */



@media only screen and (max-width: 1250px) {
    .box-on-dark{
        flex-basis: 50%;
        max-width: 430px;
    }
}

@media only screen and (max-width: 1000px) {

    .box-on-dark{

        max-width: 350px;
    }

}


@media only screen and (max-width: 900px) {
    html {
        font-size: 14px;
    }

    .section-box {
        padding-top: 4rem;
        padding-bottom: 4rem;

    }

    .wrapper {
        width: 90%
    }

    .about-photo {
        flex: 100%;
        margin-bottom: 1.5rem;
        min-height: 50vw;

    }


    .about-text {
        flex: 100%;

    }

    .navbar-links {
        display: none
    }

    .toggle-button {
        display: flex;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        width: 100%
    }

    .navbar-links ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .navbar-links ul li {

        width: 100%;
        text-align: center;
        font-size: 1rem;

    }

    .navbar-links ul li a {

        display: block;

    }

    .nav-list li {

        margin-top: .5rem;
        margin-bottom: .5rem;

    }

    .navbar-links.active {
        display: flex;

    }

    ul.nav-list li.active a {
        border-bottom: none;

    }


}
@media only screen and (max-width: 850px) {
    .box-on-dark{
        max-width: 500px;

    }

}
@media only screen and (max-width: 600px) {
    html {
        font-size: 13px;
    }

    header h1 {
        font-size: 2.8rem
    }

    .under_h1 {
        font-size: 1.1rem;
        letter-spacing: 0.8rem;
    }

    .navbar-links ul li {

        font-size: 1.1rem;

    }
}

@media only screen and (max-height: 500px) {
    .mouse_scroll {
        display: none
    }
}

