
/** Global Variables */

:root {
    /* 100% of UI, transparent layers on top */
    --angry-bg: rgba(150, 239, 46, 1);

    /* top 75% of UI */
    --angry-button-bg: rgba(61, 29, 29, 0.2);

    /* bottom 25% of UI */
    --angry-font: 'Londrina';
    --angry-font-size: 40px;
    --angry-font-normal-weight: 400;
    --angry-font-light-weight: 300;
    --angry-font-thin-weight: 200;
    --angry-font-black-weight: 700;

    --angry-caption-bg: rgba(255,255,255,0.1);
    --angry-text-color: rgba(255, 255, 255, 1);
}

/** CSS Setup */

html, body {
    margin: 0;
    background: var(--angry-bg);
}

/** Global Config */

* {
    user-select: none;
    -webkit-user-select: none;
}

/** Animations */

@keyframes breath {
    0% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-5deg);
    }
}

@keyframes shake {
    10%, 90% {
      transform: translate3d(-1px, 0, 0);
    }
    
    20%, 80% {
      transform: translate3d(2px, 0, 0);
    }
  
    30%, 50%, 70% {
      transform: translate3d(-4px, 0, 0);
    }
  
    40%, 60% {
      transform: translate3d(4px, 0, 0);
    }
}

@keyframes reveal {
    0% {
        bottom: -250px;
        right: -300px;
        transform: rotate(90deg);
    }
    80% {
        bottom: 10px;
        right: 10px;
        transform: rotate(-5deg);
    }
    100% {
        bottom: 0px;
        right: 0px;
        transform: rotate(0deg);
    }
}

/** Background */

#background {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    background-color: var(--angry-bg);

    overflow: scroll;

    transition: background-color 0.2s ease-in-out;
}

/** Container */

#container {
    min-width: 450px;
    min-height: 400px;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    height: 100%;
    
}

/** Button */

#button {
    flex: 3;

    display: flex;
    flex-direction: row;
    align-items: center;
    
    border-radius: 50px;
    margin: 50px;

    background: var(--angry-button-bg);
    animation: breath 6s ease-in-out 0.242s infinite alternate;
}

#button-image {
    flex: 1;
    font-size: 50px;
    text-align: center;
    line-height: 0px;
}

#button-image svg {
    transition: all 0.242s ease-in-out;
}

#button-image svg:hover {
    transform: scale(2, 2);

    cursor: pointer;

    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25));

    transition: transform 0.242s ease-in-out;
}

#button-image svg:active {
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.75));

    transition: transform 0.242s ease-in-out;
}

#anger-gifs {
    pointer-events: none;
    user-select: none;
}

/** Caption */

#caption {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;

    background: var(--angry-caption-bg);
}

#caption-text {
    flex: 1;
    font-size: 30px;
    text-align: center;
    padding: 20px;

    font-size: var(--angry-font-size);
    color: var(--angry-text-color);
    font-family: var(--angry-font);
    font-weight: var(--angry-font-thin-weight);
    letter-spacing: 4;
}

/** Footer (Fixed) */
#footer {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px;
}

#footer-coffee {
    width: 22px;
    height: 22px;

    cursor: pointer;

    transition: all 0.2s ease-in-out;
}

#footer-coffee:hover {
    transform: scale(1.2, 1.2);
    transition: all 0.2s ease-in-out;
}

#footer-body {
    display: none;

    position: fixed;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.99);

    border-radius: 20px;
    margin: 10px;
    padding: 14px;

    font-size: 20px;
    color: var(--angry-bg);
    font-family: var(--angry-font);

    width: 200px;
    height: 200px;
    bottom: 0px;
    right: 0px;

    cursor: pointer;
    
    animation: reveal 0.55s ease-in-out;
}

#footer-body a {
    color: inherit;
    text-decoration: none;
}

#footer-subtitle {
    font-size: 18px;
    font-weight: 300;
}

#footer-content {
    font-size: 18px;
    font-weight: 300;
}

#footer-content a {
    color: inherit;
    text-decoration: underline;
}

#footer-fineprint {
    line-height: 1;
    font-size: 8px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.2);
}

#github-button {
    width: 82%;
    border-radius: 22px;
    background: #090000;
    color: #fff;
    text-align: center;
    margin: 20px 10px 10px 10px;
    padding: 8px;
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 1.5;
    transition: all 0.2s ease-in-out;
    box-shadow: 0px 2px 2px rgba(0,0,0,0.5);
}

#github-button:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 0px 0px 4px rgba(0,0,0,0.5);
    transition: all 0.2s ease-in-out;
}

#producthunt-button {
    width: 82%;
    border-radius: 22px;
    background: #EA573D;
    color: #fff;
    text-align: center;
    margin: 10px;
    padding: 8px;
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 1.5;
    transition: all 0.2s ease-in-out;
    box-shadow: 0px 2px 2px rgba(0,0,0,0.5);
}

#producthunt-button:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 0px 0px 4px rgba(0,0,0,0.5);
    transition: all 0.2s ease-in-out;
}
