/* Citation */
.citation {
    display: inline-block;
    top: 0px;
    margin-left: 12px;
}

/* Spinner Text */
body {
    font-family: "Source Sans Pro", sans-serif;
    margin: 0;
    padding: 0;
    background: white;
}

  
.container {
    padding: 20px;
    margin: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: white;
    margin-bottom: 30px;
    justify-content: center;
    width: 100%;
    max-width: 65%;
    display: flex;
    flex-direction: row;
}

@media only screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
        max-width: none;
    }
    #author {
        width: 90%;
    }
}

.news-container {
    max-height: 40vh;
    overflow-y: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #333;
}

/* Button Background */
.btn-primary {
    background: white;
    border-color: white;
}

.btn-primary:hover {
    background: white;
    border-color: white;
}

img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
}

em {
    font-style: italic;
    color: black;
}

.api-appstore {
    text-align: center; 
    margin-bottom: 20px;
    bottom: 10px;
}

.spinner {
    position: relative;
    overflow: hidden;
    left: 35%;
}

/* The spinner is hard to center as the length of the text are changing all the time, so we use the left margin to mimic a close-to-centering effect. */
@media (max-width: 1024px) and (min-width: 768px) {
    .spinner {
        left: 25%; 
    }
}

@media (max-width: 768px) {
    .spinner {
        left: 15%;
    }
}

@media (max-width: 380px) {
    .spinner {
        left: 15%; 
    }
}

.spinner__text {
    position: relative;
    display: inline-block;
    text-align: center;
}

.spinner__text--top,
.spinner__text--bottom {
    display: inline-block;
    animation: 1s ease 1s infinite;
}

.spinner__text--top {
    animation-name: spinTop;
}

.spinner__text--bottom {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation-name: spinBottom;
    
}


@keyframes spinTop {
    from {
        transform: translateY(0%);
    }

    to {
        transform: translateY(-100%);
    }
}

@keyframes spinBottom {
    from {
        opacity: 1;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0%);
    }
}

.spinner-small-text-style {
    font-size: 26px;
}
.spinner-big-text-style {
    font-size: 30px;
}

@media screen and (max-width: 768px) {
    .spinner-small-text-style {
        font-size: 18px;
    }
    .spinner-big-text-style {
        font-size: 22px;
    }
    .spinner-container {
        /* still keep as row */
        flex-direction: row; 
    }
    
}


pre {
    -webkit-overflow-scrolling: touch;
    background-color: #f5f5f5;
    color: #4a4a4a;
    font-size: 0.875em;
    overflow-x: auto;
    padding: 1.25rem 1.5rem;
    white-space: pre;
    word-wrap: normal;
}

pre code {
    background-color: transparent;
    color: currentColor;
    font-size: 1em;
    padding: 0;
}

code,
pre {
    -moz-osx-font-smoothing: auto;
    -webkit-font-smoothing: auto;
    font-family: monospace;
}

.video-container {
    min-height: 55vh;
    
}

.video-section-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-section-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
