@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

:root {
    --primary-color: #ff65c3;
    --secondary-color: #fe914e;
    --tertiary-color: #fff;
    --quaternary-color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    max-width: 100vw;
    min-height: 100vh;
    scroll-behavior: smooth;
}

main {
    max-width: 100vw;
    min-height: 100vh;
    background: linear-gradient(0deg, var(--primary-color), var(--secondary-color));
    padding: 5vh;
    position: relative;
    overflow-x: hidden;
}

.fixed-home-button {
    position: fixed;
    left: 3vh;
    top: 3vh;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 24px;
    background: white;
    width: 48px;
    height: 48px;
    line-height: 24px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    display: flex;
    justify-content: center;
    align-items: center;

    &:hover{
        color: var(--primary-color);
    }
}

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background-color: var(--tertiary-color);
    flex-direction: column;
    margin: auto;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Merriweather', serif;
}

.hero-section p {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
}

.hero-section .scroll-down-arrow {
    position: absolute;
    bottom: 5vh;
    left: calc(50% - 1rem);
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

.hero-section .scroll-down-arrow img {
    width: 2rem;
    height: 2rem;
}

.card {
    background-color: var(--tertiary-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.home-card:hover {
    background: linear-gradient(40deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-content {
    padding: 15px;
    text-align: center;
    text-decoration: none !important;
}

.card-content h3 {
    margin: 10px 0;
    color: var(--quaternary-color);
    font-size: 1.5rem;
}
.card-content p {
    margin: 10px 0;
    color: var(--quaternary-color);
}

.home-card:hover .card-content h3, .home-card:hover .card-content p {
    color: white;
}

.card-content p {
    color: var(--secondary-color);
    font-size: 1rem;
}

.form-section {
    min-height: 60vh;
}

.form-group {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
    z-index: 99;
    transition: all .3s ease-in-out;

    &:focus-within {
        transform: translateY(-5px);
    }

}

.nav-buttons {
    background-color: white;
    color: var(--primary-color);
    font-weight: bolder;
    padding: 8px 40px;
    border: none;
    border-radius: 5px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.nav-buttons:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.nav-buttons-secondary {
    background-color: white;
    color: var(--secondary-color);
    font-weight: bolder;
    padding: 8px 40px;
    border: none;
    border-radius: 5px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-transform: capitalize;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all .3s ease-in-out;
}

.nav-buttons-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0px;
    transition: all .3s ease-in-out;
}

/* outline when focused */
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="date"]:focus {
    outline: none;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: none;
}

textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0px;
    transition: all .3s ease-in-out;
}

textarea:focus {
    outline: none;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: none;
}

input[type="radio"] {
    margin: 10px 5px 10px 0;
}

input[type="checkbox"] {
    margin: 10px 5px 10px 0;
}

.ui-widget.ui-slider-handle {
    background-color: var(--primary-color) !important;
    border: none !important;
}

.ui-widget.ui-widget-content {
    border: 1px solid var(--primary-color);
    width: 100%;
    margin: 10px 0;
    height: 10px !important;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border-radius: 50%;
    background: var(--secondary-color) !important;
    border: 1px solid white;
    height: 20px !important;
}

.ui-slider-range {
    background: var(--secondary-color) !important;
    border: none;
}


.filter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    height: 100vh;
    overflow-y: scroll ;
    background: linear-gradient(-45deg, var(--secondary-color), var(--primary-color));
}

.parent .content-section{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    height: 100vh;
    overflow-y: scroll ;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }

}

@media screen and (max-width:768px) {
    main {
        padding: 2.5vh;
    }

    .hero-section {
        min-height: 95vh;
    }

    .form-section {
        min-height: 65vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

}
