/* general styles */

*,

*:before,

*:after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

a:focus {
    outline: none;
}

a.download {
    transition: 0.3s;
}

f a.download:hover {
    filter: brightness(110%);
}

html,
body {
    /* sticky footer */
    height: 100%;
}

body {
    font-family: Lato, Helvetica, Arial, sans-serif;
    color: #222;
    /* sticky footer */
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.none {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* layout */

header,
main,
footer {
    margin: 0 auto;
    max-width: 910px;
    /* full width box */
    width: 100%;
}

header {
    display: grid;
    grid-template-columns: 205px 1fr;
    margin-bottom: 40px;
}

footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 125px;
}

main {
    display: grid;
    grid-template-columns: 205px 1fr;
    grid-gap: 30px;
}

main.terms {
    grid-template-columns: 1fr;
}

main.reverse {
    grid-template-columns: 1fr 205px;
}

main.template {
    grid-template-columns: 1fr 205px;
    grid-template-rows: max-content 1fr;
}

aside {
    padding: 100px 0 50px;
}

aside.templates {
    padding: 0;
    margin-top: 48px;
}

.hero {
    grid-column: 1 / -1;
    text-align: center;
}

/* typography */

h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
    color: #5a5959;
    margin: 0;
}

a {
    color: #0cb5e6;
}

a:hover {
    text-decoration: underline;
}

em {
    font-family: monospace, monospace;
    font-size: 90%;
    background-color: #f7f7f9;
    border-radius: .25rem;
    padding: 0.1rem 0.3rem;
    font-style: normal;
}

p {
    line-height: 24px;
    margin-bottom: 1rem;
}

ul {
    list-style-position: outside;
    padding: 0;
}

li {
    line-height: 1.6;
}

h1 {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -0.08rem;
    padding-bottom: 50px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03rem;
    margin-top: 3rem;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.01em
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3rem;
}

p.code {
    padding: 1rem 1.5rem;
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 90%;
    background-color: #f7f7f9;
    border-radius: .25rem;
}

h2.first {
    margin-top: 0;
}

article ul {
    padding: 0 40px;
}

/* main nav */

header ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header ul li {
    list-style-type: none;
    font-size: 16px;
    font-weight: 600;
}

header ul li a,
header ul li a:visited {
    padding: 9px 12px;
    color: #5a5959;
    border-radius: 3px;
}

header ul li a:hover {
    background: #ebebeb;
    color: #5a5959;
    filter: brightness(100%);
    text-decoration: none;
}

header ul li a:active {
    background: #dddddd;
}

header ul li:nth-child(4) a {
    background: #61cae9;
    color: #fff;
}

header ul li:nth-child(4) a:hover {
    background: #51bcda;
    color: #fff;
}

header ul li:nth-child(4) a:active {
    background: #41aecc;
}

/* footer */

.wrapper {
    width: 100%;
    padding: 30px 0 50px;
    margin-top: 50px;
    background: #333333;
}

footer ul {
    list-style: none;
}

footer ul li:first-child {
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #858585;
    font-size: 16px;
}

footer li {
    line-height: 25px;
    margin-left: 0;
}

footer ul a {
    font-weight: 400;
    color: #cccccc;
    font-size: 16px;
}

footer ul a:hover,
footer ul a:focus {
    color: #fff;
}

footer ul.footer-social {
    padding: 0;
}

footer ul.footer-social li {
    display: inline-block;
    margin-right: 7px;
}

footer ul.footer-social li:first-child {
    display: block;
}

footer .footer-social li a:hover,
footer .footer-social li a:focus {
    opacity: 0.8;
}

footer ul li em {
    color: yellow;
    font-size: 12px;
    background-color: yellow;
    color: darkslategray;
    padding: 2px 6px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-family: Lato, Helvetica, Arial, sans-serif;
}

/* template details */

.hero img {
    transition: 0.3s;
    border: 1px solid #ddd;
}

.hero img:hover {
    opacity: 1;
    filter: brightness(110%);
    border: 1px solid #ddd;
}

.hero p a {
    color: #333;
    font-size: 14px;
    display: block;
    margin: 0;
    text-decoration: none;
}

/* aside.templates */

aside.templates a.download {
    padding: 16px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    color: white;
    font-weight: 600;
    text-align: right;
    text-decoration: none;
}

aside.templates a.download:hover {}

aside.templates a.download:active {
    position: relative;
    top: 1px;
}

