/* Style.css for personal website */
/* Color Scheme */
/* primary-color: #007177;  Teal for main elements */
/* secondary-color: #2c2c2c; Dark gray for backgrounds */
/* primary-color: #1b2b34;  Dark background */
/* secondary-color: #4B6472; Lighter blue for accents */
/* text-color: #B9B6B6; Light text color */
/* hover-color: #007177; Hover color for links */

body {
  font-family: monospace, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande';
  background-color: #B9B6B6;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: #4B6472;
  position: relative;
  isolation: isolate;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/images/006.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(1.1);
  opacity: 0.35;
  transform: rotate(180deg);
  z-index: -1;
}

.tab { 
  display:inline-block; 
  margin: 0 20px 20px 20px;
}

.top-page {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007177;
  color: #6DBF76;
  font-size: 60px;
  padding: 10px 14px;
  border-radius: 50px;
  font-weight: bold;
  font-family: monospace, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande';
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 1000;
  user-select: none;
}

.top-page:hover,
.top-page-floating:focus {
  background-color: #4B6472;
  color: #fff;
  outline: none;
  cursor: pointer;
}

nav {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px auto 20px auto;
  background-color: #1b2b34;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  flex: none;
  text-align: center;
}

nav a {
  display: block;
  padding: 4px;
  margin: 4px;
  background-color: #007177;
  color: #6DBF76;
  border-radius: 6px;
  letter-spacing: 2px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100px;
  box-sizing: border-box;
  white-space: nowrap;
}

nav a:hover {
  background-color: #4B6472;
  color: #ffffff;
  cursor: pointer;
}

.card1 {
  background-color: #1b2b34;
  color: #B9B6B6;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-family: monospace, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande';
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 400px; /* Adjust if needed */
}

/* This pushes the button down and right */
.contact-container {
  margin-top: auto;
  align-self: flex-end;
}

.card1 h1 {
  color: #6DBF76;
  text-align: center;
  margin: 0 auto;
  font-size: 2rem;
  text-shadow: none;
  letter-spacing: 2px;
}

.card1 img {
  display: block;
  margin: 0 auto;
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* Styling for the button */
.contact-button {
  display: block;
  padding: 4px;
  margin: 4px;
  background-color: #007177;
  color: #6DBF76;
  border-radius: 6px;
  letter-spacing: 2px;
  text-decoration: none;
  font-weight: bold;
  font-family: inherit;
  width: 100px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.contact-button:hover {
  background-color: #4B6472;
  color: #ffffff;
}


h1 {
  color: #2C2C2C;
  text-align: center;
  font-size: 80px;
  padding-bottom: 10px;
  text-shadow: #007177 2px 2px 4px;
  font-weight: bold;
  letter-spacing: 2px;
}

h2 {
  color: #1b2b34;
  text-align: center;
  margin-top: 20px;
}


@media (max-width: 480px) {
  .top-page {
    display: none;
  }

  nav ul {
    gap: 4px;
    flex-wrap: nowrap;
  }

  nav a {
    width: 58px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 6px 2px;
    margin: 4px 0;
  }

  .card1 img {
    height: auto;
  }
}

.contact-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.contact-links li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.contact-links a {
  color: #4B6472;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  text-decoration: underline;
}
.project {
  padding: 10px;
  margin: 20px 0;
  border-radius: 5px; 
  text-align: center;
  border-left: 4px solid #4B6472;
  border-right: 4px solid #4B6472;
  background: #1b2b34;
}

.project h3 {
  margin-top: 0;
  text-decoration: underline;
  text-align: center;
  text-emphasis-style: bold;
  color: #999999;
}

code {
  background: #007177;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

/* Gallery Styles */
.gallery-page {
    max-width: 1400px;
}

.gallery {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery-col {
        min-width: 200px;
    }
}
/* Add New Button */
.add-new-btn {
    background-color: #6DBF76;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.add-new-btn:hover {
    background-color: #5da963;
}

/* Artwork Action Buttons */
.artwork-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.edit-btn, .delete-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.edit-btn {
    background-color: #007177;
    color: white;
}

.edit-btn:hover {
    background-color: #005a5f;
}

.delete-btn {
    background-color: #d32f2f;
    color: white;
}

.delete-btn:hover {
    background-color: #b71c1c;
}

/* Form Modal */
.modal-form-content {
    background-color: #1b2b34;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #007177;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-form {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-form:hover {
    color: #6DBF76;
}

#artwork-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#artwork-form label {
    color: #6DBF76;
    font-weight: bold;
    margin-bottom: 5px;
}

#artwork-form input {
    padding: 10px;
    border: 1px solid #007177;
    border-radius: 4px;
    background-color: #2d3e47;
    color: white;
    font-size: 14px;
}

#artwork-form input:focus {
    outline: none;
    border-color: #6DBF76;
}

.submit-btn {
    background-color: #6DBF76;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #5da963;
}

#form-title {
    color: #6DBF76;
    margin-bottom: 20px;
}

.artwork-card {
    background: #1b2b34;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid #007177;
    width: 100%;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,113,119,0.4);
    border-color: #007177;
}

.artwork-card img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #2c2c2c;
}

.artwork-info {
    padding: 15px;
}

.artwork-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #6DBF76;
    letter-spacing: 1px;
}

.artwork-medium {
    color: #B9B6B6;
    margin: 0 0 5px 0;
    font-style: italic;
    font-size: 0.9em;
}

.artwork-colors {
    color: #4B6472;
    font-size: 0.85em;
    margin-top: 8px;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #4B6472;
    background-color: #1b2b34;
    border-radius: 8px;
    margin: 20px;
}
    /* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 20px rgba(0, 113, 119, 0.5);
}

.modal-content.zoomed {
    transform: translate(-50%, -50%) scale(1.5) !important;
    cursor: zoom-out;
}

.modal-info {
    text-align: center;
    color: #6DBF76;
    padding: 20px;
    font-size: 1.2em;
}

.modal-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #6DBF76;
}

.modal-details {
    color: #B9B6B6;
    font-size: 0.9em;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #6DBF76;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #007177;
}

@media (max-width: 768px) {
    .gallery {
        gap: 12px;
    }

    .modal-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-content.zoomed {
        transform: translate(-50%, -50%) scale(1.5) !important;
    }

    .modal-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery {
        flex-direction: column;
    }
    .gallery-col {
        width: 100%;
    }
}

/* Section card — consistent wrapper for page content sections */
.section-card {
    background-color: #1b2b34;
    color: #B9B6B6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: monospace, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande';
}

.section-card h1 {
    color: #6DBF76;
    font-size: 2rem;
    text-align: center;
    text-shadow: none;
    font-weight: bold;
    letter-spacing: 2px;
    padding-bottom: 0;
}

.section-card h2 {
    color: #6DBF76;
    text-align: left;
    margin-top: 0;
}

.section-card p,
.section-card li {
    color: #B9B6B6;
}

.card1 {
    margin-bottom: 0;
}

section {
    margin-bottom: 20px;
}