/* Main Color Overlay, and Background Image */
.main-content {
    background-image: linear-gradient(black, black), url(../images/vfx/Background.png); 
    z-index: 0;

    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/*Home page Center Text Box*/
main {
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;

    opacity: 1;
    z-index: 1;

    animation-name: main-content;
    animation-duration: 4s;
    animation-timing-function: cubic-bezier(0.33, 0, 0.68, 1);
}

@media (max-width: 700px) {

    /* (Welcome to LunarFlame Studios)*/
    main h1 { font-size: 8vw; }

    /*Description*/
    main p {
        margin: 10px 0 40px;
        font-size: 3vw;
        color: white;
    }

    /* Link to Project Leo */
    main a {
        margin-top: 0;
        font-size: 6vw;
    }
}

@media(min-width: 701px) {

    /* (Welcome to LunarFlame Studios)*/
    main h1 { font-size: 3.75vw; }

    /*Description*/
    main p {
        margin: 10px 0 40px;
        font-size: 1.5vw;
        color: white;
    }

    /* Link to Project Leo */
    main a {
        margin-top: 2%;
        font-size: 2.53vw;
    }
}

/* Container for all elements that are center aligned on the screen. */
.center-container {
    position: fixed;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circles on the Home Page. */
.circle {
    position: absolute;
    transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------------------------- */

/* Home Page Animations */

/* fade-out-all is used in the initial fade-out animation.
 * fade-out-sub is placed underneath all other elements, and is used in all subsequent fade-outs.
 */

#fade-out-all, #fade-out-sub {
    width: 100vw;
    height: 100vh;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
}

/* Top Menu area, containing the logo and nav links. */
header {
    z-index: 2;
    position: relative;

    opacity: 1;

    animation-name: header-nav;
    animation-duration: 3s;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
}

/* The UI Frame image that appears in the background. */
#ui-frame {
    position: absolute;
    z-index: 0;
    transform: translate(-50%, -50%);
    transform-origin: center;

    top: 50%;
    left: 50%;

    opacity: 1;

    animation-name: ui-frame;
    animation-duration: 2.5s;
    animation-timing-function: cubic-bezier(0.33, 0, 0.68, 1);
}

/* The 3 inner circles in the center of the screen view. */
#center-circle {
    animation-name: center-circle;
    animation-duration: 2.5s;
    animation-timing-function: cubic-bezier(0.33, 0, 0.68, 1);
}

/* The 3 outer concentric circles centered on the screen view. */
#outer-circle {
    animation-name: outer-circle;
    animation-duration: 8s;
    animation-timing-function: cubic-bezier(0.33, 0, 0.68, 1);
}

/* Circles 4, 5, and 6 are the outer circles. */
.circle#v4 {
    transform-origin: center;
    transform: translate(-50%, -50%) scale(1.1);
}

.circle#v5 {
    transform-origin: center;
    transform: translate(-50%, -50%) scale(1.3);
}

.circle#v6 {
    transform-origin: center;
    transform: translate(-50%, -50%) scale(2);
}

/* Apply infinite rotation animations to all circles. */
.circle#v1 img { animation: clockwise 5s linear infinite; }
.circle#v2 img { animation: counterclockwise 6s linear infinite; }
.circle#v3 img { animation: clockwise 5.5s linear infinite; }
.circle#v4 img { animation: clockwise 30s linear infinite; }
.circle#v5 img { animation: counterclockwise 100s linear infinite; }
.circle#v6 img { animation: clockwise 150s linear infinite; }

@media(max-width: 700px) {
    .circle#v6 { display: none; }
}

@keyframes header-nav {
    0% { opacity: 0; }
    70% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes ui-frame {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
    }

    30% { opacity: 0;}

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.4);
    }

    75% { transform: translate(-50%, -50%) scale(1); }

    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1); 
    }
}

@keyframes main-content {
    0% { opacity: 0; }
    70% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes center-circle {
    0% { 
        opacity: 0;
        scale: 1.2; 
    }

    80% { 
        opacity: 0;
        scale: 1.2; 
    }

    100% { 
        opacity: 1;
        scale: 1; 
    }
}

@keyframes outer-circle {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


@media (max-width: 700px) {
    #ui-frame { display: none; }
}
