body {
        background-image: url('./assets/bgstar2.gif');
        background-color: black;
        margin: 0;
        padding: 0;
}

main {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100vh;
}

header {
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        border: 1px solid darkred;
        border-radius: 10px;
        /* -webkit-backdrop-filter: blur(15px); */
        backdrop-filter: blur(3px);
}

form {
        display: flex;
        flex-direction: column;
        max-width: 200px;
        margin: 10px;
}

.button-con {
        display: flex;
        flex-direction: column;
        align-items: center;
}

.astrology {
        color: white;
        border: 1px solid darkred;
        border-radius: 10px;
        backdrop-filter: blur(3px);
}


.select-con {
        display: flex;
        flex-direction: row;
        padding-top: 10px;
        max-width: 100px;
}

* {
        box-sizing: border-box;
        font-family: system-ui, -apple-system, sans-serif;
}

.dropdown-box-2,
.dropdown-box {
        position: relative;
        width: 250px;
        /* Gives the dropdown a consistent width */
}

.dropdown-box-2 input,
.dropdown-box input {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #ccc;
        border-radius: 6px;
        outline: none;
        font-size: 1rem;
        transition: border-color 0.2s ease;
}

.dropdown-box-2 input:focus,
.dropdown-box-2.active .selected-item-2 input,
.dropdown-box input:focus,
.dropdown-box.active .selected-item input {
        border-color: #007bff;
}

.dropdown-box-2 .selected-item-2,
.dropdown-box .selected-item {
        position: relative;
        cursor: pointer;
}

.dropdown-box-2 .selected-item-2 input,
.dropdown-box .selected-item input {
        cursor: pointer;
        background-color: #fff;
        caret-color: transparent;
        user-select: none;
}

/* Dropdown Arrow */
.dropdown-box-2 .selected-item-2::after,
.dropdown-box .selected-item::after {
        content: "";
        width: 6px;
        height: 6px;
        border: 2px solid;
        border-color: transparent #555 #555 transparent;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.3s ease;
        /* Animates the arrow */
        pointer-events: none;
        /* Prevents the arrow from blocking clicks */
}

/* Flip arrow when dropdown is open */
.dropdown-box-2.active .selected-item-2::after,
.dropdown-box.active .selected-item::after {
        transform: translateY(-30%) rotate(225deg);
}

.dropdown-box-2 .dropdown-content-2,
.dropdown-box .dropdown-content {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 6px;
        border: 1px solid #eee;
        max-height: 240px;
        overflow-y: auto;
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        /* Adds a slight gap below the input */
        left: 0;
        z-index: 99;
        background-color: white;
        width: 100%;
}

.dropdown-box-2.active .dropdown-content-2,
.dropdown-box.active .dropdown-content {
        display: block;
        animation: fadeIn 0.2s ease;
}

.dropdown-box-2 .dropdown-content-2 .search-input-2,
.dropdown-box .dropdown-content .search-input {
        padding: 10px;
        position: sticky;
        top: 0;
        background: white;
        border-bottom: 1px solid #eee;
}

.dropdown-box-2 .dropdown-content-2 .search-input-2 input,
.dropdown-box .dropdown-content .search-input input {
        padding: 8px 12px;
        border-radius: 4px;
        border: 1px solid #ddd;
}

.dropdown-box-2 .dropdown-content-2 ul,
.dropdown-box .dropdown-content ul {
        list-style: none;
        margin: 0;
        padding: 5px 0;
}

.dropdown-box-2 .dropdown-content-2 ul li,
.dropdown-box .dropdown-content ul li {
        font-size: 0.95rem;
        padding: 10px 15px;
        cursor: pointer;
        color: #333;
        transition: background-color 0.15s ease;
}

.dropdown-box-2 .dropdown-content-2 ul li:hover,
.dropdown-box .dropdown-content ul li:hover {
        background-color: #f5f5f5;
}

.dropdown-box-2 .dropdown-content-2 ul li.active,
.dropdown-box .dropdown-content ul li.active {
        background-color: #e6f2ff;
        color: #007bff;
        font-weight: 500;
}

/* Simple fade-in animation for smoother UX */
@keyframes fadeIn {
        from {
                opacity: 0;
                transform: translateY(-5px);
        }

        to {
                opacity: 1;
                transform: translateY(0);
        }
}

.alchemy {
        color: white;
}

footer {
        color: white;
}
