header {
  align-items: center;
  background-color: var(--green);
  display: flex;
  justify-content: space-between;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

header .social {
    display: flex;
    gap: 30px;
    justify-content: space-evenly;
    padding-left: 10%;
}

header .social a {
    border-radius: 100%;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    height: 20px;
    opacity: 0.55;
    transition: all 0.1s ease-in-out;
    width: 20px;
}

header .social a:hover {
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 1;
}

header nav {
    align-items: center;
    color: white;
    display: flex;
    font-weight: 400;
    gap: 20px;
    padding-right: 5%;
}

header nav a {
    font-size: 14px;
    opacity: 0.75;
    position: relative;
    transition: all 0.1s ease-in-out;
}

header nav a:hover {
    cursor: pointer;
    opacity: 1;
}

header nav a::after {
    background-color: white;
    content: '';
    position: absolute;
    height: 2px;
    left: 0;
    transform: translateY(25px);
    transition: all 0.3s ease-in-out;
    width: 0px;
}

header nav a:hover::after {
    width: 100%;
}


.main_header {
    align-items: center;
    border-bottom: solid 1px #ccc;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

.main_header.visible {
    transform: translateY(0);
    opacity: 1;
}

.main_header.invisible {
    transform: translateY(-100%);
    opacity: 0;
}

.main_header .logo {
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 50px;
    justify-content: center;
    margin-left:  15%;
    width: 200px;
}

.main_header .logo img {
    height: 500%;
}


.main_header .header_buttons {
    display: flex;
    gap: 20px;
    padding-right: 5%;
    width: fit-content;
}

.main_header .header_buttons a {
    border: solid 1px var(--green);
    border-radius: 7px;
    background-color: var(--white);
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    transition: all 0.15s ease-in-out;
}

.header_buttons #fhb {
    background-color: var(--lgreen);
    color: var(--white);
}

.header_buttons #fhb:hover {
    background-color: var(--green);
}

.main_header .header_buttons a:hover {
    color: var(--white);
    background-color: var(--green);
    column-span: var(--white);
}

@media (max-width: 1024px) {
    .main_header .logo {
        margin-left: 10%;
    }

    .main_header .header_buttons {
        gap: 12px;
    }

    .main_header .header_buttons a {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    header .social {
        padding-left: 5%;
    }

    header nav {
        gap: 16px;
    }

    header nav a {
        font-size: 12px;
    }

    .main_header .logo {
        margin-left: 5%;
    }
}

@media (max-width: 600px) {
    header .social {
        gap: 20px;
    }

    header .social a {
        height: 16px;
        width: 16px;
    }

    .main_header .logo {
        display: none;
    }

    .main_header .header_buttons {
        padding: 0;
        gap: 0;
        align-items: center;
        justify-content: space-evenly;
        display: flex;
        width: 100%;
    }

    .main_header .header_buttons a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        height: fit-content;
        width: 40%;
    }
}

@media (max-width: 480px) {
    header nav {
        gap: 10px;
    }

    header nav a {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    header nav {
        gap: 10px;
    }

    header nav a {
        font-size: 8px;
        font-weight: 600;
    }
}
