/* MAIN CONFIGS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 20px;
    font-family: "Josefin Sans", sans-serif;
}

body {
    background-color: #fdf9fd;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    min-height: 100vh;
    /*position: relative;*/
}

a, a:hover, a:active, a:visited, a:focus {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-weight: 400;
    font-size: 4rem;
    color: #4b005f;    
    font-family: "Noto Serif Display", serif;
}

h2, h3, h4 {
    font-family: 'Times New Roman', Times, serif;
}

h2 {
    font-weight: lighter;
    font-size: 2rem;
    color: #4b005f;
    margin-bottom: 2rem;
    letter-spacing: 15px;
    padding: 0.5rem;
}

h3 {
    text-align: center;
    font-weight: lighter;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4b005f;
}

h4 {
    font-size: 1.4rem;
    text-align: center;
    font-weight: 300;     
}

h1, h2, h3, h4, .title {
    font-variant: small-caps;
}

p {
    line-height: 2;
}

hr {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* nav section */

/* nav keyframes */

@keyframes nav-buttons-fade {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nav-bar-shadow {
    to {
        box-shadow: 0px 0px 5px #4b005f;
    }
}

nav {
    position: fixed;
    top: 0;
    height: fit-content;
    width: 100%;
    background-color: #fcf6fd;
    animation: nav-bar-shadow;
    animation-timeline: scroll(y);
    padding: 1rem 2rem;
    z-index: 10;
}

.snav {
    display: none;
    position: fixed;
    top: 0;
    height: fit-content;
    width: 100%;
    background-color: #fcf6fd;
    padding: 1rem 2rem;
    z-index: 10;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 5px #f4caff;
}

.logo {
    animation: nav-buttons-fade backwards;
    animation-timeline: scroll(Y);
    animation-range-start: 30%;
    animation-range-end: 40%;
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 1.5rem;
}

.logo h1 {
    font-size: 1rem;
    padding: 0 0.5rem;
}

.show_from_above {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    animation: nav-buttons-fade 0.7s 0.4s backwards;
}

.btn {
    display: inline;
    font-variant: small-caps;
    color: #fcf6fd;
    background-color: #4b005f;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: 0.15s;
}

.btn:hover {
    background-color: #bbbbbb;
    cursor: pointer;
}

/* banner, splash section */

/* logo keyframe */
@keyframes logo-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* name h1 keyframe */
@keyframes h1-fade-in {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeout {
    to {
        opacity: 0;
        transform: translateY(-300px) scale(2);
    }
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 7rem;
}

.splash {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    animation: fadeout;
    animation-timeline: scroll(y);
    animation-range-end: 70%;
}

header img {
    animation: logo-fade-in 0.5s 0.4s backwards;
}

header h1 {
    margin-top: -1rem;
    animation: h1-fade-in 0.5s 0.6s backwards;
}


/* main content */
main {
    margin-top: 2rem;
    margin-top: 1rem;
    text-align: center;
}

@keyframes h2-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes h2-border-fadeout {
    to {
        border-top-color: #4b005f00;
    }
}

.fade-in {
    width: 80%;
    margin: 0 auto;
    animation: h2-fade-in 2s 1.5s backwards;
}

.fade-in h2 {
    margin-top: 1rem;
    border-top: solid 2px #4b005f;
    padding-top: 1rem;
    animation: h2-border-fadeout forwards;
    animation-timeline: scroll(y);
    animation-range-end: 50%;
}


@keyframes showup {
    from {
        opacity: 0;
        /* transform: translateY(200px); */
    }

    to {
        opacity: 1;
        /* transform: translateY(0); */
    }
}

/* presentation / about */

/* .about {
    width: 90%;
    margin: 3rem auto;
    padding: 1rem;
    animation: showup ease-in-out backwards;
    animation-timeline: scroll(y);
    animation-range-start: 5%;
    animation-range-end: 15%;
} */

.about {
    width: 90%;
    margin: 3rem auto;
    padding: 1rem;
    animation: showup 1s ease-in-out 2s backwards;
}

.about p {
    text-wrap: balance;
}


/* turn off or change animations for firefox that it does not support */
@supports (-moz-appearance:none) {
    .fade-in h2 {
        animation: none;
    }

    .splash {
        animation: none;
    }

    .about {
        animation: h2-fade-in 2s 2s backwards;
    }

}

/* our brands */ 

.perks_container {    
    background-image: url("./images/audience.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.perks h2, .perks h4 {
    color:#fcf6fd ;
}

.brands {
    width: 100%;
    display: flex;
    flex-flow: column;
    background-color: #efe1ffdd;   
    padding: 3rem;
}

.logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.logos a {
    width: 60%;
}

.logos a img {
    width: 100%;
    transition: 0.5s;
}

.logos a img:hover {
    transform: scale(1.05);
}

.logos p {
    margin-top: 1rem;
    text-align: center;
    color: #ebe2ed;
    text-wrap: balance;
}

.logo1, .logo2, .logo3, .logo4 {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
}

.brands .logo1, .brands .logo2, .brands .logo3, .brands .logo4 {
    justify-content: center;
}

.logo1 {
    grid-area: 1 / 1 / span 1 / span 1;
}

.logo2 {
    grid-area: 1 / 2 / span 1 / span 1;
}

.logo3 {
    grid-area: 1 / 3 / span 1 / span 1;
}

.logo4 {
    grid-area: 1 / 4 / span 1 / span 1;
}

.perks {
    width: 100%;
    height: 100%;
    background-color: #2c005faa;      
    padding: 3rem 1.5rem;
}

.perks ul {
    display: flex;
    justify-content: space-around;
    align-items: start;
}

.title {
    font-weight: bold;
    color: #ebe2ed;
}

.perks p {
    margin-top: 0.5rem;
}

.perks ul li {
    list-style: none;
    padding: 1rem 2rem;
    color: #ebe2ed;
}

/* our clients */

.clients {
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    background-color: #2c005fcc;   
    overflow: hidden;
}

.clients h2, .clients h1 {
    margin: 0;
    color:#ebe2ed;
}


/* client slide animation */

.slider {
	margin: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    margin: 0 auto;
    text-align:center;
}

.slider-container h1 {
    display: none;
    font-size: 2.5rem;
}

@keyframes textIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes textOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.slider-container h1.visible {
    display: block;
    animation: textIn 0.5s ease;
}

.slider-container h1.hide {
    animation: textOut 0.5s ease-out;
}

.center {
    margin-top: 10rem;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}


/* outro*/

.outro {
    padding: 3rem 1.5rem;
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    align-items: center;
}

.outro a {
    margin: 0 auto;
    margin-top: 2.5rem;
}

.outro .btn {
    font-size: 1.2rem;
    padding: 0.7rem 2rem;
    margin: 0 auto;
}


/* footer */

footer {
    width: 100%;
    background-color: #ebe2ed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.7rem;
}

footer p {
    font-variant: small-caps;
}

.link:hover {
    text-decoration: underline;
    cursor: pointer;
}

footer .split {
    margin: 0 1rem;
}


/* STYLE FOR CONTACT PAGE */

.article_wrapper {
    margin-top: 4rem;
    padding: 1rem;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.int_wrapper {
    margin: 0 auto;
    width: 50%;
}

.int_wrapper input, .int_wrapper textarea {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0.5rem;
    border-radius: 3px;
    border: solid 1px #ebe2ed;
    font-family: inherit;
    font-size: 0.8rem;
    box-shadow: 0 0 2px #4b005f;
}

.int_wrapper textarea {
    height: 18rem;
}


.int_wrapper p {
    position: relative;
    top: -0.5rem;
    text-align: left;
    font-size: 0.7rem;
}

.int_wrapper input:focus, .int_wrapper textarea:focus {
    outline: none !important;
    border:1px solid #4b005f;

}

#submit_btn {
    box-shadow:none;
}

.form_button_dis {
    background-color: #a3a3a3;
}

.form_button_enb {
    background-color: #e8d5ec;
}

.form_button_enb:hover {
    background-color: #4b005f;
    color: #ebe2ed;
}

/* message sent result message notification */

.message_wrapper {
    margin: 0 auto;
    width: fit-content;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    margin-top: -2rem;
    margin-bottom: 1rem;
    color: white;
}

.message_wrapper p {
    font-size: 0.7rem;
}

.error {
    background-color: rgb(187, 92, 92);
}

.success {
    background-color: rgb(62, 156, 90);
}

/* RESPONSIVITY */

@media only screen and (min-height: 1100px) and (orientation: landscape) {
    .about {
        animation: h2-fade-in 2s 2s backwards;
    }
}

@media only screen and (min-height: 1200px) and (orientation: landscape) {
    

    .about {
        animation: h2-fade-in 2s 2s backwards;
    }

    .perks_container {
        animation: h2-fade-in 2s 2.5s backwards;
    }

    .logos img {
        width: 80%;
    }
}

/* articles styling */

.article_wrapper h2 {
    text-align: center;
    letter-spacing: 5px;
}

article {
    width: 80%;
}

article p {
    text-align: justify;
    font-size: 0.8rem;
}

article h3 {
    margin-top: 1.5rem;
}

@media only screen and (min-height: 1500px) and (orientation: landscape) {
        
    html {
        font-size: 30px;
    }
}

@media only screen and (min-height: 1800px) and (orientation: landscape) {
        
    html {
        font-size: 45px;
    }
}

@media only screen and (max-width: 1700px) {
    .slider-container h1 {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 1300px) {
    html {
        font-size: 16px;
    }

    nav {
        padding: 1rem 1rem;
    }
}

@media only screen and (max-width: 1000px) {

    .about {
        animation: h2-fade-in 2s 2s backwards;
    }

    .perks_container {
        animation: h2-fade-in 2s 2.5s backwards;
    }
    
    .perks .logo1 {
        grid-area: 1 / 1 / span 1 / span 2;
    }
    
    .perks .logo2 {
        grid-area: 1 / 3 / span 1 / span 2;
    }
    
    .perks .logo3 {
        grid-area: 2 / 1 / span 1 / span 2;
    }
    
    .perks .logo4 {
        grid-area: 2 / 3 / span 1 / span 2;
    }
    
    .slider {
        min-height: 7rem;
    }

}

@media only screen and (max-width: 800px) {
    nav {
        display: none;
    }

    .snav {
        display: flex;
    }

    .logo {
        animation: none;
    }

    h2 {
        font-size: 1.5rem;
    }

    .int_wrapper {
        width: 90%;
    }

    article {
        width: 100%;
    }

}

@media only screen and (max-width: 600px) {

    h1 {
        font-size: 3rem;
    }

    header img {
        width: 80%;
        padding-bottom: 1rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .logo1 {
        grid-area: 1 / 1 / span 1 / span 2;
    }
    
    .logo2 {
        grid-area: 1 / 3 / span 1 / span 2;
    }
    
    .logo3 {
        grid-area: 2 / 1 / span 1 / span 2;
    }
    
    .logo4 {
        grid-area: 2 / 3 / span 1 / span 2;
    }

    .perks .logo1 {
        grid-area: 1 / 1 / span 1 / span 4;
    }
    
    .perks .logo2 {
        grid-area: 2 / 1 / span 1 / span 4;
    }
    
    .perks .logo3 {
        grid-area: 3 / 1 / span 1 / span 4;
    }
    
    .perks .logo4 {
        grid-area: 4 / 1 / span 1 / span 4;
    }
}


@media only screen and (max-width: 500px) {

    header {
        padding: 0 1rem;
    }
    .fade-in {
        width: 100%;
        padding: 0 1rem;
        margin-top: -1rem;
    }
    .split {
        display: none;
    }
    
    .slider {
        min-height: 12rem;
    }

    footer {
        flex-flow: column;
    }
}

@media only screen and (max-width: 400px) {
    header h1 {
        font-size: 2rem;
    }

}

@media only screen and (max-width: 350px) {
    
    .slider {
        min-height: 10rem;
    }

}