﻿@import url('common/site.css');
@import url('common/animation.css');

body {
    height: calc(100vh);
    min-height: calc(100vh);
    background: -webkit-linear-gradient(210deg, var(--gradientAccent1), var(--gradientAccent2), var(--gradientAccent3), var(--gradientAccent4) );
    background: linear-gradient(210deg, var(--gradientAccent1), var(--gradientAccent2), var(--gradientAccent3), var(--gradientAccent4) );
    background-size: 300% 300%;
    -webkit-animation: gradientBG 10s ease infinite;
    animation: gradientBG 10s ease infinite;
}

section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr max-content;
    position: relative;
    width: 100%;
    height: 100%;
}

    section > main {
        align-self: center;
        justify-self: center;
    }



/*------------------------------main container*/

main {
    display: flex;
    position: relative;
    width: auto;
    min-width: 750px;
    max-width: 850px;
    height: auto;
    min-height: 300px;
    padding: 30px;
    border-radius: 5px;
    background: var(--white);
    box-shadow: 0px 0px 20px 1px var(--PrimaryShadow);
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

.rtl {
    flex-flow: row nowrap;
    -webkit-animation: formAR 0.5s ease-in-out;
    animation: formAR 0.5s ease-in-out;
}

.ltr {
    flex-flow: row-reverse nowrap;
    -webkit-animation: formEN 0.5s ease-in-out;
    animation: formEN 0.5s ease-in-out;
}


/*------------------------------logo container*/

.logo {
    align-self: center;
    width: 40%;
    margin: 10px 0px 0px 0px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    order: 1;
    z-index: 2;
}

    .logo object {
        width: 100%;
        height: 100%;
    }


/*------------------------------title container*/

.title {
    align-self: center;
    width: 60%;
    font-size: 40px;
    color: var(--AccentColor);
    order: 2;
    z-index: 2;
}

/*rtl & ltr title*/

.rtl .title {
    text-align: right;
    padding: 0px 20px 0px 0px;
}

.ltr .title {
    text-align: left;
    padding: 0px 0px 0px 20px;
}


.title p {
    font-size: 30px;
    color: var(--PrimaryColor);
    margin-top: -15px;
}

/*rtl & ltr title paragraph*/
.rtl .title p {
    text-align: right;
}

.ltr .title p {
    text-align: left;
}

/*------------------------------blob container*/

#blob {
    position: absolute;
    width: 40%;
    height: 100%;
    top: -17%;
    fill: var(--gray);
    opacity: 0.1;
    z-index: 1;
}

.blob {
    -webkit-animation: blobby 2s infinite;
    animation: blobby 2s infinite;
}


/*rtl & ltr blob*/
.rtl #blob {
    right: -10%;
    -webkit-transform: rotate(-270deg);
    transform: rotate(-270deg);
}

.ltr #blob {
    left: 0;
}


/*------------------------------wave container*/

.waves {
    width: 100%;
    height: 150px;
}

.wave-item > use {
    animation: wave-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

    .wave-item > use:nth-child(1) {
        animation-delay: -2s;
        animation-duration: 7s;
    }

    .wave-item > use:nth-child(2) {
        animation-delay: -3s;
        animation-duration: 10s;
    }

    .wave-item > use:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 13s;
    }

    .wave-item > use:nth-child(4) {
        animation-delay: -5s;
        animation-duration: 20s;
    }

/*------------------------------footer container*/

footer {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: var(--white);
}

    footer p {
        align-self: center;
        font-size: 16px;
        color: var(--PrimaryColor);
    }

    footer span {
        align-self: center;
        font-size: 16px;
        color: var(--AccentColor);
    }

    footer i {
        display: block;
        align-self: center;
        width: 1px;
        height: 10px;
        margin: 2px 10px 0px 10px;
        background: var(--gray);
    }

    /*rtl & ltr footer*/
    footer.rtl {
        flex-flow: row nowrap;
    }

    footer.ltr {
        flex-flow: row-reverse nowrap;
    }

/*-- media query --*/
@media only screen and (max-width: 900px) {

    main {
        min-width: 80%;
        max-width: 80%;
        padding: 20px;
    }

    .rtl, .ltr {
        flex-flow: column nowrap;
    }

    .logo {
        width: 60%;
    }


    .title {
        width: 100%;
        font-size: 36px;
    }

    .rtl .title, .ltr .title {
        text-align: center;
        padding: 0px 0px 15px 0px;
    }


    .title p {
        font-size: 26px;
    }

    .rtl .title p, .ltr .title p {
        text-align: center;
    }

    #blob {
        display: none;
        visibility: hidden;
        opacity: 0;
    }
}

@media only screen and (max-width: 800px) {

    .logo {
        width: 70%;
    }
}

@media only screen and (max-width: 600px) {

    .logo {
        width: 90%;
    }

    .title {
        font-size: 32px;
    }

        .title p {
            font-size: 22px;
        }

    .waves {
        height: 100px;
    }

    footer p {
        font-size: 14px;
    }

    footer span {
        font-size: 14px;
    }

    footer i {
        height: 8px;
        margin: 1px 10px 0px 10px;
    }
}

@media only screen and (max-width: 500px) {

    body {
        height: calc(100vh - 20px);
        min-height: calc(100vh - 20px);
    }


    .logo {
        width: 100%;
    }


    .title {
        font-size: 30px;
    }

        .title p {
            font-size: 20px;
        }

 
}
