/* BODY */
body {
    font-family: Verdana, "Lucida Sans", Arial, sans-serif; 
    font-size: 100%; 
    color: black; 
    background-color: lightblue; 
}
* { box-sizing: border-box; }

.hide { display: none; }
.index-section {padding: 8px; text-align: center; vertical-align: bottom; color: white; background-color: #9933cc;}  

.doc-title {
    width: 100%; 
    font-size: 16px; 
    font-weight: bold; 
    text-align: center;
}

/* HEADER  */
.head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    padding: 8px; 
    color: white; 
    background-color: #9933cc;
    text-align: center; 
    z-index: 3;
}

/* GRIDS */
.one-section, .two-sections, .three-sections, .four-sections {
    position: absolute;
    top: 45px;
    width: 100%;
    height: auto;
    padding-right: 14px;
    display: grid;
}

.two-sections {
    grid-template-areas: "a1" "a2";
    max-height: 96vh;
    overflow: auto;
}
.three-sections {
    grid-template-areas: "a1" "a2" "a3";
    max-height: 96vh;
    overflow: auto;
}
.four-sections {
    grid-template-areas: "a1" "a2" "a3" "a4";
    max-height: 96vh;
    overflow: auto;
}
@media screen and (min-width: 900px) {
    .two-sections{
        grid-template-areas: "a1 a2";
        grid-template-columns: repeat(2, 1fr);
    }
    .three-sections{
        grid-template-areas: "a1 a2 a3";
        grid-template-columns: repeat(3, 1fr);
    }
    .four-sections{
        grid-template-areas: "a1 a2 a3 a4";
        grid-template-columns: repeat(4, 1fr);
    }

}

/* sections */
.sec1 {grid-area: a1;}
.sec2 {grid-area: a2;}
.sec3 {grid-area: a3;}
.sec4 {grid-area: a4;}

@media screen and (min-width: 900px) {.sec1, .sec2, .sec3, .sec4 {
    height: 96vh; 
    overflow: auto;
}}

/* MENU */
.menu div {
    padding: 16px; 
    background-color: #33b5e5; 
    color: black; 
    border: solid 2px grey;
    border-radius: 5px; 
    padding: 4px;
}
.menu a {
    display: block;
    width: 100%;
}
.menu div:hover {background-color: #0099cc; }

/* IMAGES */
.image {
    display: grid;
}
@media screen and (min-width: 800px) {.image {grid-template-columns: repeat(2, 1fr);}}
@media screen and (min-width: 1000px) {.image {grid-template-columns: repeat(3, 1fr);}}
@media screen and (min-width: 1200px) {.image {grid-template-columns: repeat(4, 1fr);}}
@media screen and (min-width: 1600px) {.image {grid-template-columns: repeat(5, 1fr);}}
@media screen and (min-width: 1800px) {.image {grid-template-columns: repeat(6, 1fr);}}
@media screen and (min-width: 2000px) {.image {grid-template-columns: repeat(7, 1fr);}}

/* CAPTIONS */
.caption {
  position: relative;
  display: inline-block;
}
.caption .text {
  position: absolute;
  left: 0;
  bottom: 2%;
  width: 100%;
  background-color: lightblue;
  font-size: 80%;
  color: black;
  text-align: left;
  border: 1px solid black;
  border-radius: 6px;
  padding: 8px;
  visibility: hidden;
  z-index: 1;
}
.caption:hover .text {
  visibility: visible;
}
.section-hide {
    display: none;
}
@media screen and (min-width: 600px) {.section-hide {display: block;}}

.hide-item {display: none;}
@media screen and (min-width: 1200px) {.hide-item{display: block;}}