body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(237, 219, 190);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.65s ease-in-out;
}

body.loaded {
    opacity: 1;
}

a {
    text-decoration: none;
}

.privacy {
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  ::-webkit-scrollbar-button {
    display: none;
  }
  
.buycoffee-icon {
    padding-left: 20px;
}

.logo {
    width: 25vw;
    height: auto;
    filter: invert(1) grayscale(100%) contrast(100%);
    margin-top: 20px;
    margin-left: 70px;
}

.title {
    margin-bottom: 20px;
    letter-spacing: 0.2rem;
}

.sub-title {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 100;
    font-size: 1rem;
    padding: 5px;
    letter-spacing: .05rem;
}

#donate-button-container {
    margin-top: 5px;
    width: 100px;
    height: auto;
}

#donate-button img {
    width: 85% !important;
    max-width: 100% !important;
    margin-left: 20px;
}

.social-links {
    display: flex;
    align-items: center;
    margin-right: 20px;
    justify-content: right;
    margin-bottom: 15px;
}

/* Main content area */
main {
    flex: 1;
}

.sources-container {
    border-top: solid 1px black;
    padding-top: 10px;
    margin-bottom: 35px;
    margin-top: 2px;
    font-size: 0.9rem;
    color: black;
    text-align: left;
}

.sources-container .source-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.sources-container .number {
    width: 2em;
    text-align: right;
    margin-right: 0.5em;
    flex-shrink: 0;
}

.sources-container a {
    text-decoration: none;
    color: black;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    padding-left: 0.5em;
}

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

.sources-container p {
    font-style: italic;
    color: #666;
}

.header {

    margin-top: 35px;
    margin-bottom: 20px;
    align-items: center;
    text-align: center; 
    padding: 1px 1px 1px 1px;
    background-color: black;
    color: white;
    border-radius: 50px;
    width: 75%;
}

h1 {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 400;
    letter-spacing: .05rem;
    text-decoration: underline;
}

.search {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

#search-box {
    text-align: center;
    padding: 5px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid black;
    border-radius: 10px;
    height: 25px;
    width: 100%;
    max-width: 300px;
}

.background {
    width: 75%;
    margin: 0 5% auto;
    margin-bottom: 5%;
    padding: 20px;
    background-color: #f4ecd7;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: block;
    border-radius: 50px;
}

ol {
    padding-left: 20px;
}

h3 {
    margin: 10px 0;
    color: rgb(120, 52, 52);
}

p {
    margin: 10px 0 15px 0;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px;
}

.pagination {
    text-align: center;
    padding: 20px 0;
    background-color: #f4ecd7;
    margin-top: 45px;
    border-radius: 0 0 50px 50px;
}

.page-link {
    margin: 0 5px;
    cursor: pointer;
    color: white;
    padding: 10px;
    border-radius: 10px;
    background-color: black;
}

.page-link:hover {
    text-decoration: none;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    background-color: black;
    color: white;
    border-top: 1px solid #ccc;
    width: 100%;
    z-index: 1000;
}

.navigation {
    margin-bottom: 20px;
    position: relative;
    background-color: black;
    width: 75%;
    border-radius: 50px;
    text-align: center;
    padding: 1rem;
    border: solid 2px black;
    color: white;
    z-index: 1;
}

.about-para {
    text-align: left;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-para {
    text-align: left;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.author-name {
    margin-left: -15px;
}

.img-about {
    margin-top: -5px;
    border-radius: 75px;
    filter: grayscale(75%);
    border: solid 2px white;
}

.about-content {
    margin-top: 15px;
    padding: 10px;
    height: auto;
    transition: padding 0.3s ease-out;
    overflow: hidden;
}

.about-content.expanded {
    display: block;
    padding: 10px;
}

.about-content.collapsed {
    display: none;
    padding: 0;
}

.about-btn {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 100;
    letter-spacing: .45rem;
    background-color: black;
    padding: 3px 7.5px 2px 15px;
    border-radius: 50px;
    margin: 0;
    border-bottom: solid 1px white;
    color: white;
    font-size: .75rem;
    margin-right: 10px;
}

.about-btn:hover {
    background-color: rgb(221, 142, 118);
    color: black;
    font-weight: 600;
}

.contact-content {
    margin-top: 15px;
    padding: 10px;
    height: auto;
    transition: padding 0.3s ease-out;
    overflow: hidden;
}

.contact-content.expanded {
    display: block;
    padding: 10px;
}

.contact-content.collapsed {
    display: none;
    padding: 0;
}

.contact-btn {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 100;
    letter-spacing: .3rem;
    background-color: black;
    padding: 3px 7.5px 2px 15px;
    border-radius: 50px;
    margin: 0;
    border-bottom: solid 1px white;
    color: white;
    font-size: .75rem;
    margin-left: 10px;
}

.contact-btn:hover {
    background-color: rgb(221, 142, 118);
    color: black;
    font-weight: 600;
}

.home-link {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 100;
    letter-spacing: .45rem;
    background-color: black;
    padding: 3px 7.5px 2px 15px;
    border-radius: 50px;
    margin: 0;
    border-bottom: solid 1px white;
    color: white;
    font-size: .80rem;
    margin-left: 10px;
}

.home-link:hover {
    background-color: rgb(221, 142, 118);
    color: black;
    font-weight: 600;
}

.charts-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.chart-container {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: 600px;
}

.chart {
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
    padding: 10px;
}

.map-container {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    margin-bottom: 40px;
    border: solid 1px black;
    border-radius: 20px;
}

.details-button {
    background-color: black;
    color: white;
    border-radius: 50px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    border: solid 1px rgb(221, 142, 118);
    padding: 3px 8px 3px 8px;
}

.details-button:hover {
    background-color: rgb(221, 142, 118);
    color: black;
    font-weight: 600;
}

.notes-title {
    color: black;
    padding: 10px 20px 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    background-color: rgb(221, 142, 118);
    border-radius: 50px;
    margin-bottom: 30px;
    border-bottom: solid 1px black;
}

.wine-vintage {
    margin-top: -5px;
}

.wine-name {
    margin-top: 45px;
}

.wine-description {
    border-left: solid 1px black;
}

#privacy {
    font-family: 'Courier New', Courier, monospace;
    padding: 100px;
}

@media (max-width: 768px) {

    .logo {
        width: 30%;
        filter: invert(1) grayscale(100%) contrast(100%);
        margin-top: 20px;
        margin-left: 25px;
    }
    
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0;
        margin-top: 35px;
        margin-bottom: 20px;
        padding-bottom: 10px ;
        width: 75%;
    }

    #search-box {
        position: relative;
        margin: 25px 0;
        box-sizing: border-box;
        width: 65%;
    }

    .abt-link {
        text-decoration: none;
        color: white;
    }

    .background {
        width: 90%;
        padding: 10px;
    }

    .navigation {
        position: relative;
        margin: 0 auto;
        margin-bottom: 20px;
        width: 80%;
        padding: 10px;
        text-align: center;
    }

    .charts-container {
        flex-direction: column;
    }

    .chart-container {
        flex: 1 1 100%;
    }
    
    .chart {
        width: 50%;
        height: 200px;
        max-width: 100%;
        border: 1px solid #ccc;
        padding: 10px;
    }

    footer {
        margin-top: 25px;
    }

    .social-links {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    #privacy {
        padding: 10px;
    }
}

