/* Tmini App Landing Page Styles */

/* Base Styles */
html {
    font-size: 62.5%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1;
}

body {
    font-size: 2rem;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 2rem; }

a:link, a:hover, a:visited, a:active {
    color: #1d63ea;
    text-decoration: none;
}

/* Layout */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.imageWrapper {
    height: 714px;
    background: linear-gradient(rgba(54, 59, 61, 0.8), rgba(54, 59, 61, 0.8)), url("assets/headerimage.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    border-radius: 0px 0px 40px 40px;
}

.headerBackground {
    height: 115px;
    background-color: rgba(0, 0, 0, 0.1);
}

.container {
    display: grid;
    margin: auto;
    max-width: 1170px;
    padding-left: 15px;
    padding-right: 15px;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 115px 876px auto auto;
    grid-column-gap: 30px;
    grid-template-areas:
        "h h h h h h h h h h h h"
        "p p p p p i i i i i i i"
        "c c c c c c c c c c c c"
        "f f f f f f f f f f f f";
}

/* Header */
header {
    grid-area: h;
    display: flex;
    margin-right: -15px;
}

.logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 115px;
    margin-right: 30px;
}

.logo > p {
    color: #fff;
    white-space: nowrap;
    display: flex;
    font-weight: bold;
    margin-left: 15px;
}

.headerIcon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

/* App Info */
.appInfo {
    grid-area: i;
    display: flex;
    flex-wrap: wrap;
    padding-top: 140px;
    align-content: flex-start;
}

.appIconShadow {
    display: flex;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.1)) drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
}

.appIconLarge {
    width: 120px;
    height: 120px;
    border-radius: 26px;
}

.appNamePriceContainer {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    margin-left: 30px;
}

.appName {
    color: #fff;
}

.appPrice {
    color: #fff;
    font-weight: normal;
    margin-top: 13px;
}

.appDescriptionContainer {
    font-size: 2.5rem;
    font-weight: normal;
    width: 100%;
    align-items: flex-start;
    margin-top: 45px;
    flex: 0 1 auto;
    line-height: 1.5;
}

.appDescription {
    color: #fff;
}

.downloadButtonsContainer {
    display: inline-block;
    margin-top: 42px;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.1)) drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
}

.appStore {
    height: 75px;
}

/* iPhone Preview */
.iphonePreview {
    grid-area: p;
    background-image: url("assets/black.png");
    background-size: 400px auto;
    background-repeat: no-repeat;
    margin-top: 68px;
}

.iphoneScreen {
    width: 349px;
    height: 755px;
    -webkit-clip-path: url(#screenMask);
    clip-path: url(#screenMask);
    margin-left: 26px;
    margin-top: 23px;
    overflow: hidden;
}

.iphoneScreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features */
.features {
    grid-area: c;
    display: flex;
    flex: 0 1 auto;
    align-content: flex-start;
    justify-content: flex-start;
    flex-grow: 1;
    flex-wrap: wrap;
    margin-top: 93px;
}

.feature {
    display: flex;
    align-items: flex-start;
    padding-top: 63px;
    padding-left: 15px;
    padding-right: 15px;
    width: calc(100%/3);
}

.feature:nth-child(-n+3) {
    padding-top: 0px;
}

.feature:nth-child(3n) {
    padding-right: 0px;
}

.feature:nth-child(3n+1) {
    padding-left: 0px;
}

.iconBack {
    color: #e6e6e6;
}

.iconTop {
    color: #1d63ea;
}

.featureText {
    margin-left: 18px;
    flex: 1;
}

.fa-stack {
    flex-shrink: 0;
}

.featureText > h3 {
    color: #000;
}

.featureText > p {
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* Footer */
footer {
    grid-area: f;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footerText {
    color: #666;
    display: block;
    line-height: 1.5;
    width: 100%;
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.footerIcons {
    padding-bottom: 70px;
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
}

.footerLinks {
    display: flex;
    text-align: center;
    padding-bottom: 70px;
}

.footerLinks a {
    margin-right: 30px;
}

.footerLinks a:last-child {
    margin-right: 0px;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .headerBackground {
        height: 80px;
    }
    .container {
        grid-template-rows: 80px 811px auto auto;
    }
    .logo {
        height: 80px;
        margin-right: 0px;
    }
    .logo > p {
        display: none;
    }
}

@media only screen and (max-width: 992px) {
    .container {
        grid-column-gap: 0px;
        grid-template-columns: 1;
        grid-template-rows: 115px auto auto auto auto;
        grid-template-areas:
            "h h h h h h h h h h h h"
            "i i i i i i i i i i i i"
            "p p p p p p p p p p p p"
            "c c c c c c c c c c c c"
            "f f f f f f f f f f f f";
    }
    .appInfo {
        padding-top: 50px;
        justify-content: center;
    }
    .appNamePriceContainer {
        width: 100%;
        margin-left: 0px;
        align-items: center;
        justify-content: center;
    }
    .appName {
        margin-top: 30px;
        text-align: center;
    }
    .appPrice {
        margin-top: 13px;
        text-align: center;
    }
    .appDescription {
        text-align: center;
    }
    .downloadButtonsContainer {
        text-align: center;
    }
    .iphonePreview {
        display: flex;
        background-size: 260px auto;
        background-position: center 0;
        margin-top: 47px;
        justify-content: center;
        padding-bottom: 75px;
    }
    .iphoneScreen {
        width: 226px;
        height: 488px;
        margin: 0px;
        margin-top: 17px;
        overflow: hidden;
    }
    
    .iphoneScreen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .features {
        flex-grow: 1;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 11px;
    }
    .feature {
        display: flex;
        align-items: flex-start;
        padding-top: 41px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }
    .feature:nth-child(-n+3) {
        padding-top: 41px;
    }
    .feature:nth-child(1) {
        padding-top: 0px;
    }
    .feature:nth-child(3n) {
        padding-right: 15px;
    }
    .feature:nth-child(3n+1) {
        padding-left: 15px;
    }
}

.hidden {
    display: none;
}