:root {
    --brand: #B3735C;
    --black: black;
    --base-light: #c38f7c;
    --purple-light: #A293AD;
    --purple-dark: #7566A0;
    --white: white;
}

/* CSS Reset */
html {
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Gotu", sans-serif;
    color: var(--black);
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 7%;
    padding: 0;
}

ol, ul {
    list-style: none;
}

input, button, textarea, select {
    font: inherit;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: url("images/biobackground.png") center/cover no-repeat;
    font-family: 'Gotu', sans-serif;
}
/* Media Queries */
@media (min-width: 768px) {
    body { font-size: 16px; }

    #rectangle {
        width: 80%;
        height: 70%;
    }

    #welcome-title h1 { font-size: 50px; }
    #welcome-title h2 { font-size: 24px; }

    .container, .button, .flowerbutton {
        width: 180px;
        height: 180px;
    }

    .button { width: 90px; height: 90px; }
    .flowerbutton { width: 45%; height: 45%; }
}

@media (min-width: 1024px) {
    #rectangle {
        width: 60%;
        height: 60%;
    }

    #welcome-title h1 { font-size: 60px; }
    #welcome-title h2 { font-size: 28px; }

    .container, .button, .flowerbutton {
        width: 200px;
        height: 200px;
    }

    .button { width: 100px; height: 100px; }
    .flowerbutton { width: 40%; height: 40%; }
}

/* Media Queries */
@media (max-width: 768px) {
    body { 
        font-size: 14px !important; 
    }

    #rectangle {
        width: 90% !important;
        height: 60% !important;
    }

    #welcome-title h1 { 
        font-size: 40px !important; 
    }
    #welcome-title h2 { 
        font-size: 20px !important; 
    }

    .container, .button, .flowerbutton {
        margin-top: 15% !important;
    }
    .container {
        width: 200px !important;
        height: 200px !important;
    }
    .button { width: 100px; height: 100px; }
    .flowerbutton { width: 35%; height: 35%; }
}

/* Layout and Styling */
.parent {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#rectangle {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, var(--brand), rgba(179, 115, 92, 0));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--black);
    z-index: 2;
    overflow: hidden;
    margin-top: 5%;
}

#image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(images/flowerborder.png) top/cover no-repeat;
    z-index: 1;
}

#welcome-title {
    position: relative;
    z-index: 3;
    margin: auto 0 90%;
    padding: 0 10%;
    color: var(--black);
    font-family: "Gotu", sans-serif;
}

#welcome-title h1 { font-family: Sacramento, cursive; font-size: 60px; }
#welcome-title h2 { font-family: "Aboreto", system-ui; }

/* Button and Container */
.container {
    top: 30%;
    position: relative;
    width: 100%;
    max-width: 200px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button, .flowerbutton {
    position: absolute;
    z-index: 10;
    transition: all 1s ease-in-out;
}

.button {
    width: 100px;
    height: 100px;
    left: 50%;
    bottom: 25%;
    transform: translateX(-50%);
    background: var(--base-light);
    box-shadow: 0 0 16px var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sacramento";
    font-size: 20px;
    color: var(--black);
}

.flowerbutton {
    width: 40%;
    height: 50%;
    left: 50%;
    bottom: 25%;
    transform: translate(-50%, 0);
    object-fit: scale-down;
}

.container:hover .flowerbutton {
    transform: translate(-50%, -50%) scale(2);
    bottom: calc(25% - 50px);
}

.button:hover {
    box-shadow: 0 0 36px var(--base-light);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.5); }
    50% { transform: scale(1); }
    100% { transform: scale(0.5); }
}

.bee {
    top: 30%;
    margin-top: 200px;
    width: 2%;
    position: absolute;
    transform-origin: 0% 0%;
    animation: bee-animation 60s ease infinite;
}

@keyframes bee-animation {
    0% { left: 50px; transform: rotate(30deg); }
    10% { left: 25px; transform: rotate(15deg); }
    12% { top: 10px; transform: rotate(45deg); }
    15% { top: 400px; transform: rotate(23deg); }
    56% { left: 25px; transform: rotate(15deg); }
    10% { left: 500px; transform: rotate(180deg); }
    75% { left: 25px; transform: rotate(15deg); }
    64% { right: 800px; transform: rotate(90deg); }
    30% { right: 100px; transform: rotate(15deg); }
    99% { left: 600px; transform: rotate(67deg); }
    78% { right: 400px; transform: rotate(55deg); }
    85% { right: 25px; transform: rotate(15deg); }
    50% { left: 300px; transform: rotate(-360deg); }
    100% { left: 50px; transform: rotate(30deg); }
}

.flower1, .flower2, .flower3, .flower4, .flower5, .flower6, .flower7, .flower8, .flower9, .flower10 {
    position: absolute;
    transform-origin: 50% 100% 0;
}

.flower1 { bottom: 0; left: 5%; width: 9%; animation: flower1sway 15s infinite; }
.flower2 { bottom: -10px; left: 25%; width: 9%; animation: flower2sway 10s infinite; }
.flower3 { bottom: -25px; left: 33%; width: 3%; animation: flower3sway 18s infinite; }
.flower4 { bottom: -10px; left: 80%; width: 5%; animation: flower4sway 15s infinite; }
.flower5 { bottom: -25px; left: 85%; width: 4%; animation: flower5sway 30s infinite; }
.flower6 { bottom: -10px; left: 95%; width: 3%; animation: flower6sway 60s infinite; }
.flower7 { bottom: -10px; left: 15%; width: 5%; animation: flower7sway 20s infinite; }
.flower8 { bottom: 0; left: 70%; width: 8.5%; animation: flower8sway 15s infinite; }
.flower9 { bottom: -25px; left: 68%; width: 4%; animation: flower9sway 30s infinite; }
.flower10 { bottom: -10px; left: 3%; width: 2%; animation: flower10sway 30s infinite; }

@keyframes flower1sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes flower2sway { 60%, 0% { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } }
@keyframes flower3sway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes flower4sway { 60%, 0% { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } }
@keyframes flower5sway { 0% { transform: translateY(-20px); } 50% { transform: translateY(0); } 100% { transform: translateY(-10px); } }
@keyframes flower6sway { 60%, 0% { transform: rotate(30deg); } 50% { transform: rotate(-30deg); } }
@keyframes flower7sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes flower8sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes flower9sway { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(20deg); } }
@keyframes flower10sway { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(20deg); } }

/* Dot Animations */
.dot1, .dot2, .dot3, .dot4, .dot5, .dot6, .dot7 {
    background: #B3735C;
    border-radius: 50%;
    margin: 10px;
    position: absolute;
    height: 20px;
    width: 20px;
    animation: pulse 2s infinite;
}

.dot2, .dot4 { background: black; }
.dot5, .dot6, .dot7 { background: #c38f7c; }

.dot1 { left: 80%; top: 10%; height: 9px; width: 9px; animation-duration: 3s; }
.dot2 { left: 10%; top: 60%; height: 15px; width: 15px; }
.dot3 { left: 22%; top: 20%; height: 20px; width: 20px; animation-duration: 5s; }
.dot4 { left: 89%; top: 70%; height: 8px; width: 8px; animation-duration: 2s; }
.dot5 { left: 95%; top: 35%; height: 10px; width: 10px; }
.dot6 { left: 75%; top: 40%; height: 13px; width: 13px; }
.dot7 { left: 10%; top: 14%; height: 20px; width: 20px; }

@keyframes pulse {
    0% { transform: scale(0.5); }
    50% { transform: scale(1); }
    100% { transform: scale(0.5); }
}

/* Flower Bed */
.flower-bed {
    position: relative;
}
