body {
  color: rgb(0, 0, 0);
  background-color: rgb(255, 255, 255);
  font-family: 'Open Sans Condensed', Arial, sans-serif;
  font-size: 19px;
  background-image: url(kuvat/mona-eendra-vC8wj_Kphak-unsplash.jpg);
}

header {
  text-align: center;
}

footer {
  text-align: center;
  margin: auto;
  font-size: 14px;
}

h2 {
  color: rgb(245, 182, 52);
}

.h2_vihrea {
  color: green;
}

#navipalkki {
  clear: both;
  background-color: rgb(54, 177, 191);
  list-style-type: none;
  margin: auto;
  overflow: hidden;
}

#navipalkki li {
  display: inline;
}

#navipalkki ul {
  padding: 0px;
}

.selected {
  font-weight: bold;
}

#navipalkki li a {
  color: white;
  text-decoration: none;
  padding: 8px 25px;
}

#navipalkki li a:hover {
  background-color: rgb(35, 113, 122);
}

#valikko_ikoni {
  display: none;
}

.iconfloat {
  float:left;
}

.navbar {
  clear: both;
  background-color: rgb(54, 177, 191);
  list-style-type: none;
  margin: auto;
  overflow: hidden;
}

.responsive {
  position: absolute;
  top: 140px;
  height: 180px;
}
.responsive li {
  display: block;
}

header a.icon {
  display: block;
  position: absolute;
  right: 15px;
  top: 20px;
  color: black;
  font-size: 2em;
}

.tekstilaatikko {
  flex: 1;
  margin: 0px 10px 0px 15px;
}

.beigetausta {
  background-color: beige;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: 10px;
  margin-right: 10px;
}

.azuretausta {
  background-color: azure;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: 10px;
  margin-right: 10px;
}

.tekstilaatikko_pitka {
  margin: 0px 10px 10px 15px;
  width: 100%;
}

.tekstilaatikko_puolet {
  margin: 0px 10px 20px 15px;
  width: 47%;
}

/*.videolaatikko {
  margin: 0px 10px 10px 15px;
  padding: 10px;
  width: 100%;
  height: 100%;
}*/ 

.kuvalaatikko {
  flex: 1;
  padding: 20px;
  margin: 20px 10px 10px 10px;
  background-color: rgb(255, 255, 255);
}

.kuvalaatikko img {
  width: 100%;
  height: 100%;
}

.kuvalaatikko iframe {
  width: 100%;
  height: 300px;
}

.alakuvalaatikko {
  padding: 20px 0 20px 20px;
  margin: 10px;
  background-color: rgb(255, 255, 255);
}

.alakuvalaatikko img {
  width: 32%;
  margin-left: auto;
  margin-right: auto;
  margin-right: 5px;
}

.maintyyli {
  margin: auto;
  width: 1000px;
  background-color: rgb(233, 241, 223);
  display: flex;
  flex-flow: row wrap;
}

.logoteksti {
  color:goldenrod;
  margin: auto;
  font-family: Copperplate, Copperplate Gothic Light, fantasy; 
  font-size: 40px; 
  font-style: normal; 
  font-variant: normal; 
  font-weight: 700; 
  line-height: 15.4px;
}

/* ***************************************
    näyttö < 360px
   *************************************** */
@media only screen and (max-width:360px) {
  .maintyyli {
    flex-direction: column;
    width: 360px;
  }

  #navipalkki {
    width: 70%;
  }

  .logoteksti {
    width: 360px;
  }

  footer {
    width: 360px;
  }

  .tekstilaatikko {
    width: 360px;
  }

  .kuvalaatikko {
    width: 300px;
  }

  .alakuvalaatikko {
    display: none;
  }

  #valikko_ikoni {
    display: contents;
  }

  .navbar {
    display: none;
  }

  #navipalkki li {
    display: block;
  }
}

/* ***************************************
    näyttö > 360px
   *************************************** */
@media only screen and (min-width:360px) and (max-width:767px) {
  .maintyyli {
    flex-direction: column;
    width: 600px;
  }

  #navipalkki {
    width: 70%;
  }

  .logoteksti {
    width: 100%;
  }

  footer {
    width: 100%;
  }

  .kuvalaatikko {
    width: 90%;
  }

  .tekstilaatikko {
    width: 90%;
  }

  .alakuvalaatikko {
    display: none;
  }

  #valikko_ikoni {
    display: contents;
  }

  .navbar {
    display: none;
  }

  #navipalkki li {
    display: block;
  }
}

/* ***************************************
    näyttö > 768px
   *************************************** */
@media only screen and (min-width:768px) {
  .maintyyli {
    width: 1000px;
  }

  #navipalkki {
    width: 1000px;
  }

  .navbar {
    width: 1000px;
  }

  .logoteksti {
    width: 1000px;
  }

  footer {
    width: 1000px;
  }
}
