/* Column layout */
@media only screen and (max-width: 980px) {
    .flex-row {
        flex-direction: column;
        text-align: center;
    }

    header p {
        display: none;
    }

    section#intro {
        height: auto;
        margin-bottom: 0;
    }

    section#intro #logo,
     section#intro #title {
        width: 100%;
        flex: 1;
    }

    section#intro #logo {
        padding: 100px 0 80px 0;
        background-image: url('../images/cutout-mobile.svg');
        background-position: center bottom;
    }

    section#intro #logo div {
        margin: 0 auto;
        width: 180px;
        height: 180px;
    }

    section#intro #title {
        padding: 15px 0 20px 0;
    }

    section#intro .flex-row.actie {
        display: block;
        background-color: #fff;
        padding-bottom: 20px;
        font-style: italic;
    }

    section#intro .flex-row.actie a {
        text-decoration: underline;
        font-weight: 500;
    }

    div.accordion {
        max-width: 100%;
    }
}

/* Show 'How it works' blocks horizontal on smaller desktop screens/tablet */
@media only screen and (max-width: 980px) and (min-width: 780px) {
    section#how-it-works .flex-column {
        flex-direction: row;
        padding-top: 0;
        margin-top: 30px;
        padding-left: 90px;
    }

    section#how-it-works .flex-column:first-of-type {
        margin-top: 0;
    }

    section#how-it-works .flex-column img {
        width: 180px;
        height: auto;
        margin-top: 0;
        margin-left: -150px;
    }

    section#how-it-works .flex-column .cell {
        display: flex;
        flex-direction: row;
    }

    section#how-it-works .flex-column .cell p {
        margin-left: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Small screens */
@media only screen and (max-width: 780px) {
    section {
        padding: 0 30px;
        margin-bottom: 30px
    }

    div.accordion {
        max-width: 100%;
    }

    section#how-it-works h2 {
        margin-bottom: 0;
    }

    section#how-it-works .flex-column:first-of-type {
        margin-top: 0;
    }

    section#how-it-works .flex-column {
        padding-top: 100px;
    }

    section#how-it-works .cell img {
        height: 120px;
        margin-top: -100px;
        margin-bottom: 10px;
    }


}

/* Mobile phones */
@media only screen and (max-device-width: 500px) and (orientation: portrait) {
    html,
    body {
        font-size: 0.8rem;
    }

    h2 {
        margin-bottom: 15px;
    }

    header {
        padding: 10px;
    }

    header .button {
        display: none;
    }

    section {
        margin-bottom: 20px;
    }

    section#intro #logo {
        padding-top: 80px;
    }

    section#intro #title svg {
        height: 15px;
        margin: 0 auto 15px auto;
    }

    section#intro #logo div {
        width: 150px;
        height: 150px;
    }

    section#intro #title > *,
    section#how-it-works .flex-row{
        max-width: 100%;
    }

    .flex-row.actie p {
        font-size: 1rem;
    }

    section#donation-counter {
        height: 200px;
    }

    section#donation-counter #counter {
        font-size: 3rem;
    }

    section#donation-counter #counter:before {
        width: 100px;
        height: 60px;
    }

    section#donation-counter #counter:after {
        width: 80px;
        height: 56px;
        top: 0px;
        left: -25px;
    }

    section#how-it-works {
        margin-bottom: 30px;
    }

    section#how-it-works .flex-column {
        padding-top: 65px;
    }

    section#how-it-works .cell img {
        height: 90px;
    }

    div.accordion .panel {
        margin-bottom: 15px;
    }

    div.accordion .panel h3,
    div.accordion .panel .content {
        padding: 10px;
    }

    div.accordion .panel .content {
        font-size: 1rem;
    }

    footer p {
        font-size: 1rem;
    }
}

