* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0em;
  background: url(l.jpg) repeat-y left #eee;
  TEXT-ALIGN: center
}

/* Advanced Checkbox Hack */
body {
  -webkit-animation: bugfix infinite 1s;
}

h1{BACKGROUND: #EFE6DD; COLOR: #900020; FONT-FAMILY: Segoe script,Monotype corsiva,arial; FONT-SIZE: 2.5em; FONT-WEIGHT: bold; TEXT-ALIGN: center}
h2{BACKGROUND: #EFE6DD; COLOR: #900020; FONT-FAMILY: Segoe script,Monotype corsiva,arial; FONT-SIZE: 1.5em; FONT-WEIGHT: normal; TEXT-ALIGN: center}


TD {FONT-SIZE: 2em; VERTICAL-ALIGN: middle; TEXT-ALIGN: left; FONT-FAMILY: Monotype corsiva;}
TH {FONT-SIZE: 2em; VERTICAL-ALIGN: middle; TEXT-ALIGN: center; FONT-FAMILY: Monotype corsiva;}


P {TEXT-ALIGN: justify; text-indent: 2em; FONT-SIZE: 1.3em; FONT-FAMILY: Monotype corsiva;}
P.right{TEXT-ALIGN: right}


ul {padding: 0; /* Убираем поля */ 
    margin-left: 2em; /* Отступ слева */
   }
li {TEXT-ALIGN: justify; 
    text-indent: 0em; 
    margin-left: 0em; 
    TEXT-ALIGN: left; 
    FONT-SIZE: 1.3em; 
    FONT-FAMILY: Monotype corsiva;}


@-webkit-keyframes bugfix {
  from {
    padding: 0;
  }
  to {
    padding: 0;
  }
}
input[type=checkbox] {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

label {
  display: none;
  cursor: pointer;
  user-select: none;
}

/* background for li / select */
/* custom-dropdown */
nav[role="custom-dropdown"] {
  position: relative;
  width: 100%;
}
nav[role="custom-dropdown"] a,
nav[role="custom-dropdown"] label {
  color: #fff;
  text-decoration: none;
  font: 1.3em sans-serif;
  transition: color .6s ease-in-out;
}
nav[role="custom-dropdown"] ul {
  padding: 0.45;
  margin: 0 auto;
  width: 100%;
  list-style: none;
}
nav[role="custom-dropdown"] ul > li {
  float: left;
  padding: .55em .55em;
  width: 25%;
  border-radius: 15px;
  background-image: url(bg_dark_grey.png);
  text-align: center;
  transition-duration: .3s;
  transition-timing-function: ease-in-out;
  transition-property: box-shadow, color;
  box-shadow: 0 0.05em 0.25em 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
nav[role="custom-dropdown"] ul > li:hover {
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  box-shadow: 0 0.05em 0.25em 0 rgba(0, 0, 0, 0.35), inset 0 0 0 2em rgba(0, 0, 0, 0.3);
}
nav[role="custom-dropdown"] ul > li:hover > a {
  color: #fff;
}


   
.subs {
  font: 0.8em sans-serif;
  display: none;
  left: 20px;
  position: relative;
  top: 0;
}

nav[role="custom-dropdown"] ul > li:hover > ul.subs{
  display: block;
}

   .top { 
    margin: 0em 0em 2em 0em;
    width: 100%;
    height:60px; 
    clear:both;
   }

   .line { 
    width: 100%;
    height:1px; 
    clear:both;
   }

.layout { position: relative; /* Относительное позиционирование */
          width: 100%; 
    }

   .block1 { 
    width: 15%; 
    background: url(l.jpg) repeat-y #eee;
    padding: 5px;
    padding-right: 5px; 
    border: solid 0px black; 
    float: left;
   }

   .block2 { 
    margin: 0 0 0 0;
    left: -35%; width: 70%;
    background: #EFE6DD; 
    padding: 5px; 
    border: solid 0px black; 
    float: left;
    overflow:hidden; 
   }


   .block3 { 
    width: 15%; 
    height:150%; 
    background: url(l.jpg) repeat-y #eee;
    background-position: right;
    padding: 5px;
    padding-right: 5px; 
    border: solid 0px black; 
    float: left;
   }

/* small screens */
@media screen and (max-width: 980px) {
  html,
  body {
    margin: 0.5;
  }

  nav[role="custom-dropdown"] ul {
    display: none;
    height: 100%;
  }
nav[role="custom-dropdown"] a,
nav[role="custom-dropdown"] label {
  color: #ccc;
  text-decoration: none;
  font: 2.0em sans-serif;
  border-radius: 15px;
  transition: color .3s ease-in-out;
}
  nav[role="custom-dropdown"] label {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.0em;
    padding: .45em;
    font-size: 2em;
    margin: 0;
    border: 0.15em solid rgba(60, 60, 60, 0.2);
    background-image: url(bg_dark_grey.png);
  }
  nav[role="custom-dropdown"] label:after {
    position: absolute;
    right: .25em;
    top: 0;
    content: "Меню \2261";
    font-size: 1.5em;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ ul {
    display: block;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ ul > li {
    width: 100%;
    opacity: .8;
    text-align: left;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ ul > li:after {
    position: absolute;
    right: .25em;
    content: "\203A";
    font: bold 1.0em sans-serif;
  }



nav[role="custom-dropdown"] li ul {
  display: block;
  left: 99px;
  position: absolute;
  top: 0;
}
nav[role="custom-dropdown"] li:hover ul {
  display: block;
}


  
body {
  margin: 0em;
  font: 2.0em sans-serif;
  background: #eee;
  TD {FONT-SIZE: 3em; VERTICAL-ALIGN: middle; TEXT-ALIGN: left; FONT-FAMILY: Monotype corsiva;}
}

  
  .block1 {
    display: none;
   }

   .block2 {
    width: 100%; 
    margin: 0 0 0 0;
    background: #EFE6DD; 
    padding: 5px; 
    border: solid 0px black; 
    float: left;
    overflow:hidden; 
   }

  .block3 {display: none;} 
}
