body {
 background-color: #ffe2ff;
 font-family: 'Garamond';
}

nav{
  margin:0;
  position: sticky;
  top:0;
  background-color: #e2ffff;
  display: grid;
  grid-template-columns : 15% 15% 15% 15% 15% auto ;
  grid-template-rows: 80px;
  grid-template-areas: "container-logo container-domov container-plan container-dennik container-vychodiska container-subory";
}

nav a:link {
  color: black;
}

nav a:visited {
  color: #3e4042;
}

nav a:hover {
  color: #6db2ed;
  background-color: #e2ffff;
}

nav a:active {
  color: yellow;
}

nav a{
  font-family: 'Garamond', bold;
  font-weight: bold;
  font-size: 20px;
}

.domov,.plan,.dennik,.vychodiska,.zdroje,.subory{
  padding-top:30px;
  padding-left: 10px;
}

.domov a,.plan a,.dennik a,.vychodiska a,.zdroje a,.subory a{
  text-decoration: none;
  color: black;
}
img{
  width: 100%;
}
.logo{
  padding-left: 40px;
  padding-top: 20px;
  width: 100px;
  height: 40px;
}

h1{
  padding-bottom: 10px;
  height: 20px;
  text-align: center;
  font-family: 'Garamond', cursive;
  font-size: 50px;
}

h2{
  padding-bottom: 10px;
  height: 20px;
  text-align: center;
  font-family: 'Garamond', cursive;
  font-size: 30px;
}

.mainobrazok {
  width: 550px;
  padding-left: 80px;
  padding-right: 70px;
  float:right;
  top:0px;
}


.maintext {
  padding-top: 25px;
  text-align: justify;
  width: 600px;
  padding-right: 150px;
 float:right;
 font-family: 'Garamond', cursive;
 font-size: 20px;
}

.maintextplan {
  padding-top: 25px;
  text-align: justify;
 padding-left:  150px;
 float:left;
 font-family: 'Garamond', cursive;
 font-size: 20px;
}

.maintext li {
margin-left: 30px;
 }
 
 .maintextplan li {
margin-left: 30px;
 }
 
.footer1{
    background-color: #e2ffff;
}

.footer2{
    background-color: #ffe2ff;
}

/*navigacia na index*/
.indexn{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #e2ffff;
  color: black;
  text-align: center;
}

/*navigacia na portfolio*/
.portfolion{
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #e2ffff;
  color: black;
  text-align: center;
}


.container {
  position: relative;
  box-sizing: border-box;
}




.cursor {
  cursor: pointer;
}


.numbertext {
  font-weight: bold;
  color: black;
  font-size: 12px;
  padding: 8px 12px;
  text-align: center;
  top: 0;
}


.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}


.column {
  float: left;
  width: 11.11%;
}


.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}



.columns {
  box-sizing: border-box;
  float: left;
  width: 25%;
  padding: 8px;
}



.button {
  background-color: grey;
  border: none;
  color: white;
  padding: 10px 25px;
  font-family: 'Garamond', bold;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
}

.buttonimage {
  width: 45px;
 height: 45px;
}


@media screen and (max-width: 800px) {
  .stlpec{
    flex: 50%;
    max-width: 50%;
  }

}


@media only screen and (max-width: 600px) {
  .columns {
    width: 100%;
  }
   .stlpec{
    flex: 100%;
    max-width: 100%;
   }
  nav{
    display: block;
    position: relative;
  }
  .logo{
    display: none;
  }
  .domov,.plan,.vychodiska,.zdroje,.subory{
    text-align: center;
  }
  .maintext p {
    padding-left: 0;
    padding-top:20px;
    float:left;
    font-family: 'Garamond', cursive;
    font-size: 20px;
    max-width: 100%;
  }

}
