@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    padding: 0;
    margin: 0;
    font-family: "Roboto", sans-serif;
}

#header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 10%;
}

#name {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 0px;
}

#name h1 {
    font-size: 28px;
    letter-spacing: 2px;
}

#name h2 {
    font-size: 16px;
    color: #EF2E0F;
    position: relative;
    bottom: 10px;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    margin: 10px;
    padding: 10px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

section {
    padding: 20px 10%;
}

#first {
    background-color: #EF2E0F;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#first-text {
    display: flex;
    flex-direction: column;
    color: #FFF;
    padding: 30px 0;
}

#first-text h1 {
    font-size: 64px;
    margin: 0px;
}

#first-text h2 {
    font-size: 32px;
    margin: 0px;
}

#first-text p {
    font-size: 24px;
    margin: 20px 0;
}

#first-text a {
    background-color: #000;
    color: #FFF;
    text-decoration: none;
    padding: 15px 25px;
    align-self: flex-start;
    border-radius: 5px;
}

#first-text a:hover {
    background-color: #FFF;
    color: #000;
    transition: 800ms ease-in-out;
}

#second-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.container-inside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 10px 40px;
}

.container-inside h2 {
    flex: 1;
}

.container-inside img {
    height: 150px;
    width: 100px;
}

#second a {
    background-color: #EF2E0F;
    color: #FFF;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 5px;
}

#second a:hover {
    background-color: #FFF;
    color: #EF2E0F;
    border: 1px solid #000;
    transition: 800ms ease-in-out;
}

#a-center {
    display: flex;
    justify-content: center;
    padding: 30px 0px;
}

#third {
    background-image: url(stromy.jpg);
    padding-top: 150px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#third #first-text {
    flex: 2;
}

#third-img {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

#negr {
    background-color: #EF2E0F !important;
    color: #FFF !important;
    text-decoration: none !important;
    padding: 15px 25px !important;
    border-radius: 5px !important;
}

#negr:hover {
    background-color: #FFF !important;
    color: #EF2E0F !important;
    border: 1px solid #000 !important;
    transition: 800ms ease-in-out !important;
}

#fourth {
    background-color: #EF2E0F;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#fourth h2 {
    font-size: 36px;
    color: #FFF;
}

#fourth a {
    background-color: #000;
    color: #FFF;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#fourth a:hover {
    background-color: #FFF;
    color: #000;
    transition: 800ms ease-in-out;
}

#fifth h1 {
    font-size: 36px;
    color: #000;
    text-align: center;
}

#fifth h5 {
    font-size: 18px;
    color: #333;
    text-align: center;
    padding-bottom: 30px;
}

#fifth p {
    font-weight: 400;
    margin-bottom: 0;
}

.fifth-containers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mrtka {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fifth-containers a {
    background-color: #EF2E0F;
    color: #FFF;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 5px;
}

.fifth-containers a:hover {
    background-color: #FFF;
    color: #EF2E0F;
    border: 1px solid #000;
    transition: 800ms ease-in-out;
}

.fifth-part {
    margin: 15px 0;
}

.fifth-part p , .fifth-part h4 {
    margin-bottom: 0;
    margin-top: 0;
}

#sixth {
    display: flex;
    flex-direction: row;
    background-color: #EF2E0F;
    justify-content: space-between;
}

.odkazi {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.odkazi h2 {
    color: #000;
    font-size: 24px;
    text-align: center;
}

.flexki {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.odkazi h4 {
    color: #FFF;
    font-size: 18px;
    text-align: center;
    margin: 15px;
}

footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10%;
}

#pes {
    display: flex; 
    flex-direction: row; 
    justify-content: space-around; 
}

@media (max-width: 860px) {
    #third-img {
        display: none;
    }

    #first img {
        display: none;
    }

    * {
        text-align: center;
    }

    #first-text a {
        align-self: center;
    }

    #header {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
    }

    #second-container {
        flex-direction: column;
    }

    #sixth {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        padding-bottom: 40px;
    }

    #pes {
        flex-direction: column;
    }

    #fifth h5 {
        padding-bottom: 0;
    }

    .odkazi {
        padding: 15px 0;
    }

    .fifth-containers {
        padding: 20px 0;
    }
}