/* CSS Meyer Reset v2.0 */
/* https://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Custom CSS Begins Here */

/* General Styling */
body {
    font-family: "Playfair Display", serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefcf9;
}
a {
    text-decoration: none;
    color: inherit;
}


/* Hero Section */
.hero {
    background: url('images/celebration.png') no-repeat center center/cover;
    color: #fff;
    padding: 6em 20px 2em 20px;
    text-align: center;
}
.hero h1 {
    font-size: 32px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-out;
}

.hero p {
    font-size: 16px;
    margin-bottom: 20px;
    animation: fadeIn 2.5s ease-out;
}

.btn-primary, .btn-secondary {
    padding: 14px 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    margin: 5px;
}

.btn-primary {
    background-color: #e87c5b;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #e87c5b;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Featured Festivals */
.featured-festivals {
    background: url(images/paisley.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 40px 10px 20px 10px;
    text-align: center;
}

.featured-festivals h2 {
    font-size: 24px;
    color: #873e23;
    margin-bottom: 20px;
}

.festival-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 1.5em;
    margin-right: 1.5em;
}

.festival-card {
    width: 70%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.5s ease-out;
}

.festival-card img {
    width: 50%;
    height: auto;
}

.festival-card h3 {
    margin: 10px 0 5px 0;
    font-size: 1.4em;
    color: #873e23;
}
.festival-card p{
  font-size: 1em;
  color: black;
}

.festival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: #873e23;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Tablets */
@media (min-width: 600px) {
    .header {
        flex-direction: row;
    }
  }
@media (min-width: 550px){
    .festival-card{
        width: 60%;
    }
}

@media (min-width: 800px){
    .festival-card{
        width: 50%;
    }
}
@media (min-width: 1000px){
    .festival-card{
        width: 30%;
    }
}