/***
* Wiggles App - an iOS app for seismic stations
*
* Copyright (c) Daniel Peter
***/

:root {
    --primary: #007AFF; /* Keep Wiggles blue */
    --primary-dark: #0063CC;
    --primary-logo: #FFF;
    --background: #CCC;
    --text: #1D1D1F;
    --text-light: #86868B;
    --header-bgcolor: #1323a1;
    --features-bgcolor: #FFF;
}

/* -------------------------------------------------------------

reset

------------------------------------------------------------- */

html, body, div, span, applet, object, iframe, canvas,
header, footer, section,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
table, caption, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    outline: 0;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
}

html {
    /* Keeps page centered in all browsers regardless of content height */
    overflow-y: scroll;
    /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
    -webkit-text-size-adjust: 100%;
    /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
    -ms-text-size-adjust: 100%;
    height: 100%;
}

body,html {
    background-color: var(--background);
    /*overflow: hidden;*/
    height: 100%;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell;
    /*font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
    font-weight: normal;
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#canvasBackground {
    /*position: absolute;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    /*min-height: 100px;*/
    /*z-index: -1;*/
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    color: var(--text);
}

header {
    padding: 10px 10px;
    /*border-bottom: 1px solid rgba(0,0,0,0.05);*/
    /*margin-bottom: 4rem;*/
    background: var(--header-bgcolor);
    vertical-align: center;
    /*display: flex;*/
}

#title-section {
    position: relative;
    padding: 0 10px;
    overflow: visible;
    z-index: 2;
}

.title-image {
    position: absolute;
    right: 0;
    padding: 10px 20px;
    top: -20px;
    /*transform: translateY(-50%);*/
    width: 300px;
    z-index: 3;
    /*box-shadow: 0 20px 40px rgba(0,0,0,0.2);*/
    border-radius: 60px;
    overflow: hidden;
}

#features-section {
    color: var(--text);
    padding: 0;
}

.imagetext {
    display: flex;
    align-items: center;
}

.kofi {
    position: absolute
    left: 0px;
    top: 0px;
    width: 300px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #908888;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

section {
    padding: 5rem 0;
}

h1, h2, h3 {
    font-weight: 600;
    margin: 0 0 1rem;
    color: #FFF;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    /*color: var(--primary);*/
}

h3 {
    font-size: 1.25rem;
    color: var(--text-light);
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--text-light);
    margin: 1em 0;
    padding: 0;
}

.app-store-button {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.app-store-button img {
    height: 50px;
    transition: transform 0.2s;
}

.app-store-button:hover img {
    transform: scale(1.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    color: var(--text-light);
    padding: 2rem 5px;
    background: var(--features-bgcolor);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item p {
    color: var(--text-light);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

footer {
    padding: 1rem 0;
    /*border-top: 1px solid rgba(0,0,0,0.05);*/
    /*margin-top: 5rem;*/
    text-align: center;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--primary);
}

footer a svg {
    position: relative;
    top: 4px;
}

footer a:hover svg {
    fill: var(--primary);
}


.legal-links {
    margin-top: 1.5rem;
}

.legal-links a {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

