﻿@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,600,300);

:root {
    --color-info: #34b5f0;
    --color-success: #00bf8f;
    --color-warning: #f0a834;
    --color-danger: #ff3f3f;
    --color-notification: white;
    --color-dark: #131821;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 2px;
    overflow: hidden;
    color: #333;
    font-family: "Open Sans", Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.notification {
    --padding: 3rem 4rem 1rem 4rem;
    --color: var(--color-info);
    --bezier: cubic-bezier(0.75, 0.21, 0.25, 0.78);
    position: relative;
    text-align: center;
    width: 30rem;
    background-color: var(--color-notification);
    box-shadow: 0px 10px 10px black;
    border-radius: 5px;
    transition: transform 0.5s ease 0.4s;
    transform-origin: 50% 0%;
    transform: scaleY(0);
}

    .notification.-danger {
        --color: var(--color-danger);
    }

    .notification.-info {
        --color: var(--color-info);
    }

    .notification.-success {
        --color: var(--color-success);
    }

    .notification.-warning {
        --color: var(--color-warning);
    }

    .notification.-open {
        transition: all 0.5s ease;
        transform-origin: 50% 50%;
        transform: scale(1);
    }

        .notification.-open::before {
            transition: all 0.4s var(--bezier) 0.4s;
            transform: scaleY(0);
        }

        .notification.-open .notification__button {
            color: #fff;
            transition: color 0.3s ease 0.8s, background-color 0.3s ease;
        }

    .notification::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        transform-origin: 0% 100%;
        transition: all 0.5s var(--bezier);
        background: var(--color);
        border-radius: 5px;
    }

.notification__content {
    box-sizing: border-box;
    padding: var(--padding);
    width: 100%;
    margin: 0 auto;
}

.notification__icon {
    font-size: 5.2rem;
    color: var(--color);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.notification__title, .notification__text, .notification__icon {
    margin-top: 0;
}

.notification__title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.notification__text {
    color: var(--color-dark);
    font-size: 1.4rem;
}

.notification__button {
    background: var(--color);
    color: var(--color);
    width: 100%;
    border: none;
    padding: 1.4rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    outline: none;
    position: relative;
    top: 1px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.colors {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row nowrap;
}

    .colors a {
        --color: var(--color-danger);
        width: 1.6rem;
        height: 1.6rem;
        display: block;
        margin: 0.5rem;
        background: var(--color);
        border-radius: 50%;
        transition: box-shadow 0.3s ease;
    }

        .colors a[data-status=-warning] {
            --color: var(--color-warning);
        }

        .colors a[data-status=-success] {
            --color: var(--color-success);
        }

        .colors a[data-status=-info] {
            --color: var(--color-info);
        }

        .colors a.-active {
            box-shadow: 0 0 4px 2px var(--color);
        }
