* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    color: #2c2c2c;
    margin-bottom: 30px;
}

h2 {
    color: #107875;
    width: fit-content;
    margin: 0 auto 10px;
}

p {
    margin: 0px 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

input[type="text"],
input[type="password"],
select {    /* Pridané select */
    border-radius: 5px;
    border: outset 2px #c8c8c8;
    padding-left: 5px;
    height: 30px;
    font-size: 15px;
}

textarea:focus, 
input:focus{
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    transition: 1.5s;
    background: #deffe4;
}

input[type="submit"], button[type="submit"] {
    font-size: 18px;
    min-height: 30px;
    border: 1px solid white;
    border-radius: 5px;
    padding: 2px;
    border: outset 2px #c8c8c8;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    cursor: pointer;
    transition: 1.5s;
    background-color: #deffe4;
}



/**//**/

/*
.input1 {
    background-image: url(../img/set.png);
    background-repeat: no-repeat;
    background-size: cover;

}
.input1:hover {
    transition: 0.5s; 
    cursor: pointer;
    background-image: url(../img/set.png);
}

*/


/* Navigačná lišta */
header {
    width: 100%;
    display: flex;
	left: 50%;
    transform: translateX(-50%);
    position: fixed;
    background:#388180;
    border-bottom: 2px solid #2d665f;
    z-index: 2;
}

.bar {
    /* overflow: hidden; */
    margin: 0 auto;
    width: 100vw;
    max-width: 1140px;
    height: 50px;
    /* background: rgb(255, 172, 172); */
}

.bar-logo {
    width: 48.68%;
    margin-left: 135px;
    height: 50px;
    /* background: rgb(205, 172, 255); */
    float: left;
}

#link-logo {
    width: 10px;
    display: inline-block;
    position: absolute;
    margin: -10px 0px 0px -15px;
}

#img-logo {
    margin-top: 8px;
    width: 150px;
    float: left;
}

/* .bar-nav {

} */

.bar-nav ul {
    margin: 0;
}

.bar-nav ul li {
    height: 40px;
    list-style-type: none;
    border-bottom: 2px solid transparent;
    display: inline-block;
    font-size: 26px;
}

.bar-nav ul li:hover {
    transition-duration: 0.4s;
    border-bottom: 2px solid #fff;
}

.bar-nav ul a {
    line-height: 50px;
    text-align: center;
    float: left;
    width: 135px;
    height: 100%;
    /* border: 1px solid red; */
    color: #fff;
    text-decoration: none;
}

.bar-login {
    display: flex;
    align-items: center;
    width: 450px;
    height: 50px;
    float: right;
}
.language {
    /* background: #2c2c2c; */
    position: relative;
    width: 65px;
    margin-left: 235px;
}

/* .language > a {
    color: #fff;
    font-size: 1em;
    text-transform: uppercase;
    padding: 10px;
}

.language > a:hover {
    background: #000;
} */

.language-selected {
    transition-duration: 0.5s;
    font-size: 19px;
    display: flex;
    align-items: center;
    color: #f6f6f6;
    cursor: pointer;
}

.language-selected:hover {
    transition-duration: 0.5s;
    color:rgb(244, 208, 161);
}

.language-selected:before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 20px;
    background-image: url(../img/lang-sk.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
}

.language ul {
    position: absolute;
    width: 150px;
    background: #f6f6f6;
    border: 1px solid #f8f8f8;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.5);
    display: none;
}

.language ul li {
    list-style: none;
}

.language ul li a {
    text-decoration: none;
    display: block;
    width: max-content;
    color: #2c2c2c;
    padding: 3px 5px;
}

.language ul li:hover {
    background: #c7c7c7;
}

.language ul li a:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}

a.sk:before {
    background-image: url(../img/lang-sk.png);
}
a.en:before {
    background-image: url(../img/lang-en.png);
}

.language:hover ul {
    display: block;
}

.bar-login a#SignIn,
.bar-login a#Profil {
    color: #f6f6f6;
    font-size: 19px;
    width: max-content;
    text-decoration: none;
    margin: 0 25px;
}

.bar-login a#SignIn:hover {
    transition-duration: 0.5s;
    color:rgb(244, 208, 161);
}

.bar-login img {
    border: outset 1px #212121;
    border-radius: 10px;
    cursor: pointer;
    margin: 8px 0;
    height: 34px;
    float: left;
}

/*
*** Formulár pre LOGIN lištu. ***
*/

#login {
    display: flex;
    height: 100%;
    align-items: center;
    margin: -80px 5px 0 0;
}

#login input {
    margin-left: 5px;
    border: outset 2px #2e2e2e;
}

#login input[type="text"],
#login input[type="password"] {
    width: 160px;
}

