/* guts from google fonts*/ 
.grand-hotel-regular {
  font-family: "Grand Hotel", cursive;
  font-weight: 400;
  font-style: normal;
}

.glass-antiqua-regular {
  font-family: "Glass Antiqua", cursive;
  font-weight: 400;
  font-style: normal;
}
/*end of guts*/ 

body {
    background-color: #d7f2ff;
    font-family: "Glass Antiqua", cursive;
}

#container {
    width: 100%;
    max-width: 1200px;
    min-width: 900px;
    margin: auto;
    background-color: #EDF9FF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    padding: 5px 30px 40px;
}

#banner {
    position: relative;
    overflow: visible;

    text-align: center;
    padding: 30px 20px 20px;
}

#banner h1 {
    font-family: "Grand Hotel", cursive;
    font-size: 85px;
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

#banner h2 {
    font-family: "Grand Hotel", cursive;
    font-size: 40px;
    font-weight: 400;
    margin: 0;
    line-height: 2.5em;
}

.leaf {
    position: absolute;
    height: auto;
}

.leaf-left {
    transform-origin: top center;
    animation: swayLeft 3s ease-in-out infinite alternate;
}

.leaf-right {
    transform-origin: top center;
    animation: swayRight 3.5s ease-in-out infinite alternate;
}

.leaf:hover {
    animation: rustle 0.5s ease-in-out;
}

/*I would like to note that i did have an AI (ChatGPT) help me with the following keyframes, the rest (positioning) was a mix of trial and error and my own knowlege.*/ 

@keyframes rustle {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(-3deg) scale(1.02); }
    50%  { transform: rotate(2deg) scale(1.01); }
    75%  { transform: rotate(-2deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}

.leaf1 {
    top: -40px;
    left: 20px;
    width: 180px;
}

.vine1 {
    top: -10px;
    left: 250px;
    width: 140px;
}

.leaf2 {
    top: -30px;
    right: 20px;
    width: 160px;
}

.vine2 {
    top: -10px;
    right: 250px;
    width: 140px;
}

@keyframes swayLeft {
    from {
        transform: rotate(-3deg);
    }
    to {
        transform: rotate(3deg);
    }
}

@keyframes swayRight {
    from {
        transform: rotate(2deg);
    }
    to {
        transform: rotate(-2deg);
    }
}

main {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 5px;
}

main section {
    background-color: #64906A;
    width: 240px;
    min-height: 280px;
    border-radius: 18px;
    padding: 18px 22px 24px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

main section:hover {
    transform: translateY(-6px) scale(1.02) rotate(-0.5deg);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

main h3 {
    text-align: center;
    font-size: 33px;
    font-weight: 400;
    margin: 0 0 10px 0;
}

main ul {
    margin: 0;
    padding-left: 22px;
}

main li {
    margin-bottom: 18px;
    font-size: 20px;
}

/* LINK HOVER (growing underline) */
main a {
    position: relative;
    text-decoration: none;
    color: black;
}

main a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #3e6b45;
    transition: width .8s ease;
}

main a:hover::after {
    width: 100%;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

footer p {
    margin: 0 0 8px 0;
}

footer a {
    color: black;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color:#64906A;
}
