* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-weight: 100;
    margin: 0;
    padding: 0;
}

h2 {
    font-weight: 100;
}

.splash {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    display: flex;
    padding: 0 20px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.header a {
    text-decoration: none;
    color: inherit;
}

.header > div {
    padding: 20px;
}

.logo {
    opacity: 0.6;
}

.spacer {
    flex: 1;
}

.product {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    width: 300px;
    max-width: 100%;
}

#buy-button {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-left: 40px;
}

#loading {
    width: 300px;
    height: 10px;
    background: whitesmoke;
    position: relative;
    overflow: hidden;
}

#loading-bar {
    height: 100%;
    animation: 1s loading ease-in-out infinite;
    position: absolute;
}

@keyframes loading {
    0% {
        left: -10%;
        width: 10%;
    }
    50% {
        width: 50%;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

.contact {
    width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 40px 20px;
    max-width: 100%;
}

.contact h2 {
    margin-right: 20px;
}

@media (max-width: 700px) {
    .header {
        justify-content: center;
        margin-top: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }

    .header > div {
        padding: 10px;
    }

    .header a {
        text-decoration: none;
        color: inherit;
    }

    .header .spacer {
        display: none;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .product {
        display: block;
    }

    .product-image {
        text-align: center;
    }

    .contact {
        border-top: 1px solid #ddd;
        /*align-items: flex-start;*/
    }

    .contact h2 {
        margin: 0;
        margin-right: 20px;
    }

    #buy-button {
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }
}
