/* main.css styling for jovisdesign.com homepage */

body {
    min-height: 100vh;
    margin: 0;
}

header {
    display: block;
    background-color: black;
    padding: 2px 5px 2px 5px;
    text-align: center;
    position: fixed;
    width: 100%;
    font-weight: 700;
    color: gold;
}

p {
    font-family: 'Nunito Sans';
    font-style: normal;
}

hr {
    /* account for align-items and flex making hr stretch vertically not hori */
    width: 100%;
}

button {
    background-color: #BE9617;
	border: none;
    border-radius: 4px;
    padding: 8px 13px;
    width: 200px;
    font-family: "Alegreya Sans";
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

button:active {
    background-color: #A78414;
	-webkit-box-shadow: inset 0px 0px 5px #000;
    -moz-box-shadow: inset 0px 0px 5px #000;
	box-shadow: inset 0px 0px 5px #000;
    transform: translate(1px,1px);
}

/* toggle classes for header-visible.js */
.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.1s linear;
}

.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.1s, opacity 0.1s linear;
}
/* end of toggle classes for header-visible.js */

#headline-container {
    margin: 0 auto;
    padding: 0 15px;
    background-image: linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) ), url("./img/digital.jpg");
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#headline-cta {
    min-height: 100vh;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: white;
    font-size: 1.4rem;
}

#headline-cta h1 {
    font-family: "Nunito Sans";
    font-weight: 800;
    margin-bottom: 0;
}

#headline-cta h3 {
    font-family: "Alegreya Sans";
    font-weight: 300;
}

.email {
    padding: 7px;
    padding-left: 10px;
    width: 220px;
    border: 0;
    border-radius: 16px 0 0 16px;
}

.button {
    background-color: #BE9617;
	border: none;
    border-radius: 0 16px 16px 0;
    padding: 7px 7px 7px 4px;
    width: 80px;
    font-family: "Alegreya Sans";
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.button:active {
    background-color: #A78414;
	-webkit-box-shadow: inset 0px 0px 5px #000;
    -moz-box-shadow: inset 0px 0px 5px #000;
	box-shadow: inset 0px 0px 5px #000;
    transform: translate(1px,1px);
}

#letter-container {
    padding: 15px 15px 50px 15px;
    margin: 0 auto;
}
#letter-contents {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    font-size: 1.4rem;
}

#letter-contents>h6 {
    margin-bottom: 13px;
}

#offer {
    padding: 8rem 0;
    background-image: linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) ), url("./img/typing.jpg");
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#offer-contents {
    background-color: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    margin: auto;
    padding: 0 2rem 2rem 2rem;
    color: white;
    font-size: 1.4rem;
}

#offer-contents>h2 {
    text-align: center;
    font-family: "Nunito Sans";
    font-weight: 700;
}

#offer-contents>h3 {
    text-align: center;
    font-family: "Nunito Sans";
    font-weight: 900;
}

#offer-contents>h4 {
    font-family: "Alegreya Sans";
}

#process-padding {
    padding-bottom: 2.5rem;
}

#process-padding>h3 {
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 1.7rem;
}

#process-box {
    display: flex;
    flex-wrap: wrap;
    font-family: "Nunito Sans";
    font-size: 1.4rem;
    gap: 16px;
}

#process-box>div {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    padding: 15px;
}

/* Beginning of testing */
#process-box div:nth-of-type(1) {
    background: black;
    color: white;
}

#process-box div:nth-of-type(2) {
    background: silver;
}

#process-box div:nth-of-type(3) {
    background: black;
    color: white;
}

#process-box div:nth-of-type(4) {
    background: silver;
}
/* End of testing */

#guarantee-container {
    background-image: linear-gradient( rgba(0,0,0,0.7), rgba(0,0,0,0.7) ), url("./img/hand.jpg");
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 15px;
    margin: 0 auto;
}

#guarantee-contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    color: white;
    font-size: 1.4rem;
    padding: 3rem 0 5rem 0;
}

#guarantee-contents>h3 {
    font-family: "Nunito Sans";
    text-align: center;
}

#faq-container {
    margin: 0 auto;
    padding: 0 15px;
}

#faq-contents {
    font-family: "Nunito Sans";
    text-align: center;
    font-size: 1.4rem;
    padding: 5rem 0;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    font-size: inherit;
    border: none;
    outline: none;
    transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
    background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    font-size: 1.4rem;
    text-align: left;
}

#final-cta-container {
    position: relative;
    padding: 12rem 15px;
    margin: 0 auto;
    background: black;
}

