/* vietnamese */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/librefranklin/v13/jizDREVItHgc8qDIbSTKq4XkRiUQ2zcLig.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/librefranklin/v13/jizDREVItHgc8qDIbSTKq4XkRiUR2zcLig.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/librefranklin/v13/jizDREVItHgc8qDIbSTKq4XkRiUf2zc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/librefranklin/v13/jizDREVItHgc8qDIbSTKq4XkRiUQ2zcLig.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/librefranklin/v13/jizDREVItHgc8qDIbSTKq4XkRiUR2zcLig.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/librefranklin/v13/jizDREVItHgc8qDIbSTKq4XkRiUf2zc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sniglet';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/sniglet/v17/cIf9MaFLtkE3UjaJ9CChYVkH.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sniglet';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/sniglet/v17/cIf9MaFLtkE3UjaJ9C6hYQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
	background-color: #fdf6ee;
    margin: 0;
}
#intro {
    margin: 130px auto;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    width: auto;
    text-align: center;
    padding: 10px;   
}
#play-button {
    font-size: 70px;
    border: 4px solid black;
    border-radius: 50px;
    width: auto;
    background-color: #aec2cc;
    cursor: default;
    transition: color 0.2s ease-in;
}
.loading {
  color: transparent !important;
  background-image: url("loader.gif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200px 200px;
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 10px;
    opacity: 50%;
    padding: 0 0 5px 0;
    width: 100%;
}
#sound-container {
    visibility: hidden;
    width: 40px;
    position: absolute;
    bottom: 0;
    left: 50px;
    transition: background-color 0.2s ease-in;
}
#timer-button-container {
    visibility: hidden;
    width: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: background-color 0.2s ease-in;
}

#article {
    display: none;
    background-color: #fff;
    width: auto;
    word-break: normal;
    font-family: "Junge", cursive;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    border: none;
    color: #363636;
    padding: 10px;
    margin: 125px auto 0 auto;
}

#article_body span {
    cursor: crosshair;
}

header { 
    position: fixed;
    top: 0;
    width: 100%;
    border-bottom: 1px solid #d3d6da;
    background-color: white;
}

#header-center {
    font-size: 60px;
    height: 125px;
    text-align: center;
    font-family: 'Sniglet', cursive;
    font-weight: 700;
    text-decoration: underline wavy red 2px;
    text-decoration-skip-ink: none;
    white-space: nowrap;
}



#timer {
    display: none;
    font-size: 35px;
    text-align: center;
    font-family: 'Libre Franklin', sans-serif;
    border: 1px solid #d3d6da;
    border-radius: 5px;
    width: 110px;
    padding: 0 0 5px;
    position: fixed;
    top: 75px;
    right: 5px;
    height: 40px;
    background-color: white;
}

a.disabled {
	pointer-events: none;
}

img {
	width: 100%;
	height: 100%;
}

#caption {
    font-size: 0.9375rem;
    line-height: 1.25rem;
    margin-right: 7px;
}

#credit {
    font-size: 0.75rem;
    display:inline;
    line-height: 1.125rem;
    letter-spacing: 0.01em;
}

#excerpt-heading {
    font-size: 15px;
    text-align: center;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    font-family: "Junge", cursive;
    line-height: 3.125rem;
    text-align: center;
    margin: 0 auto 0.5rem auto;
    width: 600px;
    color: #121212;
}

#article_body {
    width: 600px;
    margin: 0px auto;
}


#byline-container {
    width: 600px;
    margin: 0 auto;
    text-align: center;
}

#last-byline {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    font-family: "Libre Franklin", sans-serif;   
    display: inline-block;
}

#time-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    -webkit-box-pack: justify;
    margin: 0.25rem auto 1.25rem auto;
    width: 600px;
}

time {
    display: inline-block;
    width: auto;
    margin: 0px;
    font-family: "Libre Franklin", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

#article_body p {
    scroll-margin-top: 150px;
    overflow-wrap: break-word;
    font-family: "Junge", cursive;
    margin: 0px 0px 0.9375rem 0px;
    font-size: 1.25rem;
    line-height: 1.875rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1023px) {
    #article_body {
        width: 100%;
        margin: 0px;
    }

    #article_body p {
        margin-left: auto;
        margin-right: auto;
        width: auto;
        max-width: 600px;
    }
}

