@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
    /* CSS HEX */
    --red: #e74141ff;
    --yellow: #f1d059ff;
    --orange: #f5874fff;
    --green: #49bd49ff;
    --blue: #4583F6ff;
    --black: #081b21ff;
    --beige: #f7f6deff;
    --white: #fcf6f6ff;
    --grey: #8f8f8fff;
    /* CSS HSL */
    --imperial-red: hsla(0, 78%, 58%, 1);
    --naples-yellow: hsla(47, 84%, 65%, 1);
    --coral: hsla(20, 89%, 64%, 1);
    --dark-pastel-green: hsla(120, 47%, 51%, 1);
    --rich-black: hsla(194, 61%, 8%, 1);
    --beige: hsla(58, 61%, 92%, 1);
    --snow: hsla(0, 50%, 98%, 1);
    --platinum: hsla(0, 0%, 91%, 1);
    --gradient-right: linear-gradient(90deg, #e74141ff, #f1d059ff, #fcf6f6ff, #49bd49ff, #4583f6ff);
    --gradient-down: linear-gradient(180deg, #e74141ff, #f1d059ff, #fcf6f6ff, #49bd49ff, #4583f6ff);
    --underline-height: 0.5em;
    --transition-duration: 0.5s;
    /* FONT */
    --font1: "Nunito", sans-serif;
    --font2: "Comfortaa", sans-serif;
}

body,
html,
*,
*::before,
*::after {
    /* font-weight: 600; */
    box-sizing: border-box;
    scroll-behavior: smooth;
    margin-block-start: 0px;
    margin-block-end: 0;
    padding-inline-start: 0;
}

html,
body {
    font-family: var(--font1);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--black);
    margin: 0;
    font-size: 16px;
}

body {
    width: 100vw;
    overflow-x: hidden;
    background: var(--white);
}

::-webkit-scrollbar {
    width: 5px;
    height: 0;
    /* background: red; */
}

