/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background: #007dcb; /* Old browsers */
    background: -moz-linear-gradient(-45deg, #007dcb 0%, #007dcb 60%, #013b58 60%, #013b58 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #007dcb 0%, #007dcb 60%, #013b58 60%, #013b58 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #007dcb 0%, #007dcb 60%, #013b58 60%, #013b58 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#007dcb', endColorstr='#013b58', GradientType=1); /* IE6-9 fallback on horizontal gradient */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #fafafa;
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
}

@media only screen and (min-width: 1024px) {
    #content {
        width: 1024px;
        margin: auto;
    }
}

@media only screen and (max-width: 1024px) {
    #content {
        margin: 16px;
    }
}

.icon i {
    font-size: inherit;
}

.topnav {
    overflow: hidden;
}

.topnav a {
    float: right;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    position: relative;
    font-size: 17px;
}

.topnav .anim:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fafafa;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.15s ease-in-out 0s;
    transition: all 0.15s ease-in-out 0s;
}

.topnav .anim:hover:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    width: 100%;
}

.home {
    color: white;
    font-weight: bold;
    font-size: 48px !important;
    line-height: 23px;
    font-family: 'Passion One', cursive;
    text-transform: uppercase;
    transition: ease-in-out 0.15s;
}

.home:hover {
    color: #63BAA4;
}

.topnav .icon {
    display: none;
    font-size: 32px;
    line-height: 23px;
}

.button {
    background-color: #c8c23a;
    color: white;
    padding: 10px 20px 10px 20px;
    text-decoration: none;
    margin: 2px;
    display: inline-block;
    font-size: 16px;
    border-radius: 3px;
    transition: ease-in-out 0.15s;
    width: 55px;
}

hr {
    border-color: white;
}

.button-red {
    background-color: #dc0047;
}

.button-yellow {
    background-color: #c8c23a;
}

.button-blue {
    background-color: #09ddec;
}

.button-green {
    background-color: #17df4b;
}

.button-blurple {
    background-color: #7289DA;
}

.button:hover {
    filter: brightness(120%);
}

.floating {
    float: right;
    animation: float 4s ease-in-out infinite;
}

.floating img {
    width: 45vw;
}

@media screen and (max-width: 621px) {
    .floating {
        display: none;
    }
}

@media screen and (max-width: 740px) {
    .button {
        width: 100px;
    }
}

@media screen and (max-width: 620px) {
    .button {
        width: 200px;
    }
}

@media screen and (max-width: 510px) {
    .button {
        width: 300px;
    }
}

@media screen and (max-width: 370px) {
    .button {
        width: 260px;
    }
}

@media screen and (max-width: 300px) {
    .button {
        width: 200px;
    }
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: left;
        display: block;
    }

    .home {
        transition: none
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        left: 0;
        top: 0;
        font-size: 32px;
        line-height: 23px;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: right;
        background-color: #013b58;
    }
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 70px auto;
    padding: 10px;
    background: #2c2f33;
    border-radius: 5px;
    max-width: 540px;
    position: relative;
    transition: all 0.15s ease-in-out;
}

.popup h2 {
    margin-top: 0;
    color: #ffffff;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    top: 1px;
    right: 10px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #99aab5;
}

.popup .close:hover {
    color: #dc0047;
}

.popup .content {
    overflow: auto;
    color: #ffffff;
}

@media screen and (max-width: 575px) {
    #vote .popup {
        width: 250px;
    }
    #donate .popup {
        width: 75vw;
    }
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 260px);
    grid-gap: 19px;
}

.card {
    background-color: #999999;
    border-radius: 4px;
    width: 240px;
    text-align: center;
    padding: 10px;
}

.article-img {
    width: 200px;
    padding-top: 10px;
}

.article-btn {
    width: 180px;
}

.feature-table {
    border-spacing: 0;
    width: 100%;
    border: 1px solid #999999;
}

.feature-table th {
    text-align: center;
    padding: 8px;
}
.feature-table td {
    text-align: center;
    padding: 8px;
}

.feature-table th:first-child {
    text-align: left;
}
.feature-table td:first-child {
    text-align: left;
}

.feature-table tr:nth-child(even) {
    background-color: #999999
}

.fa-check {
    color: #0d832c;
}

.fa-remove {
    color: #dc0047;
}

form input {
	display: inline-block;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
