﻿/*
    06-stylesheet-splash-v1.0.css

    These are the styles needed for the "splash" displayed at login.

    Revisions
    2022-04-01 SG: Original code.
*/

/*
    The "surround" is visible or hidden, depending on whether we want any splash displayed at all. 
    By default it's hidden, so that Classic doesn't have a splash.
*/

.splashSurround {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    position: absolute;
    width: 100%;
    z-index: 10000; /* Put the splah on top of anything else. Otherwise, DatePicker shows through. */
}

/*
    The inner portion surrounds the splash message, and it's animated. This is CSS3 and should be 
    supported by all browsers except IE.
*/

.splashInner {
    margin-top: 20vh; /* Move down a bit so it's not too close to the top */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 0.5px gray solid;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    animation-name: splashAnimation;
    animation-duration: 3s;
}

/* Styles for the splash messages. */

.splashWelcome {
    display: inherit;
    font-weight: 700;
}

.splashBirthday {
    color: red;
    font-weight: 700;
}

/* This is the cool animation styling. No JavaScript needed.*/

@keyframes splashAnimation {
    from {
        opacity: 1;
        transform: rotate(0deg) scale(0, 0);
        visibility: visible;
    }

    to {
        opacity: 0;
        transform: rotate(360deg) scale(10, 10);
        visibility: hidden;
    }
}
