/* DEFAULTS */
body {
  background-color: rgb(27, 27, 27);
  color: whitesmoke;
}

h1 {
  font-family: "Courier New", sans-serif;
}

h2 {
  font-family: "Courier New", sans-serif;
}

p {
  font-family: "Arial", serif;
}

.text {
  padding:20px;
  background-color: rgb(0, 0, 0);
}

/* HEADER */
header {
  background-color: #6d1515;
  padding: 10px;

  /* BORDER */
  border-color:rgb(0, 0, 0);
  border-width:2px;
  border-style:solid;


  background-image: url("art/personal/2025/20250328_extank.jpg");
  min-height: 100px;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position:relative;
}

/* PAGE CONTAINER */
#pagecontainer {
  margin: 0px;
  background-color:rgb(255, 0, 242);
}

/* NAVBAR */
ul.navbar {

  /* TEXT */
  font-family: Courier;
  text-transform: uppercase;
  font-style: bold;
  font-size:small;
  color: white;

  /* BORDER */
  border-color:rgb(0, 0, 0);
  border-width:2px;
  border-style:solid;

  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #0e0e0e;
}

header img {
  position:absolute;
  top:100px;
  right:240px;
  height:60px;
}

ul.navbar li {
  float: right;
}

li a, .dropbtn {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
  background-color: rgb(0, 255, 136);
  color:black;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
  display: block;
}

/* FOOTER */

footer {
  /* BORDER */
  border-color:rgb(0, 0, 0);
  border-width:2px;
  border-style:solid;
}

/* Footer uses navbar class with this modification */
footer ul.navbar li {
  float: left;
}


/* IMAGE CONTAINMENT/CROPPING */

.image-container {
  background-color: #3995b1;
  position:relative;

  /* BORDER */
  border-color:rgb(26, 26, 26);
  border-width:1px;
  border-style:solid;
}

.image-container img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #000000;
  justify-content:center;
}

.gallery-container .image-container {
  /* adjust this according to the images' border width */
  /* width:calc(20% - 2px); */
  width:calc(20% - 4px);
  height:200px;
  background-color: #000000;
  cursor:pointer;
}

@media only screen and (max-width: 600px) {
  .gallery-container .image-container {
  /* adjust this according to the images' border width */
  /* width:calc(20% - 2px); */
    width:calc(50% - 4px);
  }
}

.gallery-container .image-container:hover img {
  filter:brightness(1.2);
}

.gallery-container .image-container div {
  display:none;
}

/* MODAL GALLERY */

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  flex-direction:column;
  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;
}

/* Modal content (image) */
.modal-content {
  width: 90%;
  height: auto;
  max-width:fit-content;
  max-height:90%;
  overflow: hidden;


}

.gallery-item:hover {
  transform: scale(1.1);
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
}

/* Caption of modal image */
.caption {
  display:block;
  width:100%;
  text-align: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.8);

  padding:20px;
}

.lore {
  background-color:#3995b1
}

.grid-container {
  display: grid;
  justify-content:space-evenly;
}

.grid-container .image-container {
  border-color:rgb(0, 0, 0);
  border-width:5px;
}


.textoverlay {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  padding:20px;
  background-color:black;
  opacity:0.95;
}

a .textoverlay {
  /* TEXT */
  font-family: Courier;
  text-transform: uppercase;
  font-style: bold;
  color: white;
  font-size:x-large;
}