#final-cta-container::before {
    content: "";
    background-image: url("./img/stars.svg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: repeat;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    -webkit-animation: starPulse 2s infinite alternate;
    animation: starPulse 2s infinite alternate;
}

#final-cta-contents {
    position: relative;
    font-family: "Nunito Sans";
    text-align: center;
    font-size: 1.4rem;
    color: white;
    width: 100%;
    margin: 0 auto;
}

#final-cta-contents h2, button {
    position: relative;
    z-index: 2;
}

footer{
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: black;
    font-family: "Nunito Sans";
    color: white;
}

#footer-copyright a {
    color: grey;
    font-size: 12px;
    text-decoration: none;
}
#footer-contact p {
    margin: 0;
}

#footer-contact a {
    color: white;
}

/* Star Pulse Animation */
@-webkit-keyframes starPulse {
    from { opacity: 1; }
    to   { opacity: 0.66; }
}

@keyframes starPulse {
    from { opacity: 1; }
    to   { opacity: 0.66; }
}

.animation-wrapper {
    margin: 0 auto;
    width: 50%;
}

.sphere-animation {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 580px;
    height: 580px;
    margin: -290px 0 0 -290px;
    filter: brightness(55%);
}

.sphere path {
    fill: url(#sphereGradient);
    stroke-width: 1px;
    stroke: rgba(80,80,80,.35);
    backface-visibility: hidden;
}

@media (min-width: 576px) {
    #offer-contents {
        font-size: 1.7rem;
    }
    #process-padding {
        padding: 2rem;
    }
    #process-box>div {
        flex-basis: calc(50% - 38px);
        opacity: 0.8;
        -webkit-transition: 0.05s ease-in;
        transition: 0.05s ease-in;
    }
    #process-box div:hover {
        opacity: 1;
        -webkit-transform: translate(-3px,-3px);
        transform: translate(-3px,-3px);
    }
    #process-box div:nth-of-type(1) {
        background: black;
        color: white;
    }
    #process-box div:nth-of-type(1):hover {
        -webkit-transform: translate(-3px,-3px);
        transform: translate(-3px,-3px);
    }
    #process-box div:nth-of-type(2) {
        background: silver;
    }
    #process-box div:nth-of-type(2):hover {
        -webkit-transform: translate(3px,-3px);
        transform: translate(3px,-3px);
    }
    #process-box div:nth-of-type(3) {
        background: silver;
        color: black;
    }
    #process-box div:nth-of-type(3):hover {
        -webkit-transform: translate(-3px,3px);
        transform: translate(-3px,3px);
    }
    #process-box div:nth-of-type(4) {
        background: black;
        color: white;
    }
    #process-box div:nth-of-type(4):hover {
        -webkit-transform: translate(3px,3px);
        transform: translate(3px,3px);
    }
    #faq-contents {
        font-size: 1.7rem;
    }
    #final-cta-contents {
        font-size: 1.7rem;
    }
    footer {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    #headline-container {
        background-attachment: fixed;
    }
    #headline-cta {
        -webkit-box-flex: 0;
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }
    #mc_embed_signup {
        width: 600px;
    }
    .email {
        width: 400px;
    }
    .button {
        width: 100px;
        padding: 7px 13px;
    }
    #letter-contents {
        max-width: 720px;
    }
    #offer {
        background-attachment: fixed;
    }
    #offer-contents {
        max-width: 50%;
    }
    #process-padding {
        padding: 3rem 5rem 5rem 5rem;
    }
    #guarantee-container {
        background-attachment: fixed;
    }
    #guarantee-contents {
        max-width: 720px;
    }
    #faq-container {
        max-width: 720px;
    }
    #final-cta-contents {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    #headline-cta {
        -webkit-box-flex: 0;
        flex: 0 0 83.333%;
        max-width: 83.333%;
        font-size: 2rem;
    }
    #letter-contents {
        font-size: 1.7rem;
    }
    #guarantee-contents {
        font-size: 1.7rem;
    }
    #faq-contents {
        font-size: 1.7rem;
    }
}

@media (min-width: 1140px) {
    #headline-cta {
        -webkit-box-flex: 0;
        flex: 0 0 66.667%;
        max-width: 66.667%;
        /* width: calc(50% - 15rem); */
    }
    #offer-contents {
        max-width: 40%;
    }
    #process-padding {
        padding: 3rem 14rem 8rem 14rem;
    }
}

@media (min-width: 1600px) {
    #headline-cta {
        -webkit-box-flex: 0;
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }
    #letter-contents {
        font-size: 2.1rem;
    }
    #offer-contents {
        max-width: 33.333%
    }
    #process-padding {
        padding: 3rem 25rem 8rem 25rem;
    }
}
