.demo-ribbon {
    width: 100%;
    height: 40vh;
    background: linear-gradient(2deg, #232946 0%, #3a8dde 100%) !important;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.demo-main {
    margin-top: -35vh;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.small-note {
    font-size: 10px;
}

.lee-img {
    border-radius: 200px;
}
.bitbank-face {
    float: left;
    margin: 10px;
}

.smaller-currency {
    font-size: 20px;
}

.demo-header .mdl-layout__header-row {
    padding-left: 40px;
}

.demo-container {
    max-width: 1600px;
    width: calc(100% - 16px);
    margin: 0 auto;
}

.demo-content {
    border-radius: 2px;
    padding: 80px 56px;
    margin-bottom: 80px;
}

.pricing-content {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 40px;
}

.demo-layout.is-small-screen .demo-content {
    padding: 40px 28px;
}

.demo-content h3 {
    margin-top: 48px;
}

/*INDEX*/

.hero-section {
    height: 24vh;
    /* IE11 doesn't like min-height */
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, 
        rgba(67, 90, 211, 0.8) 0%, 
        rgba(82, 113, 196, 0.75) 25%,
        rgba(103, 128, 185, 0.7) 50%,
        rgba(124, 143, 174, 0.65) 75%,
        rgba(145, 158, 163, 0.6) 100%),
        url('/static/img/math-background.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(63, 81, 181, 0.1) 0%, 
        rgba(103, 58, 183, 0.1) 50%, 
        rgba(156, 39, 176, 0.1) 100%);
    pointer-events: none;
}

.hero-text {
    color: rgba(255, 255, 255, 0.95);
    margin: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-text h1 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

@media (min-width: 580px) {
    .hero-icon {
        margin: 0 25px;
    }
}

.hero-icon {
    box-sizing: border-box;
    border-radius: 50%;
    font-size: 56px;
    color: #ff4081;
}

.hero-bitbank {
    font-size: 29px;
    vertical-align: bottom !important;
}

.fa-footer {
    margin: 7px;
    width: 16px;
    height: 16px;
}

.hero-signup {
    margin: 10px;
    padding: 10px 25px;
    background: linear-gradient(45deg, #ff4081, #e91e63);
    border: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
    transition: all 0.3s ease;
}

.hero-signup:hover {
    background: linear-gradient(45deg, #f50057, #c51162);
    box-shadow: 0 6px 16px rgba(255, 64, 129, 0.4);
    transform: translateY(-2px);
}

.middled {
    text-align: center;
}

@media screen and (max-width: 580px) {
    .hero-text p {
        white-space: pre-line;
    }
}

.kitty-hero__text-button {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
}

.intro-section,
.cards-section {
    max-width: 960px;
}

/* ABOUT KITTY INTRO */

.intro-section {
    padding: 5em 2em 5em;
}

.about-kitty p {
    max-width: 640px;
    margin: auto;
}

.circle-container {
    width: 100%;
    min-height: 100px;
    padding: 2em 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.circle-container .circle {
    height: 16px;
    width: 16px;
    background-color: #c51162;
    border-radius: 50%;
    margin: 0 3px 9px;
}

.topics-container {
    padding: 2em 0;
}

.topics-container .topic {
    font-size: 20px;
    margin: 0 2px 5px;
}

@media screen and (max-width: 480px) {
    .topics-container .topic {
        margin-bottom: 0.5em;
    }
}

.embedded-img {
    max-width: 150px;
    max-height: 150px;
    margin: 0.5em;
    border-radius: 50%;
}

/* CARDS SECTION */

.cards-section {
    padding: 5em 0;
}

.mdl-card__title {
    min-height: 300px;
    color: white;
}

.home-bringing-card .mdl-card__title {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)), url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/234228/kitten-home.jpg') center / cover;
}

.play-card .mdl-card__title {
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/234228/kitten-on-tree.jpg') center / cover;
}

.image-card {
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/234228/image-card.jpg') center / cover;
}

.image-card > .mdl-card__actions {
    height: 52px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
}

.image-card__title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.litter-card .mdl-card__title {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)), url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/234228/litter-card.jpg') center / cover;
}

.diet-card .mdl-card__title {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)), url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/234228/diet-card.jpg') center / cover;
}

.card-small {
    min-height: auto;
}

.card-small > .mdl-card__title {
    color: rgba(0, 0, 0, 0.87);
    height: auto;
    min-height: auto;
}

.card-small .mdl-card__title-text {
    font-size: 16px;
}

.card-small .mdl-card__title-text:before {
    content: "";
    display: inline-block;
    margin-right: 0.5em;
    width: 18px;
    height: 18px;
    background-color: #c51162;
    border-radius: 50%;
}

/* FULLWIDTH BACKGROUND SECTION */

.fullwidth-panel {
    color: white;
    background-color: rgba(156, 39, 176, 0.6);
}

.fullwidth-panel p {
    max-width: 640px;
    margin: auto;
}

.quote-panel {
    background-image: linear-gradient(rgba(63, 81, 181, 0.5), rgba(63, 81, 181, 0.5)), url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/234228/panel-bg.jpg');
    background-position: center 5%;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4em 2em 2em;
    display: flex;
    align-content: flex-start;
}

@media screen and (min-width: 800px) {
    .quote-panel {
        background-position: center 0;
        padding: 6em 2em;
    }
}

@media screen and (min-width: 1200px) {
    .quote-panel {
        background-position: center 8%;
        padding: 10em 2em 8em;
    }
}

.contact-intro {
    color: rgba(255, 255, 255, 0.87);
}

.contact-panel {
    padding: 6em 4em;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.mdl-textfield {
    display: block;
    width: 100%;
    padding: 20px 0;
}

@media screen and (min-width: 800px) {
    .subscribe-button {
        float: right;
    }
}

.address-panel {
    background-color: #dbdef1;
    color: rgba(255, 255, 255, 0.87);
}

.address-panel .material-icons {
    position: relative;
    top: 0.2em;
    display: inline-block;
    height: 30px;
    width: 30px;
    line-height: 30px;
    background-color: #ff4081;
    padding: 0.5em;
    border-radius: 50%;
}

.mdl-mini-footer,
.mdl-mini-footer .mdl-logo,
.mdl-mini-footer--link-list a,
.mdl-mini-footer__link-list a {
    color: rgba(0, 0, 0, 0.54);
}

/* Enhanced mathematical theme styling */
@keyframes mathFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-section .hero-icon {
    animation: mathFloat 6s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Improved general text readability */
body, .mdl-typography--body-1, .mdl-typography--body-2 {
    color: rgba(33, 37, 41, 0.87) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: rgba(33, 37, 41, 0.95);
}

/* Footer contrast improvements */
.mdl-mega-footer {
    background: #232946 !important;
    color: #f3f6fa !important;
}
.mdl-mega-footer__heading {
    color: #e0e6f8 !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.mdl-mega-footer__link-list a {
    color: #b3c7f9 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    transition: color 0.2s;
}
.mdl-mega-footer__link-list a:hover {
    color: #fff !important;
}
.mdl-mega-footer .mdl-logo {
    color: #e0e6f8 !important;
    font-weight: 500;
}
.mdl-mega-footer__bottom-section {
}
.mdl-mega-footer__bottom-section .mdl-mega-footer__link-list a {
    color: #b3c7f9 !important;
}
.mdl-mega-footer__bottom-section .mdl-mega-footer__link-list a:hover {
    color: #fff !important;
}

/* Make burger menu white to match header text */
.mdl-layout__drawer-button {
    color: #fff !important;
}

.mdl-layout__drawer-button .material-icons {
    color: #fff !important;
}
