/* Global */

@font-face {
    font-family: 'CamphorPro-Bold';
    src:  url(../fonts/CamphorPro-Bold.woff2) format('woff2'),
            url(../fonts/CamphorPro-Bold.woff2) format('woff');
}

* {
    box-sizing: border-box;
}

html {
    color: #222;
    font-size: 5vw;
    line-height: 1.4;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
    background-color: #222;
}

p {
    font-family: 'CamphorPro-Bold';
    color: #222;
    font-size: 5vw;
    line-height: 1.4;
}

body {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #eee;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

.unselectable {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

@media screen and (min-width: 420px) {
    html {
        font-size: 21px;
    }
    p {
        font-size: 21px;
    }
}



/* Sections */

.main {
    width: 100vw;
    height: 100vh;
    max-width: inherit;
}

.background-first-half {
    height: 50%;
    background: linear-gradient(0deg, rgba(50,74,140,1) 0%, rgba(200,162,230,1) 100%);
}

.background-second-half {
    height: 50%;
    background-color: #eee;
}

.landing-page {
    position: absolute;
    top: 0;
    width: 100%;
    max-width: inherit;
    margin-left: auto;
    margin-right: auto;
}

.postcard-page {
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    max-width: inherit;
    margin-left: auto;
    margin-right: auto;
}



/* Hashtag */

.hashtag {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 11.9vw;
    margin-top: 7.1vw;
    pointer-events: none;
}

@media screen and (min-width: 420px) {
    .hashtag {
        height: 50px;
        margin-top: 30px;
    }
}

/* Card */

.card-container {
    margin-left: auto;
    margin-right: auto;
    margin-top: 7.1vw;
    margin-bottom: 7.1vw;
}

.card {
    background-color: white;
    width : 87%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.35);
    -moz-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.35);
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.35);
}

.card-header {
    position: relative;
}

.card-header img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    pointer-events: none;
    vertical-align: middle;
}

.card-header p {
    position: absolute;
    width: 100%;
    top: 67.5%;
    text-align: center;
    color: white;
    transform: translateY(-50%);
    padding: 5vw;
    line-height: 1.3;
}

@media screen and (min-width: 420px) {

    .card-container {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .card-header p {
        padding: 21px;
    }
}



/* Category Buttons */

.buttons-container {
    position: relative;
    padding-top: 7.1vw;
    padding-bottom: 7.1vw;
    text-align: center;
    height: auto;
}

.button-category {
    height: 30vw;
    width: 30vw;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(0deg, rgba(50,74,140,1) 0%, rgba(200,162,230,1) 100%);
    font-family: 'CamphorPro-Bold';
    font-size: 3.7vw;
    text-align: center;
    color: white;
    padding: 2vw;
    margin: 3vw;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    transition: transform .2s;
}

.button-category:visited {
    transform: scale(1);
}

.button-category:hover, .button-category:active {
    transform: scale(1.05);
}

.button-category-1 {
    transform: translate(-5vw, -2vw);
}

.button-category-2 {
    transform: translate(5vw, 2vw);
}

.button-category-3 {
    transform: translate(0vw, 0vw);
}

.button-category-4 {
    transform: translate(5vw, 4vw);
}

.button-category-5 {
    transform: translate(0vw, 0vw);
}

@media screen and (min-width: 420px) {

    .buttons-container {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .button-category {
        height: 126px;
        width: 126px;
        padding: 8.5px;
        margin: 12.5px;
        font-size: 15.7px;
    }
    .button-category-1 {
        transform: translate(-21px, -10px);
    }
    .button-category-2 {
        transform: translate(21px, 8px);
    }
    .button-category-3 {
        transform: translate(0px, 0px);
    }
    .button-category-4 {
        transform: translate(21px, 16px);
    }
    .button-category-5 {
        transform: translate(0px, 0px);
    }
}



/* Postcard */

.category-heading{
    top: 62% !important;
    font-size: 8vw;
}

.postcard-container {
    position: relative;
}

.postcard-container img {
    width: 100%;
    height: auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    pointer-events: none;
    vertical-align: middle;
}

@media screen and (min-width: 420px) {
    .category-heading {
        font-size: 34px;
    }
}



/* CTA buttons */


.tweet-button {
    display: block;
    border-radius: 30px;
    width: 160px;
    margin: 5vw auto 3vw auto;
    padding: 0.5em 0.5em;
    background-image: linear-gradient(90deg, rgba(50,74,140,1) 0%, rgba(200,162,230,1) 100%);
    border: 0px;
    color: white;
    font-family: 'CamphorPro-Bold';
    font-size: 4vw;
    text-align: center;
    text-decoration: none;
    user-select: none;
    transition: transform .2s;
}

.tweet-button:visited {
    transform: scale(1);
}

.tweet-button:hover, .tweet-button:active {
    transform: scale(1.05);
}


.play-again-button {
    display: block;
    border-radius: 30px;
    width: 120px;
    margin: 0 auto 12px auto;
    padding: 0.5em 0.5em;
    background-color: transparent;
    border: solid 0px #fff;
    color: rgba(50,74,140,1);
    font-family: 'CamphorPro-Bold';
    font-size: 3vw;
    text-align: center;
    text-decoration: none;
    user-select: none;
    transition: transform .2s;
    margin-bottom: 5vw;
}

.play-again-button:visited {
    transform: scale(1);
}

.play-again-button:hover, .play-again-button:active {
    transform: scale(1.05);
}

@media screen and (min-width: 420px) {
    .tweet-button {
        font-size: 17px;
        margin: 20px auto 12px auto;
    }
    .play-again-button {
        font-size: 12.5px;
        margin-bottom: 21px;
    }
}


/* Dark theme */

@media (prefers-color-scheme: dark) {
    
    html {
        color: white;
        background-color: white;
    }

    p {
        color: white;
    }
}