html {
    font-family: Kanit;
    font-size: calc(14px + 8 * ((100vw - 500px)/ 1500));
    font-weight: 200;
}

html, body, main {
    height: 100%;
    margin: 0;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

main {
    opacity: 0;
    background-size: cover;
    background-attachment: fixed;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation-duration: 1s;
    height: 100vh;
    width: 100vw;
    overflow: scroll;
}

.tumbleweed {
    background-image: url('images/tumbleweed_large_bw.jpg');
}

.footer {
    color: orange;
    background-color: #4a7890;
    padding: 0.5%;
    text-align: center;
}

.footer h1 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer span {
    font-size: 1rem;
    color: white;
}

.content-wrapper {
    position: absolute;
    z-index: 5;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.info, .title {
    position: static;
}

.info, .q {
    height: initial;
    width: initial;
}

.q {
    position: relative; 
    min-height: 14rem;
}

.content-background {
    position: relative;
    width: 97%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    transform-origin: top;
    background-color: white;
}

.title .content-background,
.headline .content-background,
.quote .content-background {
    background-color: transparent;
}

.title.content-wrapper,
.headline.content-wrapper,
.quote.content-wrapper {
    background-color: transparent;
}

.quote .content-background {
    animation-duration: 6s;
}

.content-header {
    border-bottom: 0.4rem solid #4a7890;
    width: 98%;
    align-items: center;
    border-radius: 5px;
}

.content-header h2 {
    color: orange;
    font-size: 1.75rem;
    font-weight: 400;
    margin-left: 1%;
}

.quote .content-background, .title .content-background {
    align-items: center;
}

.content {
    color: white;
    font-size: 1.2rem;
    padding-left: 10px;
    padding-right: 10px;
}

.twitter .content {
    display: flex;
    justify-content: center;
}

.twitter twitter-widget {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.info .content, .q .content {
    color: black;
}

.q.quote .content {
    color: orange;
}


.q .content {
    max-width: 90%;
    font-size: 1rem;
}

.headline .content {
    padding: 1rem;
}

.headline .content-background {
    animation-duration: 2.5s;
}

.info .content-background {
    animation-duration: 0.5s;
}

.title .content-background {
    animation-duration: 1s;
}

.q .content-background {
    animation-duration: 1s;
}

.quote.q .content-background {
    animation-duration: 6s;
}

.quote .content, .headline .content {
    font-weight: 400;
    color: orange;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
}

.quote .content p:last-child, .headline .content p:last-child {
    font-weight: 200;
}

.title .content p {
    font-size: 3rem;
    color: orange;
    font-weight: 400;
}

.headline .content p {
    margin: 0;
}

.headline-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
}

.quoted {
    font-style: italic;
}

a {
    color: #4a7890;
    font-weight: bold;
}

a:visited {
    color: #4a7890;
    font-weight: bold;
}

.news p {
    margin-bottom: 0;
}

.news p:last-child {
    margin-bottom: 1.5rem;
}

.paper {
    margin-top: 0.5rem;
}

.img-blk {
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-left: 1.75rem;
    padding-top: 1.75rem;
}

.img-blk img {
    width: 100%;
    height: auto;
}

.img-blk-row {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.img-wrp {
    position: relative;
    max-width: 28rem;
    flex: 1;
    border: 2px solid #fff;
    border-radius: 5px;
    border-collapse: collapse;
    font-size: 0;
}

.img-wrp img {
    border-radius: 5px;
}

.img-oly {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity linear 0.25s;
    border-radius: 5px;
}

.img-oly-btn {
    position: absolute;
    top: 0;
    margin: 0.5rem;
    padding: 0.3rem;
    background-color: #000;
    border-radius: 1rem;
    transition: opacity linear 0.25s;
}

.img-oly-btn svg {
    width: 0.8rem;
    height: 0.8rem;
    fill: #fff;
}

.img-oly-text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    width: 100%;
    font-size: 0.75rem;
    color: white;
    opacity: 0;
    transition: opacity linear 0.25s;
    border-radius: 5px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.img-oly-text > div {
    text-align: center;
}

.img-wrp:hover .img-oly, .img-wrp:hover .img-oly-text,
.img-wrp-ppl:hover .img-oly, .img-wrp-ppl:hover .img-oly-text {
    opacity: 0.5;
}

.img-wrp:hover .img-oly-text,
.img-wrp-ppl:hover .img-oly-text {
    opacity: 1;
}

.img-wrp:hover .img-oly-btn,
.img-wrp-ppl:hover .img-oly-btn {
    opacity: 0;
}

.fade-in-out {
    animation-name: fade-in-out;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.opaque {
    animation-name: opaque;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.fade-in {
    animation-name: fade-in;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width:100%;
    color: black;
    opacity: 0;
    transition: opacity 3s ease 1s;
}

.tumbleweed-loading {
    height: 4rem;
    width: 4rem;
    animation-name: spin;
    animation-timing-function: linear;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.loading-opaque {
    opacity: 1;
}

.tumbleweed-loading svg {
    height: 100%;
    width: 100%;
}

.hidden {
    display: none;
}

@keyframes fade-in-out {
    0% { 
        opacity: 0.01;
        transform: translateY(-20%);
    }
    25% { 
        opacity: 1;
        transform: translateY(0);
    }
    80% { 
        opacity: 1;
        transform: translateY(0);
    }

    100% { 
        opacity: 0.01;
        transform: translateY(-20%);
    }
}

@keyframes fade-in {
    0% { 
        opacity: 0.01;
    }
    100% { 
        opacity: 1;
    }
}

@keyframes opaque {
    0% { 
        opacity: 0.01;
    }
    1% {
        opacity: 1;
    }
    100% { 
        opacity: 1;
    }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 930px) {
    .img-blk {
        float: none;
        padding-left: 0;
    }

    .img-wrp {
        max-width: initial;
    }

    .twitter .content {
        flex-direction: column;
        align-items: center;
    }
}
