@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}

/*scroll bar color */
html::-webkit-scrollbar {
    width: 0.5rem;
    background: #f1eaff;
}

html::-webkit-scrollbar-thumb {
    background: #392467;
    border-radius: 5rem;
}

body {
    background: #f1eaff;
    color: #392467;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

html {
    height: 100%;
}

/* SCROLL UP BUTTON */

.to-top {
    background: #F1EAFF;
    position: fixed;
    bottom: 16px;
    right:32px;
    width:50px;
    height:50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:32px;
    color:#392467;
    text-decoration: none;
    opacity:0;
    pointer-events: none;
    transition: all .4s;
    z-index: 9999;
  }
  
.to-top.active {
    bottom:32px;
    pointer-events: auto;
    opacity:1;
}

/*navi bar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background: rgba(241,234,255, .9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 20px; 
    color: #392467;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #f1eaff;
    animation: showRight 1s ease forwards;
    animation-delay: 0.4s;
}

.navibar a {
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px; 
    transition: 0.3s;
}

/* Add a media query for smaller screens */
@media only screen and (max-width: 768px) {
    .header {
        padding: 20px 5%;
    }

    .logo {
        font-size: 18px;
    }

    .navibar a {
        font-size: 14px;
        margin-left: 15px;
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }
}

/* Add a media query for larger screens */
@media only screen and (min-width: 768px) {

    .crochet {
        margin-right: 0;
    }

    .navibar a {
        transition: 0.3s;
    }

    .navibar a:hover,
    .navibar a.active {
        color: #fdbf60;
    }

    .c-button {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 150px;
        height: 100%;
        margin-right: 5px;
        background: #392467;
        border: 2px solid #392467;
        border-radius: 8px;
        font-size: 19px;
        color: #fdbf60;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 1;
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
    }

    .c-button:hover {
        color: #392467 !important;
        background: #fdbf60 !important;
    }

    .c-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #fdbf60;
        z-index: -1;
        transition: 0.5s;
    }

    .c-button:hover::before {
        width: 100%;
    }
}

/* Services Content*/

.service-heading {
    position: relative;
    width: 100%; 
    text-align: center;
    padding-bottom: 50px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: -60px;
    padding: 0 5%;
}

.service-heading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #F1EAFF;
    animation: showRight 1s ease forwards;
    animation-delay: 1.2s;
}

.service-heading h3 {
    padding-top: 3%;
    font-size: 3em; 
    font-weight: bolder;
    border-bottom: 2px solid purple; 
}

.container {
    display: flex;
    justify-content: center;
    margin-top: 100px;
    padding: 0px 25%;
}

.container button {
    position: relative;
    width: 150px;
    display: block;
    margin: 0 auto;
    background: #392467;
    border: 2px solid #392467;
    border-radius: 8px;
    font-size: 19px;
    color:#FDBF60;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.container button:hover {
    color: #392467;
}

.container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fdbf60;
    z-index: -1;
    transition: 0.5s;
}

.container button:hover::before {
    width: 100%;
}

.art,
.crochet {
    width: 100%;
}

.art img,
.crochet img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 25rem;
    border-radius: 2rem;
}

.art-info, .crochet-info {
    display: flex;
    justify-content: center;
    margin-top: 100px;
    padding: 0px 25%;
}

.column1,
.column2 {
    width: 100%;
}

.option {
    margin-bottom: 20px;
}

.option img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 20rem;
    border-radius: 2rem;
}

.option h3 {
    text-align: center;
    margin-bottom: 10px;
}

.option p {
    text-align: center;
    padding-bottom: 5px;
}

/* Media query for larger screens */
@media only screen and (min-width: 768px) {
    .art,
    .crochet {
        width: 48%; 
        float: left;
    }

    .crochet {
        margin-right: 0; 
    }

    .art img,
    .crochet img {
        max-width: 90%; 
        height: auto;
        border-radius: 2rem;
    }

    .column1,
    .column2 {
        width: 48%; 
        float: left;
    }

    .column2 {
        margin-right: 0;
    }

    .column1 img,
    .column2 img {
        max-width: 100%;
        height: auto;
        border-radius: 2rem;
    }


    .art-info, .crochet-info {
        width: 100%; 
        float: left;
        margin-top: 2%;
    }

    .disclaimer {
        position: relative;
        bottom: auto;
        left: auto;
    }
}

/* Add a media query for smaller screens */
@media only screen and (max-width: 768px) {
    .art,
    .crochet {
        width: 100%; 
    }

    .art img,
    .crochet img {
        max-width: 100%; 
        height: auto;
        border-radius: 2rem;
    }

    .column1,
    .column2 {
        width: 100%; 
        float: none; 
    }

    .column1 {
        margin-bottom: 30px;
    }

    .column2 {
        margin-top: 30px; 
    }

    .column1 img,
    .column2 img {
        max-width: 100%;
        height: auto;
        border-radius: 2rem;
    }

    .art-info, .crochet-info {
        width: 100%; 
        flex-direction: column;
        margin-top: 2%;
    }

    @supports (display: grid) {
        .art-info, .crochet-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            grid-gap: 20px; 
        }

        .column1,
        .column2 {
            width: auto; 
            float: none; 
            margin: 0; 
        }
    }
}

/* Footer */

.footer {
    align-items: center;
    flex-shrink: 0;
    padding: 2rem 9%;
    background: #392467;
    margin-top: auto;
}

.footer-text p {
    font-size: 1rem;
    color:#f1eaff;
    text-align: center;
}

@keyframes showRight {
    100% {
        width: 0;
    }
}
