img {
    image-rendering: auto;
}

h1, h2 {
    font-weight: 300;
}

h2 {
    font-size: 170%;
}

.btn {
    border: none;
    background-color: #FFFFFF;
    border-radius: .4rem;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    color: #000000;
    cursor: default;
    font-size: 80%;
    min-height: 5vmin;
    line-height: 4vmin;
    margin: 0.2rem 0;
    outline: 0;
    padding: 0.2rem 1rem;
    text-align: center;
    text-decoration: none;
    -webkit-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
    white-space: nowrap;
}

.btn-primary {
    background-color: #69a89b;
    color: white;
    font-size: 125%;
    line-height: 6vmin;
    min-height: 7vmin;
    padding: 0.5rem 3rem;
}

.btn:hover {
    opacity: 0.9;
    -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

.link {
    background: none;
    border: none;
    color: #594f4f;
    font-size: 1rem;
    outline: none;
    text-decoration: underline;
}

.link:hover {
    cursor: pointer;
}

.page {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 2.5vmin;
    height: 99vh;
    overflow: hidden;
    width: 100%;
}

.popin-overlay {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    height: 100vh;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 10;
}

.popin {
    background-color: white;
    min-height: 210px;
    min-width: 600px;
    padding: 1rem 2rem;
    position: relative;
}

.popin-title {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.popin-close {
    cursor: pointer;
    height: 20px;
    right: 0;
    position: absolute;
    top: 0;
    width: 20px;
    z-index: 11;
}

.popin-close:after {
    bottom: 2px;
    color: gray;
    content: '\2715';
    font-size: 0.8rem;
    left: 6px;
    position: absolute;
}


/*************** FIRST PAGE ***************/

.tea-ebook {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 58vh;
    margin: 0 2rem;
    width: 100%;
}

.description {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-top: 1rem;
    width: 100%;
}

.description-title {
    font-size: 200%;
    margin: 0 0 1rem 0;
}

.description-logos {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.description-logos > * {
    margin-right: 1rem;
}

.logo {
    width: 6vw;
}

.logo-tea {
    width: 11vw;
}

.description-logos .logo {
    width: 4vw;
}

.devices {
    height: 20vw;
    margin: 2rem;
    position: relative;
    min-width: 28vw;
}

.devices > * {
    background-size: cover;
    position: absolute;
}

.device-mac {
    background-image: url(/assets/apple_imac.png);
    left: 0;
    top: 0;
    height: 17vw;
    width: 22vw;
    z-index: 1;
}

.device-mac > img {
    position: relative;
    height: 67%;
    left: 4%;
    top: 6%;
    width: 92%;
}

.device-laptop {
    background-image: url(/assets/dell_xps.png);
    bottom: 0;
    right: 0;
    height: 10vw;
    width: 19vw;
    z-index: 2;
}

.device-laptop > img {
    position: relative;
    height: 80%;
    left: 12.7%;
    top: 4.5%;
    width: 74.5%;
}

.banner {
    background-color: #edece8;
    display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    height: 40%;
    margin-top: auto;
    padding: 1rem;
    width: 100%;
}

.banner-title {
    color: #594f4f;
    margin: 0 0 2rem 0;
}

.centered-banner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.downloads {
    width: 70%;
}

.backlog {
    width: 20%;
    font-size: .6em;
    color: #594f4f;
}
.backlog ul { padding-left: 1em;}
.backlog li {padding: 0;}

.downloads {
    height: 42vh;
}

.downloads .banner-title {
    margin: 3vh 0 7vh 0;
}

.download-button-tip {
    font-size: 0.8rem;
    color: gray;
}

.btn-download-popin {
    margin-top: 3vh;
}

.download-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    height: 100%;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    width: 100%;
}

.download-os {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    margin: 0 0.5rem;
    width: 33%;
}

.download-os-logo {
    height: 30px;
    margin-bottom: 1rem;
}

.download-os-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.download-link {
    color: #69a89b;
    font-size: 1rem;
    padding-left: 0.5rem;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.download-link:hover {
    text-decoration: underline;
}

.download-link:before {
    content: '\2193';
    position: relative;
    left: -0.5rem;
    top: -0.1rem;
}

.download-notes {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 0.8rem;
    font-style: italic;
    list-style: none;
    margin: 0;
    padding: 0;
}


@media (max-width: 630px) {
    .download-popin .popin {
        min-width: inherit;
        width: 100%;
    }

    .download-popin .popin-title {
        font-size: 4.5vw;
        text-align: left;
    }

    .download-os {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .download-os-details {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .download-links {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
}


/*************** SECOND PAGE ***************/

.features {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 70%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 2rem;
    width: 100%;
}

.features .text {
    padding-left: 1rem;
    width: 60%;
}

.features .devices {
    min-height: 66%;
    min-width: 40%;
}

.device-ereader {
    background-image: url(/assets/tl3.png);
    left: 0;
    bottom: 0;
    height: 15vw;
    width: 10vw;
    z-index: 2;
}

.features .device-laptop {
    bottom: 0.5vw;
    left: 0.5vw;
    height: 20vw;
    width: 37vw;
    z-index: 1;
}

.features .device-laptop > img {
    position: relative;
    height: 80%;
    left: 13.3%;
    top: 4.5%;
    width: 75%;
}

.device-tablet {
    background-image: url(/assets/tablet.png);
    bottom: 0;
    right: 0;
    height: 18vw;
    width: 12vw;
    z-index: 2;
}

.device-tablet > img {
    position: absolute;
    height: 81%;
    left: 5%;
    top: 10%;
    width: 90%;
}

.feedback {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    -ms-grid-row-align: flex-start;
    align-items: flex-start;
    height: 30%;
    padding: 2rem 3rem;
}

.feedback-content {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
}

.feedback-content > * {
    margin-top: 1rem;
}

.feedback-content .btn {
    font-size: 100%;
    margin: 0 0 0 2rem;
}

@media screen and (max-aspect-ratio: 5/3) {
    .features .text, .feedback {
        font-size: 2.5vh;
    }
}


/*************** THIRD PAGE ***************/

.first-steps {
    height: 100vh;
}

.first-steps-title {
    font-size: 180%;
}

.steps {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    margin: auto 0;
    width: 100%;
}

.step {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 30%;
}

.step-number {
    border: 3px solid black;
    border-radius: 3rem;
    font-size: 120%;
    height: 6rem;
    line-height: 5.5rem;
    text-align: center;
    width: 6rem;
}

.step-text {
    font-size: 80%;
    text-align: center;
    width: 100%;
}

.step-illustration {
    max-height: 15vw;
    max-width: 15vw;
}