.m-login-hiden {
    float: right;
    width: fit-content;
    height: 50px;
}

#logout {
    margin-right: 5px;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
/*Hlavný obsah*/
body {
    background: #f6f6f6;
}

main {
    font-family: 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background: #f8f8f8;
    min-height: 97vmin;
    height: fit-content;
    box-sizing: border-box;
    border-left: 1px solid #c5e5d7;
    border-right: 1px solid #c5e5d7;
    margin: 0px auto;
    /* padding-top: 50px; */
    padding: 100px 20px 20px 20px;
    max-width: 1140px;
    /* min-height: 100%; */
}

/*koniec stránky*/
footer {
    min-height: 3vmin;
    height: fit-content;
    background: #c7c7c7;
}

.copyright {
    box-sizing: border-box;
    font-size: 13px;
    padding: 5px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
/* 
*** Registračný formulár *** 
*/
.signup-main {
    background: #6fbcb355;
    box-shadow: 5px 5px 5px rgba(130, 160, 130, 0.5);
    width: min-content;
    height: auto;
    margin: auto;
    border-radius: 10px;
    padding: 15px;
}

.form-signup {
    text-align: center;
}

.form-signup input,
.form-signup button {
    margin-top: 10px;
}

.form-signup input {
    width: 200px;
}

.form-signup button {
    width: 100px;
}


/* 
*** Nastavenia vzhľadu pre mobilné zariadenia. *** 
*/
.m-menu {
    display: none;
    background-image: url(../img/m-menu.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.m-menu img {
    width: 34px;
    height: 34px;
    transition-duration: 0.5s;
    opacity: 0;
}

.m-menu img:hover {
    transition-duration: 0.5s;
    opacity: 1;
}

.m-login img {  /*Skopírovaný štýl od .bar-login img - pozrieť sa, na lepšie riešenie dedenia.*/
    display: none;
    border: outset 1px #212121;
    border-radius: 10px;
    cursor: pointer;
    margin: 8px 5px;
    height: 34px;
    float: right;
    rotate: -90deg;
}

/* 
*** Nastavenia vzhľadu rámčeka s upozorneniami pri prihlásení. *** 
*/

#alert {
    border-radius: 35px;
    position: absolute;
    margin: -50px auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1500px;
    height: 100px;
/*    background-color:rgba(255, 140, 140, 1);*/
    background: linear-gradient(55deg, #ffabab 35%, #ffc4c4 35%);
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    border: 5px solid #2d665f;
}
#head_alert_mess {
    padding-bottom: 15px;
    align-self: flex-end;
}

@media only screen and (max-width: 1160px) {
    .bar-logo {
        width: 55px;
    }

    .bar-nav {
        /*    display: none; Potom aktivovať na kliknutie.*/
        overflow: hidden;
        background: #388180ee;
        border-bottom: 2px solid #2d665f;
        margin-left: -135px;
        width: 100vw;
        height: auto;
        }
    
    .bar-nav ul {
        padding-bottom: 5px;
        margin-left: 145px;
        margin-top: -170px;
        /* background: #ca7b7b; */
        }

    .bar-nav ul a {
        /* background: #c7c7c7; */
        float: unset;
        display: flex;
    }

    .m-menu {
        display: inherit;
    }
  }

@media only screen and (max-width: 660px) {
    /* .bar-login {
        display: none;
    } */

    .m-login img {
        display: inherit;
    }

    .bar-login {
        display: grid;
        grid-template-areas: 
            'lang  sign'
            'login login';
        gap: 5px;
        /* padding: 5px; */
        justify-content: end;
        width: 100%;
        background: #388180ee;
        border-bottom: 2px solid #2d665f;
        height: 150px;
        margin: -150px 0 0 0;
    }

    .bar-login img {
        rotate: -90deg;
        position: absolute;
        top: 0;
        right: 5px;
    }

    .language {
        grid-area: lang;
        margin-left: unset;
        margin: initial;
        width: 38px;
    }

    .language-selected {
        margin-right: 0px;
    }
    
    .language-selected:before {
        margin-right: 0px;
    }

    #SignIn {
        grid-area: sign;
        margin: initial;
    }

    #login {
        grid-area: login;
        /* background: bisque; */
        margin: initial;
        flex-direction: column;
    }

    #login input {
        margin: 5px 0 0 0;
    }

    .m-login-hiden {
        overflow: hidden;
        width: 100%;
        padding-right: unset;
        float: unset;
        height: auto;

        /* background: #6464ff; */
        margin: 50px 0 0 0;
    }

    .bar-login a#SignIn,
    .bar-login a#Profil {
        margin: 0 5px;
}
}