h1 {
    padding-bottom: 0.5em;
}

/* Mobile-only notice banner */

#mobile-notice {
    margin: 5px;
    margin-bottom: -10px!important;
}

/* Wave hero */

#wave-hero {
    position: relative;
    background-color: #7289DA;
    color: #fff;
    height: 32vw;
    min-height: 270px;
    max-height: 500px;
    overflow-x: hidden;
    width: 100%;
    padding: 0;
}

[data-theme="dark"] #wave-hero {
    background-color: #3B4774;
}

#wave-hero .container {
    z-index: 4;  /* keep hero contents above wave animations */
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    #wave-hero .columns {
        margin: 0 1em 0 1em;  /* Stop cards touching canvas edges in table-view */
    }
}

#wave-hero iframe {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border-radius: 10px;
    margin-top: 1em;
    border: none;
}

#wave-hero iframe:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

#wave-hero-centered {
    margin: auto auto;
}

#wave-hero-right img {
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.16), 0 1px 6px rgba(0,0,0,0.23);
    margin-top: 1em;
    text-align: right;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

[data-theme="dark"] #wave-hero-right img {
    -webkit-filter: brightness(0.9);
    filter: brightness(0.9);
}

[data-theme="dark"] #wave-hero-right img:hover {
    -webkit-filter: none;
    filter: none;
}

#wave-hero-right img:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

#wave-hero .wave {
    background: url(../../images/waves/wave_dark.svg) repeat-x;
    position: absolute;
    bottom: 0;
    width: 6400px;
    animation-name: wave;
    animation-timing-function: cubic-bezier(.36,.45,.63,.53);
    animation-iteration-count: infinite;
    transform: translate3d(0,0,0);  /* Trigger 3D acceleration for smoother animation */
}

[data-theme="dark"] #wave-hero .wave {
    background: url(../../images/waves_dark/wave_dark.svg) repeat-x;
}

#front-wave {
    animation-duration: 60s;
    animation-delay: -50s;
    height: 178px;
}

[data-theme="light"] #front-wave {
    opacity: 0.5;
}

[data-theme="dark"] #wave-hero #front-wave {
    background: url(../../images/waves_dark/wave_darker.svg) repeat-x;
}

#back-wave {
    animation-duration: 65s;
    height: 198px;
}

#bottom-wave {
    animation-duration: 50s;
    animation-delay: -10s;
    background: url(../../images/waves/wave_white.svg) repeat-x !important;
    height: 26px;
    z-index: 3;
}

[data-theme="dark"] #bottom-wave {
    background: url(../../images/waves_dark/wave_black.svg) repeat-x !important;
}

@keyframes wave {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: -1600px;
  }
}

/* Showcase */

#showcase {
    margin: 0 1em;
}

#showcase .mini-timeline {
    height: 3px;
    position: relative;
    margin: 50px 0 50px 0;
    background: linear-gradient(to right, #ffffff00, #666666ff, #ffffff00);
    text-align: center;
}

#showcase .mini-timeline i {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;
    top: -14px;
    margin: 0 4% 0 4%;
    background-color: #3EB2EF;
    color: white;
    line-height: 31px;
    border:none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

#showcase .mini-timeline i:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 5px rgba(0,0,0,0.23);
    transform: scale(1.5);
}

/* Projects */

#projects {
    padding-top: 0;
}

#projects .card {
    box-shadow: none;
    border: #d1d5da 1px solid;
    border-radius: 3px;
    transition: all 0.2s cubic-bezier(.25,.8,.25,1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] #projects .card {
    border: #4E4F51 1px solid;
}

#projects .card:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

[data-theme="dark"] #projects .card:hover {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.7);
}

#projects .card-header {
    box-shadow: none;
    font-size: 1.25rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

#projects .card-header-icon {
    font-size: 1.5rem;
    padding: 0 1rem 0 0;
}

#projects .card-header-title {
    padding: 0;
    color: #7289DA;
}

[data-theme="dark"] #projects .card-header-title {
    /* Link color from settings.py */
    color: #99B0FF;
}

#projects .card:hover .card-header-title {
    /* Bulma link-hover setting */
    color: #363636;
}

[data-theme="dark"] #projects .card:hover .card-header-title {
    /* Bulma link-hover setting */
    color: #FFFFFF;
}

#projects .card-content {
    padding-top: 8px;
    padding-bottom: 1rem;
}

#projects .card-footer {
    margin-top: auto;
    border: none;
}

#projects .card-footer-item {
    border: none;
}

#projects .card-footer-item i {
    margin-right: 0.5rem;
}

#projects .repo-language-dot {
    border-radius: 50%;
    height: 12px;
    width: 12px;
    top: -1px;
    display: inline-block;
    position: relative;
}

#projects .repo-language-dot.python { background-color: #3572A5; }
#projects .repo-language-dot.html { background-color: #e34c26; }
#projects .repo-language-dot.css { background-color: #563d7c; }
#projects .repo-language-dot.javascript { background-color: #f1e05a; }

/* Sponsors */

#sponsors .hero-body {
    padding-top: 2rem;
    padding-bottom: 3rem;

    text-align: center;
}

#sponsors .container {
    max-width: 70%;
}

#sponsors a {
    border-radius: .2rem;
    margin-bottom: .8rem;
    position: relative;
}

#sponsors img {
    max-height: 4rem;
}

@media (min-width: 800px) {
    #sponsors a.column.is-one-third:first-child {
        margin-left: -.8rem;
        margin-right: .8rem;
    }

    #sponsors a.column.is-one-third:last-child {
        margin-left: .8rem;
        margin-right: -.8rem;
    }

    #sponsors a.column.is-half {
        width: calc(50% + .4rem);
    }

    #sponsors a.column.is-half:first-child {
        margin-left: -.8rem;
        margin-right: .4rem;
    }

    #sponsors a.column.is-half:last-child {
        margin-left: .4rem;
        margin-right: -.8rem;
    }

    #sponsors a {
        height: 5rem;
        padding: .4rem;
    }

    #sponsors img {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        max-width: calc(100% - 0.8rem);
    }

}

@media (max-width: 800px) {
    #sponsors .columns {
        margin-bottom: 1.5rem;
    }
}