#free-template-dl {
    background: #30C3A6 url("../img/template/icon-download.png") no-repeat 15px 17px;
}

#template-cms-dl {
    background: #0CB5E6 url("../img/template/99.png") no-repeat 15px 17px;
}

aside ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    margin-bottom: 10px;
}

aside.templates ul {
    background-color: #F9F9F9;
    border-radius: 4px;
    padding: 16px;
    text-align: right;
}

aside ul a,
aside ul li {
    color: #5A5959;
    line-height: 24px;
}

/*  List grid  */

#listGrid {
    display: grid;
    list-style: none;
    grid-template-columns: repeat(3, 290px);
    grid-template-rows: auto;
    grid-gap: 20px;
}

#listGrid li {
    background-color: gray;
    border-radius: 4px;
    color: white;
}

#listGrid li img {}

#listGrid li p {}

ul.summary {
    background-color: #fff;
    border: #63c3e2 solid 2px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 4px;
    margin-top: 0rem;
}

/*     Download page    */

section.pricing {
    width: 910px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 30px;
}

section.pricing > h1 {
    grid-column: 1 / -1;
    text-align: center;
}

section.faq {
    width: 858px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
}

section.faq > h2 {
    grid-column: 1 / -1;
    text-align: center;
}

section.testimonials {
    width: 910px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
}

section.testimonials > h2 {
    grid-column: 1 / -1;
    text-align: center;
}

.price-box {
    border: 1px solid #cccccc;
    padding: 26px;
    text-align: center;
    margin-bottom: 30px;
}

.price-box h6 {
    font: 900 20px Lato;
    color: #5a5959;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0;
}

.price-box span {
    font: 300 38px/24px 'Lato';
    color: #5a5959;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.price-box p {
    font: 400 16px 'Lato';
    font-style: italic;
    color: #5a5959;
}

/* Black Friday */

.price-box p.price {
    font: 400 36px Lato;
}

.price-box p.price span {
    font: 400 26px Lato;
    color: lightgray;
    text-decoration: line-through;
}

.blackfriday {
    background-color: #333;
    text-align: center;
}

.blackfriday p,

.blackfriday p a {
    color: white;
    font: 900 24px Lato;
    padding: 10px 0;
    margin: 0;
    text-decoration: none;
}

.blackfriday p span {
    color: #FFD500;
}

.price-box ul li {
    font: 400 16px 'Lato';
    color: #5a5959;
}

.price-box hr {
    background: #ccc;
    width: 90%;
    margin: 0.8em auto;
}

.price-box ul {
    list-style: none;
    padding: 0;
}

.price-box ul li {
    margin: 0.8em 0;
}

.price-box .price-text {
    height: 306px;
}

.price-box a {
    background: #61cae9;
    color: #fff;
    font-weight: 600;
    display: block;
    padding: 13px 0px 12px;
    text-decoration: none;
    border-radius: 6px;
}

.price-box a:hover {
    background: #51bcda;
    color: #fff;
}

.price-box a:focus,

.price-box a:active {
    background: #41aecc;
    color: #fff;
}

.download a,

.sitecake-support a,

.sitecake-support a:visited {
    background: #30c3a6;
    cursor: pointer;
}

.download a:hover,

.sitecake-support a:hover {
    background: #1abc9c;
}

.download a:active,

.sitecake-support a:active {
    background: #00a081;
}

.faq {
    padding: 25px 0;
}

.faq p,

.testimonials p {
    font: 400 16px/22px Lato;
}

.testimonials img {
    width: 104px;
    float: left;
    margin-right: 20px;
}

.testimonials blockquote,

.testimonials p {
    font-style: italic;
    margin-left: 120px;
    margin-right: 10px;
    line-height: 1.5;
}

/* Showcase page */

section.showcase-intro {
    text-align: center;
    margin: 0 auto;
    width: 910px;
    padding-bottom: 20px;
}

section.showcase-intro p {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    padding: 30px;
    font-style: italic;
}

section.showcase {
    display: grid;
    grid-template-columns: [start-col] repeat(auto-fit, 400px) [end-col];
    grid-auto-rows: auto;
    grid-gap: 30px;
    justify-content: center;
}

section.showcase a > * {
    /*    border-radius: 6px;*/
    overflow: hidden;
    width: 400px;
    height: 300px;
    /*    border: 1px solid #eee;*/
}

section.showcase a {
    transition: 0.3s;
}

