@import url("https://fonts.googleapis.com/css2?family=PT+Mono&display=swap");

* {
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    margin: 0;
}

.container {
    display: flex;
    /* border: 1px solid black; */
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    height: 100vh;
    background-image: url(images/wave-haikei.svg);
    background-size: cover;
}

.item {
    display: flex;
    flex-grow: 1;
    width: 300px;
    margin: 0;
    height: 100%;
    flex-direction: column;
    padding: 2rem;
}

.first {
    height: 80%;
    justify-content: space-around;
}

.gmsa-logo {
    background-image: url(images/GMSA-KNUST\ Logo.png);
    height: 100px;
    width: 100px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-text-section {
    max-width: 90%;
}

.first .title,
.first .sub-title {
    margin: 0.1em 0;
}

.first .title {
    font-size: 4rem;
    color: hsl(136, 78%, 16%);
    letter-spacing: 0.1em;
    font-family: "PT Mono", monospace;
}

.first .sub-title {
    font-size: 1.75rem;
    color: hsl(136, 58%, 16%);
    font-weight: normal;
}

.first .text {
    font-size: 1.3rem;
    color: hsla(137, 58%, 16%, 0.74);
}

.btn {
    font-size: 1.3em;
    border: 3px solid;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 0.5em;
    transition: all 0.2s;
}

.btn-donate {
    background-color: hsl(136, 58%, 16%);
    border-color: hsl(136, 58%, 16%);
    color: white;
    margin-right: 1em;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-download {
    border-color: hsl(136, 58%, 16%);
    color: hsl(136, 58%, 16%);
    background: none;
}

.second {
    background-image: url(images/cover-page.jpg);
    height: 80%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

a.span-donate {
    text-decoration: none;
    color: hsl(136, 58%, 16%);
    font-weight: bold;
}

.modal {
    position: absolute;
    height: 100vh;
    width: 100vw;
    z-index: 5;
    background-color: hsl(136, 58%, 16%, 0.5);
    display: none;
    justify-content: center;
}

.modal .close-box {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.modal .close-box i {
    color: hsl(136, 58%, 16%);
    cursor: pointer;
}

.modal .close-box i:hover {
    color: hsl(130, 88%, 26%);
}

.modal #payment-details-form {
    align-self: center;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    width: 80vw;
    max-width: 400px;
    background-color: white;
    border-radius: 0.5em;
    padding: 10px;
    justify-content: space-around;
    align-items: center;
}

#payment-details-form .form-info {
    color: hsl(136, 58%, 26%);
    color: #005804;
    text-align: center;
    font-family: "Segoe UI";
}

.form-info .text1 {
    font-size: 1.2rem;
}

.form-info .momo-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.form-info .prayer {
    font-size: 1.5rem;
}

#payment-details-form .form-info span {
    font-weight: bold;
    font-size: 1rem;
}

#payment-details-form .form-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    display: none;
}

#payment-details-form input,
#payment-details-form button,
#payment-details-form select {
    font-size: 1.2rem;
    padding: 0.5em;
    border-radius: 0.25em;
    outline: none;
}

#payment-details-form input {
    width: 100%;
    margin: 0.5em 0;
    border: 2px solid hsl(136, 58%, 16%);
    transition: all 0.2s;
}

#payment-details-form input:not(:placeholder-shown),
#payment-details-form input:focus {
    border: 2px solid hsl(130, 88%, 26%);
}

#payment-details-form select {
    margin: 0.5em 0;
    width: 100%;
    border: 2px solid hsl(136, 58%, 16%);
    color: hsl(136, 58%, 16%);
    background: none;
}

#payment-details-form select:focus {
    border: 2px solid hsl(130, 88%, 26%);
}

#payment-details-form button {
    width: 70%;
    border: 2px solid hsl(136, 58%, 16%);
    background-color: hsl(136, 58%, 16%);
    border-color: hsl(136, 58%, 16%);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

#payment-details-form button:hover {
    border: 2px solid hsl(130, 88%, 26%);
    background-color: hsl(130, 88%, 26%);
}

#payment-details-form button.close-modal {
    width: fit-content;
}

.modal #download-options {
    align-self: center;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    width: 80vw;
    max-width: 400px;
    background-color: white;
    border-radius: 0.5em;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
}

#download-options p {
    text-align: center;
    font-size: 1.3rem;
    font-family: sans-serif;
    color: hsl(136, 58%, 16%);
}

#download-options button {
    width: 70%;
    font-size: 1.3em;
    border: 3px solid hsl(136, 58%, 16%);;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 0.5em;
    transition: all 0.2s;
}

#download-options button:hover {
    transform: scale(1.05);
}

#download-options button#download-original {
    background-color: hsl(136, 58%, 16%);
    color: white;
}

#download-options button#download-compressed {
    color: hsl(136, 58%, 16%);
    background: none;
}

.modal #payment-details-form,
.modal #download-options {
    display: none;
}


footer {
    position: absolute;
    bottom: 0;
    padding: 0.5rem;
    text-align: right;
    color: grey;
    width: 100%;
    padding-right: 1em;
    font-size: 0.75em;
    letter-spacing: 0.1em;
}

footer.mobile-footer {
    display: none;
}

/* RESPONSIVENESS */

@media screen and (max-width: 930px) {
    .first .title {
        font-size: 3rem;
    }

    .first .sub-title {
        font-size: 1.3rem;
    }

    .first .text {
        font-size: 1rem;
    }

    .btn {
        font-size: 1em;
        border: 3px solid;
        padding: 0.5em 1em;
        cursor: pointer;
        border-radius: 0.5em;
        transition: all 0.2s;
    }
}

/* phone screens */
@media screen and (max-width: 780px) {
    .container {
        background: none;
    }

    .second {
        display: none;
    }

    .first {
        height: 100vh;
        background-image: url(images/wave-haikei-phone.svg);
        background-size: cover;
        background-position: center;
        justify-content: space-between;
        padding: 1.5em;
        padding-bottom: .5em;
    }

    .gmsa-logo {
        box-sizing: content-box;
        align-self: center;
        border-radius: 10%;
        /* box-shadow: 0 0 0 5px #023b13, 0 0 0 10px white; */
        border: 15px solid white;
        background-color: white;
    }

    .hero-text-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .first .title {
        font-size: 3rem;
    }

    .first .sub-title {
        font-size: 1.5rem;
    }

    .first .text {
        margin-bottom: 0;
        font-size: 1.3rem;
    }

    .action-btns {
        flex-grow: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }

    .btn {
        font-size: 1.2em;
    }

    .btn-donate {
        margin-right: 1rem;
    }

    #payment-details-form input,
    #payment-details-form button,
    #payment-details-form select {
        font-size: .9rem;
        padding: 0.5em;
        border-radius: 0.5em;
        outline: none;
    }

    #payment-details-form .form-inputs {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
        display: none;
    }

    #payment-details-form button {
        width: 90%;
    }

    #download-options button {
        width: 90%;
        font-size: 1rem;    
    }

    footer {
        display: none;
    }

    footer.mobile-footer {
        display: flex;
        justify-content: center;
        position: relative;
        padding: 0;
        text-align: center;
        letter-spacing: 0.1em;
    }
}
