body {
    background-color: black;
}

main {
    background-color: black;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10%;
}

#title-box {
    background-image: url("pexels-ocean.jpg");
    height: 90%;
    width: 50%;
    margin: auto;
    padding-top: 0.25px;
    padding-bottom: 0.25px;
}

#blackout-title-box {
    background-image: url("pexels-ocean.jpg");
    height: 90%;
    width: 50%;
    margin: auto;
    padding-top: 0.25px;
    padding-bottom: 0.25px;
}

#blackout-title-box > h2 > a {
    text-decoration: none!important;
    color: #7fcdff;
}

#blackout-title-box > h2 > a:hover {
    background-color: #7fcdff;
    color: black;
}


h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    text-align: center;
    color: lightgrey;
    padding-bottom: 5px;
}

h2 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    text-align: center;
    color: lightgrey;
    padding-bottom: 5px;
}

#link-box {
    background-color: black;
    height: 10%;
    width: 50%;
    margin: auto;
    padding-bottom: 7px;
    text-align: center;
    padding-top: 5px;
}

#link-box > a {
    text-decoration: none;
    color: #7fcdff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
}

#link-box > a:hover {
    background-color: #7fcdff;
    color: black;
}

#main-content-box {
    background-image: url("pexels-ocean.jpg");
    height: 90%;
    width: 50%;
    margin: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
}

#main-content-box-top {
    background-color: black;
    height: 90%;
    width: 50%;
    margin: auto;
    color: lightgrey;
    padding-top: 2.5px;
    padding-bottom: 5px;
}

#main-content-box-text-container {
    padding-left: 2.5px;
    padding-right: 2.5px;
}


#main-content-box-text-container > a {
    text-decoration: none;
    color: #7fcdff;
}

#main-content-box-text-container > a:hover {
    background-color: #7fcdff;
    color: black;
}

#superscript-fi {
    color: white;
    background-color: blue;
    padding-left: 1px;
    font-size: 3.5px;
}

#copyright-text {
    font-size: 10px;
    color: lightgrey;
}

#copyright-text > a {
    text-decoration: none;
    color: #7fcdff;
}

#copyright-text > a:hover {
    background-color: #7fcdff;
    color: black;
}

/* Image gallery */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  text-align: center;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 2.5vh 0 0 5vw;
  width: 45vw;
  height: 45vh;
  margin: auto;
}

.gallery-item {
  position: relative;
  width: 25%;
  height: auto;
  max-height: 50%;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.1);
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 500px;
  max-height: 500px;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
  font-size: 15px;
}

@media screen and (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .gallery-item {
    width: calc(100% - 20px);
  }
}
