.overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1032;
    top: 0;
    left: -100%;
    background: linear-gradient(135deg, rgb(54, 54, 54) 0%, rgb(22, 22, 22) 100%);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 40%;
    transform: translate(0, -50%);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-form form {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    border-radius: 10rem;
    padding: 2px;
    flex-wrap: nowrap;
    justify-content: center;
}

.search-form input[type="text"] {
    margin: 0;
    width: 100%;
    border-radius: 3px;
    border: none;
    background: #fff;
    color: #161616;
    padding: 1.125rem 1.5rem 1.125rem 1.5rem !important;
    font-size: 1rem;
    border-radius: 10rem;
    letter-spacing: 0.0125rem;
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    line-height: 1;
}

.search-form input[type="submit"] {
    display: inline-block;
    font-family: "Mulish", sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: var(--blue);
    border: 2px solid var(--blue);
    padding: 1rem 1.5rem 1rem 1.5rem !important;
    font-size: 1rem;
    border-radius: 10rem;
    transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s;
    line-height: 1;
    white-space: nowrap;
}

.search-form input[type="submit"]:hover {
    color: var(--black);
    border: 2px solid var(--black);
    background: none;
}

.overlay h2 {
    color: var(--white)
}

.overlay p {
    color: var(--white)
}

.topics {
    display: flex;
    justify-content: center;
    gap:1rem;
}

.overlay .topics a {
    text-decoration: none;
    font-weight:500;
    color: var(--blue);
    transition: 0.2s;
}

.overlay .topics a:hover,
.overlay .topics a:focus {
    color: var(--blue);
    text-decoration: underline !important;
}

.overlay .closebtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    color:var(--white);
    text-decoration: none;
}

@media (max-width: 991px) {
    .overlay p {
        margin:0;
    }
    .topics {
        flex-direction: column;
    }
}
