/* Styles for elements */

body {
  font-family:sans-serif;
}

html {
  height: 100%;
  width: 100%;  
}

/* Styles for classes */

/* Link elements */
a.no_decoration {
  text-decoration: none;
  color: #5f6368;
}

a.center {
  display: flex;
  top: 0;
  width: 100%;
  justify-content: center;
}

a.float-left {
  float: left;
}

a.float-right {
  float: right;
}

a.left {
  display: flex;
  top: 0;
  width: 100%;
  justify-content: left;
}

a.right {
  display: flex;
  top: 0;
  width: 100%;
  justify-content: right;
}

/* Container elements */

div.center {
  display: grid;
  height: 100%;
}

div.center, div.hcenter {
  align-items: center;
  justify-content: center;
}

div.container {
  overflow: hidden;
}

div.flex {
  display: flex;
  margin-bottom: 5px;
}

div.last {
  padding-bottom: 10px;
}

div.menu {
  font-weight: bold;
  color: #5f6368;
  width: 100%;
}

div.flex > div {
  margin-left: 5px;
  margin-right: 5px;
}

div.flex > div:first-child {
  margin-left: 0px;
}

div.flex > div:last-child {
  margin-right: 0px;
}

/* Image elements */

img.icon {
  scale: 200%;
  margin-left: 20px;
  margin-right: 20px;
}

img.scale {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

img.small-icon {
  scale: 100%;
  margin-left: 2px;
  margin-right: 2px;
}

/* Paragraph elements */

p.body {
  font-size: initial;
  font-weight: initial;
}

p.flex {
  display: flex;
}

p.update + p {
  margin-top: 0px;
}

p.update {
  margin-bottom: 0px;
}

/* Span elements */

span.image-left {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}

span.image-right {
  float: right;
  margin-left: 10px;
  margin-bottom: 10px;
}

span.scale25 {
  width: 25%;
}

span.scale33 {
  width: 33%;
}

span.scale50 {
  width: 50%;
}

/* Styles for the modal images */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden;
  text-align: center;
  align-items: center;
  align-content: center;
  justify-content: center;
  flex-direction: column;
  vertical-align: middle;
  background-color: #000;
}

.modalClose, .modalPrevious, .modalNext {
  position: absolute;
  color: #ccc;
  font-size: xx-large;
  font-weight: bold;
  background-color: #000;
  background-color: rgb(0, 0, 0, 0.5);
}

.modalClose {
  top: 0px;
  right: 0px;
}

.modalPrevious {
  bottom: 0;
  left: 0px;
}

.modalNext {
  bottom: 0;
  right: 0px;
}

.modalList {
  display: none;
}

.modalWrapper {
  display: table-row;
  max-width: 100%;
  max-height: 100%;
}

.modalImage {
  display: table-cell;
  object-fit: contain;
  width: 100%;
}

.modalCaption {
  margin: 0;
  width: 100%;
  text-align: center;
  color: #ccc;
  font-weight: bold;
}

/* Add Animation */
.modal, .modalClose, .modalImage, .modalCaption, .modalPrevious, .modalNext {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.3s;
  animation-name: zoom;
  animation-duration: 0.3s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* Styles for different screen sizes */

/* Styles for very small portable devices, like very small phones phones */

@media (max-width: 374px) {
  .menu {
    font-size: x-large;
  }
  body {
    height: 95%;
    width: 95%;
  }
  img.icon {
    margin-left: 5px;
    margin-right: 15px;
  }
  .modalImage {
    height: calc(100% - 24px);
  }
  .modalCaption {
    font-size: 20px;
  }
}

/* Styles for portable devices, like phones */

@media (min-width: 375px) and (max-width: 767px) {
  .menu {
    font-size: x-large;
  }
  body {
    height: 95%;
    width: 95%;
  }
  .modalImage {
    height: calc(100% - 28px);
  }
  .modalCaption {
    font-size: 24px;
  }
}

/* Styles for medium devices like tablets */

@media (min-width: 768px) {
  .menu {
    font-size: xx-large;
  }
  body {
    width: 70%;
    margin-left: 15%;
  }
  .modalImage {
    height: calc(100% - 38px);
  }
  .modalCaption {
    font-size: 32px;
  }
}

/* Styles for larger devices like laptops */

@media (min-width: 1200px) {
  .menu {
    font-size: xx-large;
  }
  body {
    width: 50%;
    margin-left: 25%;
  }
  .modalImage {
    height: calc(100% - 46px);
  }
  .modalCaption {
    font-size: 40px;
  }
}