@media (max-width: 739px) {
    h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
        width: auto;
        max-width: 600px;
    }
    #article-summary {
        font-size: 1.25rem;
        line-height: 1.5625rem;
        margin-bottom: 1.25rem;
        width: auto;
        max-width: 600px;
    }

    #time-container {
        width: auto;
        max-width: 600px;
        margin-bottom: 1.25rem;
    }

    #byline-container {
        width: auto;
        max-width: 600px;
    }

    #article_body p {
        font-size: 1.125rem;
        line-height: 1.5625rem;
        margin: 0 auto 0.78125rem auto;
    }
}

/*@media (max-width: 599px) {
    h1, #article-summary, #time-container, #byline-container, #article_body p {
        margin-left: 20px;
        margin-right: 20px;
    }

}*/

#sheet {
	display: none;
    background: repeating-linear-gradient(white, white 25px, #9198e5 26px, #9198e5 27px);
	width: 300px;
    height: 400px;
	outline: 1px solid lightgray;
    margin-top: 50px;
    position: fixed;
    top: 130px;
    right: -305px;
    font-family: 'Sniglet', cursive;
    transition: transform 0.1s ease-in;
}

#sheet.on, #sheet.correct-on {
    transform: translateX(-305px);
}

#hint-button {
    display: none;
    font-size: 18px;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    outline: 1px solid black;
    border-radius: 10px;
    width: 100px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    overflow: hidden;
    opacity: 30%;
    cursor: default;
    position: fixed;
    top: 82px;
    left: 100px;
    width: 50px;
    transition: color 0.2s ease-in;
}

#hint-bg {
    position: relative;
    height: 100%;
    z-index: -1;
    background-color: lightblue;
}
.hint-load {
    animation: hint-slide 30s linear forwards;
}

@keyframes hint-slide {
    0% {
        transform: translateY(0);
    }
    
    100% {
        transform: translateY(-100%);
    }
}

.animated {
    display: inline-block;
}
#modal-sheet {
    background: repeating-linear-gradient(white, white 25px, #9198e5 26px, #9198e5 27px);
    height: 300px;
    outline: 1px solid lightgray;
    margin: auto;
    font-family: 'Sniglet', cursive;
}
.modal-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
}
.modal-button {
    background-color: #aec2cc;
    border-radius: 100px;
    width: 100%;
    height: 30px;
    margin: 5px;
    text-align: center;
    font-size: 14px;
    line-height: 30px;
    padding: 5px 2px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in, fill 0.2s ease-in;
}

#share-icon {
    vertical-align: middle;
    margin-left: 5px;
}

#modal-timer {
    font-size: 35px;
    border: 1px solid #d3d6da;
    border-radius: 5px;
    width: 110px;
    padding: 0 10px 5px;
    background-color: white;
    margin: auto;
    font-family: 'Libre Franklin', sans-serif;
    text-align: center;
}

.flash {
    animation-name: flashred;
    animation-duration: 1s;
    animation-timing-function: ease-in;
}
@keyframes flashred {
  0%   {color:red;}
  100% {color:black;}
}

.flash-hint {
    animation-name: flashhint;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: 2;
    animation-delay: 0.2s;
}
@keyframes flashhint {
    0% {background-color: rgb(0 0 0 / 25%);}
    100% {background-color: transparent;}
}

.penalty-active {
    animation-name: penalty;
    animation-duration: 1s;
    animation-timing-function: linear;
}
@keyframes penalty {
    0% {visibility: visible; opacity: 1; transform: translateY(0);}
    100% {visibility: hidden; opacity: 0; transform: translateY(-30px);}
}
#penalty {
    font-size: 40px;
    font-family: 'Sniglet', cursive;
    padding-right: 10px;
    position: fixed;
    top: 25px;
    right: 5px;
    height: 40px;
    color: red;
    visibility: hidden;
}
#minutes {
    width: 50px;
    display: inline-block;
    text-align: right;
}
#seconds {
    width: 50px;
    display: inline-block;
    text-align: left;
}

#typos-list,#modal-typos-list {
	position: relative;
	font-size: 18px;
	margin-left: 55px;
	line-height: 27px;
	padding-inline-start: 0px;
}

#typos-list {
    top: 10px;
}
#modal-typos-list {
    top: 3px;
}

#modal-typos-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    list-style-position: inside;
}

.margin {
	width: 49px;
	height: 100%;
}
.l-margin {
 float: left;
 border-right: 2px solid pink;
}

.hole {
 height: 20px;
 width: 20px;
 background-color: #fdf6ee;
 border-radius: 50%;
 position: relative;
 left: 15px;
 border: 1px dotted lightgray;
}
.first-hole {
 top: 30px;
}
.second-hole {
 top: 170px;
}
.third-hole {
 top: 300px;
}
.typo-in-list {
	display: none;
}