::-webkit-scrollbar-track {
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: var(--red);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.material-symbols-outlined {
    font-size: inherit;
    vertical-align: middle;
}


/* * {
    padding: 0;
    margin: 0;
}

body {
    font-family: Hack, monospace;
    background: var(--white);
} */

nav {
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

nav img {
    height: 100%;
    max-width: 5em;
}

nav img.mobile-logo {
    display: none;
}

nav .menuItems {
    list-style: none;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    font-weight: 700;
    gap: 1em;
}


/* nav .menuItems li {
    margin: auto 1em;
} */

nav .menuItems li a {
    text-decoration: none;
    color: var(--grey);
    font-size: 1.2em;
    /* font-weight: 900; */
    transition: all 0.5s ease-in-out;
    position: relative;
    text-transform: uppercase;
    padding: 1em;
}

nav .menuItems li a::before {
    content: attr(data-item);
    transition: 0.5s;
    color: var(--grey);
    position: absolute;
    top: 1em;
    bottom: 0;
    left: 1em;
    right: 0;
    width: 0;
    overflow: hidden;
}

nav .menuItems li a:hover::before {
    width: 100%;
    transition: all 0.2s ease-in-out;
    /* text-shadow: 0px 0px 1px #8f8f8f; */
}

nav .menuItems li:nth-child(1) a::before {
    color: var(--red);
}

nav .menuItems li:nth-child(2) a::before {
    color: var(--yellow);
}

nav .menuItems li:nth-child(3) a::before {
    color: var(--green);
}

nav .menuItems li:nth-child(4) a::before {
    color: var(--blue);
}

nav .menuItems li:nth-child(5) a::before {
    color: white;
}

nav .menuItems li a.donate-nav {
    background: var(--black);
    /* padding: 1em; */
    border-radius: 0 0 1em 1em;
}

.mobile-menu {
    display: none;
}

@media screen and (max-width: 60em) {
    .mobile-menu {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: auto;
        font-size: 2em;
        z-index: 11;
    }
    nav {
        /* display: none; */
        position: fixed;
        flex-direction: column;
        width: max-content;
        height: 100vh;
        justify-content: center;
        align-items: flex-end;
        /* background: transparent; */
        right: -200%;
        transition: all 0.25s ease-in-out;
    }
    nav.open-nav {
        right: 0;
        top: 0;
        transition: all 0.25s ease-in-out;
    }
    nav img {
        display: none;
        /* margin: 2em; */
        height: auto;
        width: 100%;
        max-width: 10em;
    }
    nav img.mobile-logo {
        display: block;
    }
    nav .menuItems {
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        right: -200%;
    }
    nav .menuItems li {
        margin: 2em 1em;
    }
    nav .menuItems li a.donate-nav {
        background: var(--black);
        border-radius: 1em;
    }
}

section {
    width: 80%;
    margin: auto;
    padding: 2em 0;
}


/* section.about {
    padding: 10vw;
} */

.home-wrapper {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5em;
}

.title-wrapper {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.title-image {
    max-width: 20em;
    width: 50%;
}

.title {
    text-align: right;
}

.title h1 {
    font-size: 2em;
    color: var(--red);
    text-transform: uppercase;
}

.title h3 {
    font-size: 1em;
    color: var(--black);
}

.title-content {
    max-width: 40%;
    font-size: 1.5em;
    line-height: 1.5;
    font-weight: 900;
}

.section-title {
    font-size: 3em;
    position: relative;
    padding: 0.5em 1em;
    /* border-bottom: 10px solid linear-gradient(90deg, #e74141ff, #f1d059ff, #fcf6f6ff, #49bd49ff, #4583f6ff); */
}

.section-title::after {
    /* content: ' '; */
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #e74141ff, #f1d059ff, #fcf6f6ff, #49bd49ff, #4583f6ff);
    /* background: var(--black); */
    position: absolute;
    bottom: 0;
    left: 0;
}

.about-content-wrapper {
    /* margin: 2em auto; */
    display: flex;
    /* gap: 1em; */
    flex-direction: column;
    flex-wrap: wrap;
}

.about-content-wrapper div {
    padding: 1em 2em;
}

.about-content-wrapper div h2 {
    padding: 1em 2em 0;
    margin-bottom: 1em;
    position: relative;
    font-weight: 900;
    /* text-shadow: 0 0 5px 5px rgba(255, 255, 255, 0.5); */
    -webkit-text-stroke-width: 0px;
    -webkit-text-stroke-color: var(--black);
}

.about-content-wrapper div h2:after {
    content: ' ';
    width: 100%;
    height: 0.25em;
    /* background: linear-gradient(90deg, #e74141ff, #f1d059ff, #fcf6f6ff, #49bd49ff, #4583f6ff); */
    background: var(--red);
    opacity: 0.8;
    position: absolute;
    bottom: -0.5em;
    left: 0;
    z-index: -1;
    border-radius: 10px;
}

.about-content-wrapper div:nth-child(1) h2:after {
    background-color: var(--red);
}

.about-content-wrapper div:nth-child(2) h2:after {
    background-color: var(--yellow);
}

.about-content-wrapper div:nth-child(3) h2:after {
    background-color: var(--green);
}

.about-content-wrapper div:nth-child(4) h2:after {
    background-color: var(--blue);
}

.about-content-wrapper div:nth-child(5) h2:after {
    background-color: var(--red);
}

.about-content-wrapper div:nth-child(6) h2:after {
    background-color: var(--yellow);
}

.about-content-wrapper div:nth-child(7) h2:after {
    background-color: var(--green);
}

.about-content-wrapper div:nth-child(8) h2:after {
    background-color: var(--blue);
}


/* .about-content-wrapper div div  */

.about-content-wrapper div p,
.about-content-wrapper div ul {
    width: 80%;
    margin: auto;
}

div.trustee-details-wrapper {
    display: grid;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    justify-items: start;
}

.trustee-details2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.contact .material-symbols-outlined {
    vertical-align: middle;
    /* font-size: 2em; */
}

.contact-form {
    max-width: 100%;
    width: max-content;
    color: var(--white);
    padding: 0em 2em;
    border-radius: 2em;
}

.form-group {
    margin: 1em;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.form-group label {
    font-size: 2em;
}

.form-group input,
.form-group textarea {
    font-family: var(--font1);
    padding: 1em;
    outline: none;
    border: none;
    border-radius: 2em;
    width: -webkit-fill-available;
    min-width: 20em;
}

.form-group textarea {
    border-radius: 2em;
}

.form-group:nth-child(1) label {
    color: var(--red);
}

.form-group:nth-child(2) label {
    color: var(--yellow);
}

.form-group:nth-child(3) label {
    color: var(--green);
}

.form-group:nth-child(4) label {
    color: var(--blue);
}

.form-group:nth-child(5) label {
    color: var(--orange);
}

.form-group:nth-child(6) label {
    color: var(--black);
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group textarea {
    resize: vertical;
}

.pdt-btn {
    background: transparent;
    border: none;
    outline: none;
    position: relative;
    cursor: pointer;
    align-content: center;
    background: var(--black);
    /* border: 1px solid var(--black); */
    color: var(--white);
    padding: 1em;
    font-family: inherit;
    border-radius: 2em;
}

.pdt-btn::after {
    content: ' ';
    display: block;
    width: 100%;
    height: 5px;
    /* background: linear-gradient(90deg, #e74141ff, #f1d059ff, #fcf6f6ff, #49bd49ff, #4583f6ff); */
    /* background: linear-gradient(90deg, #e74141ff, #f1d059ff, #fcf6f6ff, #49bd49ff, #4583f6ff); */
    position: absolute;
    bottom: -1em;
    left: 0;
}

.pdt-btn[disabled="disabled"],
.pdt-btn[disabled="true"],
.pdt-btn:disabled {
    background: var(--grey);
    border: none;
    cursor: not-allowed;
}

.contact-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    align-items: center;
    justify-content: space-around;
}

.contact-details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
    gap: 1em;
}

.map-responsive {
    position: relative;
    padding-bottom: 30em;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.map-responsive iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 25em;
    border: 0;
}

footer {
    background: var(--white);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1em;
    margin: auto 1em;
    font-size: 0.8em;
    gap: 2em;
}

footer a {
    text-decoration: underline;
}

footer a:hover {
    color: var(--orange)
}

@media screen and (max-width: 60em) {
    .home-wrapper {
        flex-wrap: wrap;
    }
    .title-wrapper {
        flex-direction: row-reverse;
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        flex-wrap: nowrap;
    }
    .title {
        text-align: center;
    }
    .title-content {
        max-width: 100%;
    }
    .about-content-wrapper div.trustee-details1,
    .about-content-wrapper div.trustee-details2 {
        padding: 1em;
    }
    .contact-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        align-content: center;
        gap: 2em;
        text-align: center;
    }
    .contact-form {
        padding: 0;
    }
    .form-group input,
    .form-group textarea {
        font-size: 1.2em;
    }
    .contact-details-wrapper {
        align-items: center;
    }
    .title-wrapper {
        flex-wrap: wrap;
    }
    .title h1 {
        font-size: 1.5em;
    }
    .title-image {
        width: 70%;
    }
    .map-responsive {
        width: 100%;
    }
}

@media screen and (max-width: 40em) {
    nav .menuItems li {
        margin: 1em;
    }
    .about-content-wrapper div {
        width: 100%;
        padding: 1em 0;
    }
    div.trustee-details-wrapper {
        display: flex;
        flex-direction: column;
    }
    .title-content {
        font-size: 1.2em;
        line-height: 1.2;
    }
    .section-title {
        font-size: 2.5em;
    }
    .about-content-wrapper div h2 {
        font-size: 1.2em;
    }
    .form-group input,
    .form-group textarea {
        min-width: 0;
    }
    footer {
        justify-content: center;
    }
    .pdt-btn {
        font-size: 1.2em;
    }
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 4rem;
    right: 1rem;
    z-index: 9;
    border: none;
    outline: none;
    background-color: var(--white);
    /* color: white; */
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 2em;
    transition: transform 0.2s;
}

#backToTopBtn:hover {
    animation: jump 1s infinite;
}

@keyframes jump {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}