/* GLOBAL STYLES */
body, html{
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

/* CENTURY SECTION GLOBAL STYLES */
.century-section{
    position: relative;
    height: 100vh;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-position: center -500px;
}


.century-section h1{
    margin-bottom:20px;
    font-weight: bold;
    max-width: 500px; 
    padding-left: 30px;
    font-family: "Playfair Display SC", serif;
}
.century-section p{
    max-width: 500px;
    padding-left: 30px;
}
.icon-img{
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}
.icon-img img{
    width: 100px;
    height: 100px;
    border: rgb(100, 60, 9);
    border-style: solid;
    border-width: 10px;

    
}
.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    max-width: 700px;
    padding: 20px;
   
}
.content-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
    padding: 50px;
    position: relative; 
    z-index: 1; 
}

.playfair-display-sc-regular {
    font-family: "Playfair Display SC", serif;
    font-weight: 400;
    font-style: normal;
  }
  


#s1{
    background-color: rgb(100, 60, 9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: center;
}
#s1 h3{
padding-bottom: 60px;
}



.background-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); 
    backdrop-filter: brightness(0.7); 
    z-index: 0; 
}

#s2{
    position: relative;
    background-image: url('../img/1500s.png');
    justify-content: flex-start; 
    padding-left: 50px; 
    text-align: left;
    overflow: hidden;
}

  

  #s2 .text-content {
    position: relative;
    z-index: 1; 
  }
#s3{
    position: relative;
    background-image: url('../img/1600s.png');
    justify-content: flex-start; 
    padding-left: 50px; 
    text-align: left;
    overflow: hidden;
}
#s3 .text-content {
    position: relative;
    z-index: 1; /* Above the overlay */
  }
#s4{
    position: relative;
    background-image:url('../img/18th-19th.png');
    justify-content: flex-start; 
    padding-left: 50px; 
    text-align: left;
    overflow: hidden;
}
#s4 .text-content {
    position: relative;
    z-index: 1; /* Above the overlay */
  }
#s5{
    position: relative;
    background-image: url('../img/modern.png');
    justify-content: flex-start;
    padding-left: 50px; 
    text-align: left;
}
#s5 .text-content {
    position: relative;
    z-index: 1; /* Above the overlay */
  }
#s6{
    background-color: rgb(100, 60, 9);

}
.coffee-chart{
  
   
    margin-bottom: 20px;

}
#s6 .text-content{
    max-width: 400px;
    padding-right: 40px;
}
#s7{
    background-color: rgb(115, 76, 25);
}
#s7 .text-content{
    
    padding-right: 100px;
}
#s9{
    background-color: rgb(100, 60, 9);
       
        display: flex;
        flex-direction:column;
        justify-content: center;
        align-items:center;
        padding: 50px 20px; 
        min-height: 100vh; 
        color: white; 
        text-align: center; 
    
    
}
#s9 h2{
    font-family: "Playfair Display SC", serif;
}

.hidden-text {
    max-height: 0;
    overflow: hidden;
    display: none;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    margin-top: 10px;
    font-size: 0.9em;
    max-width: 200px;
    text-align: center;
    padding: 0 10px;
  }
  
  .icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background-color: white;
  }
  .icon-item:hover{
    box-shadow:0 8px 16px rgba(0,0,0,0.3) ;
  }
  

.flourish-c1{
    display: flex;
    align-items: center;
    gap:100px;
    padding-top: 60px;
    padding-right: 40px;
}
.flourish-c2{
    display: flex;
    align-items: center;
    gap:100px;
    padding-top: 60px;
    width:400px;
    padding-right: 40px;
    padding-bottom: 100px;
}
.flourish-embed{
    height: 500px;
    width: 500px;
}

.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-arrow img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
}

.scroll-arrow:hover {
    transform: translateX(-50%) translateY(5px);

}

.sources-list {
    max-width: 800px; 
    width: 100%;
    padding: 20px;
    margin: 0 auto; 
    text-align: left; 
}




.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}


.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    position: relative;
    color: black;
    text-align: center;
    /* looked up how to do as sources were too wide for modal view */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}


.sources-list ul {
    list-style-type: none;
    padding: 0;
}

.sources-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.sources-list a {
    color: black;
    text-decoration: none;
}

.sources-list a:hover {
    text-decoration: underline;
}


#closeModalBtn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #643c09;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#closeModalBtn:hover {
    background-color: #4d2e07;
}


#openModalBtn {
    font-family: "Playfair Display SC", serif;
    font-size: 2rem; 
    padding: 15px 40px; 
    background-color: #643c09; 
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;

}


#openModalBtn:hover {
    background-color: #4d2e07;
    /* looked up how to do glow */
    transform: scale(1.05); 
}