.misspelled-in-list {
	color: red;
	text-decoration: line-through;
}

.correct-in-list {
	color: green;
}

.pulse {
	animation: pulse 1s ease-in-out;
}

.shake {
	animation: shake 0.5s;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes shake {
  0% { transform: translate(1px); }
  10% { transform: translate(-1px); }
  20% { transform: translate(-3px); }
  30% { transform: translate(3px); }
  40% { transform: translate(1px); }
  50% { transform: translate(-1px); }
  60% { transform: translate(-3px); }
  70% { transform: translate(3px); }
  80% { transform: translate(-1px); }
  90% { transform: translate(1px); }
  100% { transform: translate(1px); }
}

#modal {
  display: none; 
  position: fixed; 
  z-index: 2; 
  padding-top: 140px;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.2);
}

@media screen and (max-height: 650px) {
    #modal {
        padding-top: 20px;
    }
}

/* Modal Content */
#modal-content {
  background-color: #fdf6ee;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s ease-in, visibility 0s ease-in 1s;
  margin: auto;
  padding: 0 5px;
  border: 1px solid #888;
  border-radius: 5px;
  width: 300px;
  box-shadow: 0 4px 23px 0 rgb(0 0 0 / 20%);
  position: relative;
}
#modal-content.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s ease-in, visibility 0s ease-in 0s;
}

#modal-message {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Libre Franklin', sans-serif;
    line-height: 18px;
    margin: 20px auto 5px auto;
}
#best {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Libre Franklin', sans-serif;
    line-height: 16px;
    margin: 10px auto;
}
#up-down-arrow {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: lightgray;
    width: 15px;
    height: 15px;
    padding: 3px;
    border-radius: 10px;
}

#up-down-arrow:hover {
    background-color: darkgray;
}

.activated {
    outline: 3px solid blue !important;
    opacity: 1 !important;
}

#copied {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translate(-50%, 0);
    pointer-events: none;
    width: max-content;
    background-color: black;
    color: white;
    padding: 13px;
    border: 5px solid white;
    border-radius: 4px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 500ms ease-out, visibility 500ms ease-out;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    font-family: 'Libre Franklin', sans-serif;
    z-index: 2;
}

#copied.visible {
    visibility: visible;
    opacity: 1;
}

#timer-button-container.visible, #sound-container.visible {
    visibility: visible;
}

#paper {
    visibility: hidden;
    width: 40px;
    position: absolute;
    left: 160px;
    bottom: 0;
}

#paper.visible {
    visibility: visible;
}

#paper::before {
    content: var(--typos-total);
    position: absolute;
    top: -6px;
    right: 6px;
    width: auto;
    height: auto;
    font-family: 'Sniglet', cursive;
    font-weight: 800;
    font-size: 18px;
    text-align: right;
    line-height: 18px;
    background-color: #ffffff9e;
}

:root {
    --typos-total: "0";
    scrollbar-gutter: stable;
}

@media screen and (min-width: 985px) {
    .activated:hover, #play-button:hover {
        color: darkgreen;
    }
    .modal-button:hover {
        color:  darkgreen;
        fill: darkgreen;
    }
    #timer-button-container:hover, #sound-container:hover {
        background-color: #f2ebeb;
    }

    #article {
        margin: 130px 305px 1rem auto;
        width: 620px;
        border: 3px solid darkgray;
    }
    #header-center {
        font-size: 100px;
    }
    #sheet, #sheet.on, #sheet.correct-on {
        right: 5px;
        transform: none;
    }
    #intro {
        width: 40%;
    }
    #timer {
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        top: 125px;
        padding: 0 10px 5px;
    }
    #penalty {
        top: 75px;
    }
    #timer-button-container {
        width: 40px;
        position: absolute;
        top: 0;
        right: 50px;
        bottom: auto;
        left: auto;
    }
    #sound-container {
        width: 40px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: auto;
        left: auto;
    }
    #hint-button {
        position: fixed;
        top: 3px;
        left: auto;
        right: 100px;
    }
    #paper, #paper.visible {
        visibility: hidden;
    }
    #modal-content {
        padding: 0 20px;
        width: 400px;
    }
    #modal-message {
        font-size: 18px;
    }
    .modal-button {
        padding: 10px;
    }
}

@media screen and (min-width: 1280px) {
    #article {
        margin: 130px auto 1rem auto;
    }
}