section.showcase a:hover {
    opacity: 1;
    filter: brightness(110%);
}

.showcase-wrapper {
    margin: 0 auto;
    width: 100%;
}

section.showcase *:first-child {
    grid-column: start-col/end-col;
}

/*   Hosting  */

section.host-intro {
    margin: 0 auto;
    width: 910px;
}

section.host-intro h1 {
    text-align: center;
    padding-bottom: 30px
}

section.host-intro p {
    padding: 20px 0;
}

section.hosting {
    margin: 0 auto;
    width: 910px;
    display: grid;
    grid-template-columns: 1fr 180px;
    grid-gap: 30px;
}

/*  templates  */

section.templates-intro {
    margin: 0 auto;
    width: 910px;
}

section.templates-intro p {
    font-style: normal;
    font-size: 17px;
}

section.templates-intro p em {
    text-decoration: underline;
    font-family: Lato, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    background-color: transparent;
}

section.templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, 400px);
    grid-gap: 30px;
    justify-content: center;
    justify-items: center;
    width: 100%;
}

section.templates > * {
    text-align: center
}

section.templates img {
    overflow: hidden;
    width: 400px;
    height: 300px;
    border: 1px solid #eee;
}

section.templates a {
    transition: 0.3s;
}

section.templates a:hover {
    opacity: 1;
    filter: brightness(110%);
}

/*  404  */

section.wrap {
    padding: 100px;
    margin: 0 auto;
    width: 600px;
}

section.wrap > * {
    padding-bottom: 20px;
}

section.wrap ul li {
    display: inline-block;
    padding-right: 10px;
}

section.wrap h2 {
    padding: 40px 0 30px;
    margin: 0;
}

/** responsive styles **/

/** tablet and desktop **/

@media screen and (min-width: 480px) {
    video {
        width: 817px;
        height: 512px;
    }
}

/** mobile **/

@media screen and (max-width: 480px) {
    header,
    main,
    footer {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    header {
        margin-bottom: 20px;
    }

    img,
    iframe {
        max-width: 100%;
        height: auto;
    }

    video {
        width: 100%;
        height: auto;
    }

    aside {
        order: 2;
        text-align: left;
        width: 205px;
        padding: 50px 0 0;
    }

    article {
        word-break: break-all;
    }

    /* main nav */
    header ul {
        position: relative;
        left: -12px;
        margin: 0;
        display: inline-block;
    }

    header ul li,
    header ul li a {
        display: inline-block;
    }

    /* footer */

    .wrapper {
        padding: 20px 0;
    }

    /* template details */
    aside.templates ul {
        text-align: left;
    }

    /* typography */
    h1 {
        font-size: 2rem;
        letter-spacing: -0.01rem;
        padding-bottom: 1rem 0;
    }

    h2 {
        letter-spacing: -0.01rem;
        margin: 1rem 0;
    }

    p.code {
        word-break: break-all;
    }

    /*  download  */
    section.pricing,
    section.faq,
    section.testimonials {
        display: flex;
        flex-direction: column;
        padding: 20px;
        width: 100%;
    }

    /*  showcase  */
    section.showcase-intro {
        width: 100%;
        padding: 20px;
    }

    section.showcase {
        display: flex;
        flex-direction: column;
    }

    section.showcase a > * {
        width: 100%;
        padding: 10px 20px;
        border: none;
    }

    section.host-intro {
        width: 100%;
        padding: 20px;
    }

    section.host-intro h1 {
        text-align: left;
        padding: 0 0 20px;
    }

    section.host-intro p {
        padding: 0;
    }

    section.hosting {
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    section.hosting h4 {
        padding: 20px 0 0;
    }

    /*   templates  */
    section.templates-intro {
        width: 100%;
        text-align: left;
        padding: 0 20px;
    }

    section.templates-intro p {
        margin: 0;
        padding: 0;
    }

    section.templates {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 20px;
    }

    section.templates img {
        width: 100%;
        height: auto;
    }

    /* 404 & misc */
    section.wrap {
        padding: 50px 20px;
        width: 100%;
    }
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.lang-selector span {
    font-weight: 700;
    color: #858585;
    font-size: 16px;
}
.lang-selector a {
    font-weight: 400;
    color: #cccccc;
    font-size: 16px;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    transition: 0.2s;
}
.lang-selector a:hover {
    color: #fff;
}
.lang-selector a.active {
    color: #fff;
    font-weight: 700;
}

