@font-face {
    font-family: myFont;
    src: url(/fonts/Chomsky.woff);
}

/* Base Design */
* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f5f0;
}

h1 h2 h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Logo Design */

header img {
    height: 110px;
    width: 110px;
    margin-left: 50px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Header Design */
header {
    background-color: #2c3e50;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

header a{
    color: #fff;
    text-decoration: none;

}

nav ul {
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
    gap: 1.5rem;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3 ease;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
}

nav a:hover {
    color: #f39c12;
    text-decoration: underline;
}

/* Main Content Design */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container h2{
    border-bottom: 2px solid #f39c12;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Video Container */
.video-intro {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.video-container {
    position: relative;
    padding-bottom: 55%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Timeline Page Design */

.timeline-nav {
    color:#fff;
    min-height: 100vh;
    padding: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-design {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 24px;
}

.nav-box {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-box:hover {
    transform: translateY(-5px);
}

.nav-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
}
  
.nav-content h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
  
.nav-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.nav-home {
    background-color: #2c3e50;
}
  
.nav-renaissance {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/The_Last_Supper_-_Leonardo_Da_Vinci_-_High_Resolution_32x16.jpg/2560px-The_Last_Supper_-_Leonardo_Da_Vinci_-_High_Resolution_32x16.jpg');
}
  
.nav-baroque {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/The_Calling_of_Saint_Matthew-Caravaggo_%281599-1600%29.jpg/2143px-The_Calling_of_Saint_Matthew-Caravaggo_%281599-1600%29.jpg');
}
  
.nav-romanticism {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/af/Caspar_David_Friedrich_-_Wanderer_above_the_Sea_of_Fog.jpeg/1596px-Caspar_David_Friedrich_-_Wanderer_above_the_Sea_of_Fog.jpeg');
}
  
.nav-impressionism {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Monet_-_Impression%2C_Sunrise.jpg/2560px-Monet_-_Impression%2C_Sunrise.jpg');
}
  
.nav-modernism {
    background-image: url('https://upload.wikimedia.org/wikipedia/en/d/dd/The_Persistence_of_Memory.jpg');
}

/* Artwork detail page*/
.artwork-detail {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.full-artwork {
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 4px;
}

.artwork-content {
    max-width: 800px;
    margin: 0 auto;
}

.artwork-content h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.artwork-content .artist {
    color: #666;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.artwork-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem;
}

.artwork-content ul {
    list-style: none;
    margin: 1rem 0;
}

.artwork-content ul li {
    margin-bottom: 0.5rem;
}

.artwork-content ul li strong {
    color: #2c3e50;
    margin-right: 0.5rem;
}



/* Timeline Artwork Design */
.artwork {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.artwork-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    padding-bottom: 1rem;
    min-height: 200px; 
    background-color: #f1f1f1; 
}

.artwork-card:hover {
    transform: translateY(-5px);
}

.artwork-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    background-color: #f1f1f1;
}

.artwork-info {
    padding: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.artwork-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.artwork-info .artist {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Gallery Design */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.painting {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.painting h3, .painting p {
    padding: 0 1rem;
}

.painting p {
    color: #666;
    font-style: italic;
    padding-bottom: 1rem;
}

.painting img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.painting:hover {
    transform: translateY(-5px);
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

.table th {
    background: #2c3e50;
    color: #fff;
}

.table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Form Design */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
}

button {
    background: #2c3e50;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background: #34495e;
}


/* Footer Design */
footer {
    background-color: #2c3e50;
    color: #ecf0f1; 
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Fix header and image layout for small screens */
@media (max-width: 600px) {
    /* Header title fix */
    .header-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    header h1 {
      position: static;
      transform: none;
      font-size: 1.8rem;
      margin-top: 1rem;
    }
  
    header img {
      margin-left: 0;
      margin-bottom: 1rem;
      height: 80px;
      width: 80px;
    }
  
    nav ul {
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
    }

    .artwork-card img {
        object-fit: contain;
        height: auto;
        max-height: 400px;
    }
  
    /* Mona Lisa image fix */
    .full-artwork {
      width: 100%;
      height: auto;
      object-fit: contain;
      margin: 1rem 0;
    }
  }

/* Tablets and small laptops (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    header h1 {
        font-size: 2rem;
    }

    .gallery,
    .artwork,
    .nav-design {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-box {
        height: 200px;
    }
}

/* Larger desktops (1200px and up) */
@media (min-width: 1200px) {
    .nav-box {
        height: 250px;
    }
}