@font-face {
  font-family: 'FSEX302';
  src: url('fonts/FSEX302.woff2') format('woff2'),
       url('fonts/FSEX302.woff') format('woff');
}

body {
  background-image: url('background2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: 'FSEX302', monospace;
  line-height: 1.6;
  font-size: 12px;
  color: #fff;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  z-index: 2;
  width: 100%;
  align-items: center;
}

#new-link {
  text-decoration: none;
  color: white;
  font-size: 11px;
}

main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

nav {
  position: absolute;
  width: 400px;
  height: 400px;
  z-index: -1;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  position: absolute;
  font-size: inherit;
  z-index: 2;
}

.nav-link:hover {
  color: #ccc;
}

#home-link {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

#about-link {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

#projects-link {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

#contact-link {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.content {
  text-align: center;
  z-index: 1;
  font-size: 8px;
}

h1 {
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.contact-content {
  font-size: 17px;
  text-align: center;
  line-height: 1.6;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h1 {
  margin-bottom: 1rem;
  font-size: 17px;
  font-weight: bold;
}

.contact-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.contact-content form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-content label {
  margin-bottom: 0.5rem;
  font-size: 12px;
  font-weight: bold;
}

.about-content {
  font-size: 8px;
  text-align: center;
}

.about-content a {
  color: white;
  text-decoration: underline;
}

.project-links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 10px;
}

.project-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

a {
  color: inherit;
  cursor: pointer;
}

.password-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  font-size: 10px;
}

.password-form label {
  margin-bottom: 20px;
  font-size: 10px;
  margin-top: 20px;
}

.password-form input[type=password] {
  padding: 10px;
  font-size: inherit;
  border: none;
  border-radius: 5px;
  margin-bottom: 20px;
  background-color: #8b0000;
  color: rgb(0, 0, 0);
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.password-form button[type=submitt] {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 2px;
  padding: 2px 4px;
  cursor: pointer;
  align-self: center;
  width: auto;
    margin-top: 20px;
}

.password-form button[type=submit]:hover {
  background-color: #b22222;
}

.writing-link {
  font-size: 10px;
}

/* Now we'll add the CSS specific to the paintings.html page. 
   We use .paintings-body to make sure it only applies to this page. */

   .image-container {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  

.paintings-body .image-figure {
  margin: 20px 0; /* Adjust as needed */
}

.paintings-body .painting {
  width: 80%; /* Adjust as needed */
  height: auto;
}

.paintings-body .image-caption {
  color: #fff; 
  font-family: 'FSEX302', monospace; 
  font-size: 12px; 
  text-align: center; 
}
