@font-face { font-family: 'STHeiti';     src: url('fonts/STHeitiUISC-Light.ttf') format('truetype'); }
@font-face { font-family: 'AlbertSans';  src: url('fonts/AlbertSans-Regular.ttf') format('truetype');}
@font-face { font-family: 'Caveat';      src: url('fonts/Caveat-Regular.ttf') format('truetype');}



[lang=en] .header1-font {
    font-family: Caveat;
    font-size: 20pt;
}

[lang=zh] .header1-font {
    font-family: STHeiti;
    font-size: 16pt;
}

.star {
    position: absolute;
    background-image: url(images/plus_icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    height: 1.5em;
    width: 1.5em;
}

.star1 {
    height: 1.9em;
    width: 1.9em;
    left: calc(50vw - 9em);
    margin-top: -1em;
}

.star2 {
    left: calc(50vw + 7em);
    margin-top: -2em;
}

[lang=en] * {
    font-family: AlbertSans;
    color: white;
}

[lang=zh] * {
    font-family: STHeiti;
    color: white;
}

body {
    background-color: #123129;
    background-image: url(images/bg.jpg);
    background-repeat: repeat-x;
    background-position: 0em bottom;
    background-size: 40em auto;
    height: 100vh;
    overflow: hidden;
    padding: 0;
    margin: 0;

    transition: 
        background-position 0.25s ease-out,
        background-size 0.25s ease-out;
    
}

body.rejected {
    background-position: -30em bottom;
    background-size: 67em auto;
}

body.accepted {
    background-position: -50em bottom;
    background-size: 67em auto;
}

body.hidden > * {
    display:none;
}

input[type=button], input[type=submit], button {
    background: white;
    border: none;
    color: #ffc255;
    font-weight: bold;
    font-size: 16pt;
    padding: .7em 0;
    border-radius: 2em;
    width: 100%;
    transition: background-color 0.5s;
    cursor:pointer;
}

button {
    padding: .4em 0;
    width: 12em;
    margin-bottom: 1em;
}
.yellow {
    color: #ffc255;
}

.spinner {
    animation: spin 1s steps(8, end) infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


button#chooseBtn {
    background-color: transparent;
    background-image: url(images/outline.png);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    height: 9em;
    width: 12em;
}

button#chooseBtn > img {
    width: 3em;
    margin-bottom: 1em;
}

button#chooseBtn > p {
    font-size: 14pt;
}

button > p {
    padding: 0;
    margin: 0;
}

button > .subtext {
    font-size: 10pt;
}

input[type=button]:disabled,  button:disabled{
    background-color: initial !important;
    cursor: initial;
    border: 1px solid gray;
}

a {
    color: #f4e9fe;
}


#landing-page {
    text-align: center;
    margin: auto;
    margin-top: 6em;
    max-width: 40em;
}

.logo {
    margin-top: 1em;
    margin-left: 1em;
    width: 8em;
}


#landing-page > input {
    width: 22%;
    padding: 0.4em 0;
}

#footer {
    color: #999;
    position: fixed;
    width: 100%;
    bottom: 10em;
    text-align: center;
    font-size: 8pt;
    z-index: -1;
    transition: bottom 0.25s ease-out;
}

body.accepted #footer, body.rejected #footer {
    bottom: 15em;
}

.label-parent {
    margin-top: 1em;
}

.label:after {
    content: ": ";
}
.label {
    color: #999;
}
