body {
    height: fit-content;
    padding-bottom: 1rem;
}

main {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    margin: 0;
}

header.console-header {
    height: auto;
}

.console-header {
    display: revert;
    background-color: revert;
    margin-top: 2rem;
    padding: 0;
}

.console-header.fixed {
    margin-top: 7rem;
}

.console-header h1 {
    color: #1D746D;
    font-family: 'Cabin';
    font-weight: var(--medium);
    font-size: 7.5vw;
    margin-bottom: 15px;
}

.console-header .search-bar {
    position: relative;
    width: 100%;
    height: 40px;
}

.console-header .search-bar.fixed {
    max-width: 750px;
    height: 45px;
}

.console-header .search-bar.fixed .search-icon {
    display: none;
}

.console-header .search-bar.fixed .search-icon {
    top: 16px;
    right: 1rem;
}

.console-header form {
    width: 100%;
    height: 100%;
}

.console-header .search-bar input {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background-color: #F2F5F3;
    border-radius: 15px;
    border: 3px solid #32C3B7;
    padding-left: 2rem;
    font-family: 'Roboto';
}

.console-header .search-bar input::placeholder {
    font-family: 'Roboto';
    color: #91C1BD;
    font-size: 15px;
    text-align: center;
}

.console-header .search-bar .search-icon {
    position: absolute;
    right: 1rem;
    top: 0.8rem;
    cursor: pointer;
}


.search-results {
    margin-top: 2rem;
    background-color: white;
    border-radius: 15px;
    font-family: 'Roboto';
}

.search-results header {
    height: 54px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    border-radius: 15px 15px 0 0;
}

.search-results header p:first-child {
    margin-left: 1rem;
}

.search-results header p:nth-child(2) {
    text-align: center;
}

.search-results header p:last-child {
    text-align: right;
    margin-right: 1rem;
}

.search-results .search-result img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.search-results .search-result .text-result {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.search-results .search-result {
    display: grid;
    grid-template-columns: 0.5fr 9fr;
    border-right: 1px solid #E3EAE4;
    border-left: 1px solid #E3EAE4;
    border-bottom: 1px solid #E3EAE4;
    padding: 10px;
}

.search-results .search-result .text-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.search-results .search-result .center {
    text-align: center;
    width: 100%;
}

.search-results .search-result .engineering-field {
    background-color: #2BACA1;
    height: 27px;
    color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    font-size: 13px;
}

.search-results .search-result .eye-icon-container {
    width: fit-content;
    margin-left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    position: relative;
}

/* Grid Display Styles */
.search-results.grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-column-gap: 2rem;
    grid-row-gap: 1rem;
    background-color: revert;
}

.search-results.grid-display header {
    display: none;
}

.search-results.grid-display .search-result {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
}

.search-results.grid-display .search-result .text-result {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    margin-top: 10px;
}

.search-results.grid-display .search-result .text-result p {
    margin: 0;
}

.search-results.grid-display .search-result img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-left: 10px;
}

.search-results.grid-display .search-result .engineering-field {
    width: fit-content;
    background-color: revert;
    color: #2BACA1;
}

.search-results.grid-display .search-result .eye-icon {
    display: none;
}

.profile-button {
    text-decoration: none;
    color: white;
    background-color: #DEDEDE;
    padding: 0.5rem;
    border-radius: 5px;
}

.search-results .search-result .profile-button {
    display: none;
}

.search-results.grid-display .search-result .profile-button {
    display: revert;
}

 .search-results.grid-display .profile-button-container {
        z-index: 0;
 }

.login-to-view-profile-info {
    display: none;
    justify-content: center;
    align-items: center;

    position: absolute;
    left: 1.7rem;
    width: max-content;
    border: 1px solid #DEDEDE;
    background-color: #F2F2F2;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    color: #2EB7AC;
    font-size: 15px;
}

.login-to-view-profile-info svg {
    margin-right: 0.3rem;
}

.search-results .search-result .eye-icon-container:hover .login-to-view-profile-info {
    display: flex;
}

.profile-button-container {
    padding-top: 0.5rem;
    position: relative;
    z-index: -5;
}

.profile-button-container .profile-button {
    border: 1px solid #DEDEDE;
    padding: 0.5rem 0.6rem;
}

.profile-button-container .login-to-view-profile-info {
    left: 5rem;
    bottom: 0.3rem;
}

.profile-button-container:hover .login-to-view-profile-info {
    display: flex;
}

.profile-button-container.active .profile-button {
    background-color: #252525;
}

.profile-button-container.active:hover .login-to-view-profile-info {
    display: none;
}

#no-results {
    margin: 0;
    height: -webkit-fill-available;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-family: "Roboto";
    color: #BEBEBE;
    margin-top: 120px;
}

.eye-icon {
    cursor: pointer;
}

.modal {
    font-family: "Roboto";
    position: fixed;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
    background-color: white;
    border-radius: 10px;
    top: 30%;
    left: 35%;
    padding: 4rem 2rem 4rem 2rem;
    margin: auto;
    z-index: -1;
    display: none;
    opacity: 0;
    transition-property: opacity;
    text-align: center;
}

.modal.active {
    display: flex;
    opacity: 1;
    z-index: 2;
}

.modal h2 {
    margin: 0;
    color: #252525;
}

.modal p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 11px;
    width: 270px;
}

.modal button {
    height: 40px;
    width: 70%;
    border-radius: 10px;
    border: 1px solid #25938A;
    margin-top: 25px;
    background-color: #25938A;
    color: white;
    cursor: pointer;
}

.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    opacity: 0;
    z-index: -1;

    transition-property: opacity, z-index;
    transition-delay: 0s, 1s;
    transition-duration: 1s, 0s;
}

.dark-overlay.active {
    z-index: 2;
    opacity: 0.5;
    transition-delay: 0s, 0s;
}


@media  (min-width: 500px) {
    .console-header h1 {
        font-size: 40px;
    }
}

@media (min-width: 1000px) {
    main {
        box-sizing: border-box;
        padding-right: 10%;
        padding-left: 10%;
    }
}