@font-face {
	font-family: "Open Sans";
	src: url("webfonts/OpenSans-Regular-webfont.woff") format ('woff');
}

@font-face {
	font-family: "Open Sans";
	src: url("webfonts/OpenSans-Bold-webfont.woff") format ('woff');
	font-weight: bold;
}

@font-face {
	font-family: "Open Sans";
	src: url("webfonts/OpenSans-BoldItalic-webfont.woff") format ('woff');
	font-weight: bold;
	font-style: italic;
}

@font-face {
	font-family: "Open Sans";
	src: url("webfonts/OpenSans-Italic-webfont.woff") format ('woff');
	font-style: italic;
}

@font-face {
  font-family: 'Bevan';
  font-style: normal;
  font-weight: 400;
  src: local('Bevan Regular'), local('Bevan-Regular'),
       url('webfonts/bevan-v12-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('webfonts/bevan-v12-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'),
       url('webfonts/source-code-pro-v13-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('webfonts/source-code-pro-v13-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

html
{
    -webkit-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
}

.content-wrapper {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

body {
    font-family: "Open Sans", sans-serif;
    margin: 90px 0 80px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
    
header {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    height: 64px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    background: #fff;
    z-index: 10;
    text-align: right;
    line-height: 64px;
    font-size: 24px;
    font-weight: bold;
    color: #323536;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header-title {
    height: 64px;
    line-height: 64px;
    float: left;
    margin-left: 10px;
    cursor: pointer;
}

.header-title__letter {
    font-family: "Bevan";
    letter-spacing: revert;
    font-weight: normal;
    display: inline-block;
    text-align: center;
    background: #d24;
    background: radial-gradient(circle at 20px 20px, #d24 0%, #000 100%);
    color: #fff;
    border-radius: 50%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 16px;
    width: 34px;
    height: 34px;
    line-height: 34px;
    padding-left: 1px;
}

.header-title:hover .header-title__letter {
    background: #f24;
    background: radial-gradient(circle at 20px 20px, #f24 0%, #000 100%);
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

.header-link {
    display: inline-block;
    height: 64px;
    padding: 0 4px;
    line-height: 64px;
    font-size: 20px;
    text-align: center;
    margin: 0 2px;
    cursor: pointer;
    box-sizing: border-box;
}

.header-link:hover {
    color: #00806c;
    border-bottom: 2px solid #00806c;
}

.main-menu {
    color:#323536;
    box-sizing:border-box;
    position:fixed;
    overflow:auto;
    font-size:1.4rem;
    top:0;
    right:-16rem;
    width:16rem;
    height:100%;
    margin:0;
    padding:3.5rem 2rem 5rem 2rem;
    opacity:0;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    background: #fff;
    z-index:90;
}

.main-menu__close {
    font-size: 40px;
    cursor: pointer;
    display: inline-block;
    position: absolute;
    right: 10px;
    top: 2px;
    -webkit-user-select: none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
}

.main-menu__close:hover {
    color: #d24;
}

.main-menu__submenu {
    text-align: center;
}

.submenu__link:link,
.submenu__link:active,
.submenu__link:visited {
    color: inherit;
    display: inline-block;
    height: 64px;
    padding: 0 4px;
    line-height: 64px;
    font-size: 24px;
    text-align: center;
    margin: 0 2px;
    cursor: pointer;
    box-sizing: border-box;
}

.submenu__link:hover {
    color: #d24;
}

.main-menu.open {
    right:0;
    opacity:1;
    box-shadow: -3px 0 5px rgba(12, 15, 16, 0.8);
}

.main-menu__link:link,
.main-menu__link:active,
.main-menu__link:visited {
    display:block;
    margin:1rem 0 1rem 0;
    text-align: center;
    text-decoration:none;
    color:inherit;
}

.main-menu__link:hover {
    color: #d24;
}

.main-menu__link span {
}

.main-menu__link:hover span {
    width:2.3rem;
}

main {
    display: block;
    width: 96%;
    max-width: 750px;
    margin: 20px auto;
    padding-bottom: 100px;
}

main p,
main .url {
    font-size: 20px;
    line-height: 1.5;
    color: #121516;
}

.blanket {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #fff;
    z-index: 900;
}

.modal {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(12, 15, 16, 0.9);
    z-index: 90;
}

.modal__content {
    position: relative;
    margin: 0 auto;
    width: 98%;
    max-width: 1200px;
    padding: 0.5rem;
    animation-name: animatetop;
    animation-duration: 0.4s
}

.modal__close {
    color: #efefef;
    display: block;
    position: absolute;
    right: 2px;
    top: 2px;
    width: 64px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 50px;
    cursor: default;
    z-index: 100;
}

.modal__close:hover {
    color: #00806c;
}

.card {
    display: block;
    box-sizing: border-box;
    background-color: #d24;
    background-image: linear-gradient(135deg, #ad1c37 0%, #d24 20%, #d24 80%, #ad1c37 100%);
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    box-shadow: 3px 3px 5px rgba(12, 15, 16, 0.7);
    width: 300px;
    margin: 20px auto;
    border-radius: 6px;
    padding-bottom: 20px;
}

.card-number,
.reset {
    font-family: "Open Sans", sans-serif;
    display: block;
    position: absolute;
    top: 1%;
    color: #fafafa;
    letter-spacing: 0.1em;
    font-size: 16px;
    text-shadow: 2px 2px rgba(12, 15, 16, 0.7);
}

.card-number {
    right: 2%;
}

.reset {
    left: 2%;
    cursor: pointer;
}

.column {
    width: 17.5999%;
    margin: 0 0 0 2%;
    display: block;
    padding-top: 30px;
    float: left;
    box-sizing: border-box;
    text-align: center;
    user-select: none;
}

.letter-container {
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-family: "Bevan", sans-serif;
    user-select: none;
    color: #fafafa;
    width: 100%;
    text-shadow: 2px 2px #000;
    line-height: 1.2;
    font-size: 51px;
}

.number-container {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    background-color: #fafafa;
    padding: 0;
    text-align:center;
    color: #000;
    user-select: none;
    cursor: pointer;
    width: 100%;
    padding-top: 100%;
    margin: 3% 0;
    border-radius: 5%;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    font-size: 36px;
}

.number-container.free-space-container {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ctext x='50%25' y='33%25' dominant-baseline='middle' text-anchor='middle' font-family='Arial Black'%3EFRJÁLS%3C/text%3E%3Ctext x='50%25' y='70%25' dominant-baseline='middle' text-anchor='middle' font-family='Arial Black'%3EREITUR%3C/text%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.number-container.hidden {
    visibility: hidden;
}

.number-container__number {
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Source Code Pro", sans-serif;
    user-select: none;
}

.number-container__mark {
    position:absolute;
    left:0;
    top:0;
    background: green;
    border-radius: 50%;
    opacity: .65;
    display:none;
    user-select: none;
    width: 92%;
    padding-top: 92%;
    margin: 4%;
}

.number-container__mark.active {
    display: block;
}

.free-space {
    visibility: hidden;
}

@media screen and (min-width: 325px) {
    header {
        padding-right: 10px;
    }
    
    .header-link {
        padding: 0 2px;
        font-size: 24px;
        margin: 0;
    }

    .header-title {
        margin-left: 20px;
    }

    .header-title__letter {
        font-size: 16px;
        width: 36px;
        height: 36px;
        line-height: 36px;
        padding-left: 1px;
        margin: 12px 0;
    }
}

@media screen and (min-width: 375px) {
    header {
        padding-right: 16px;
    }

    .header-link {
        padding: 0 6px;
        margin: 0 4px;
    }
}

@media screen and (min-width: 480px) {
    header {
        padding-right: 16px;
    }

    .header-title__letter {
        font-size: 20px;
        width: 46px;
        height: 46px;
        line-height: 46px;
        padding-left: 1px;
        margin: 9px 0;
    }

    .header-link {
        padding: 0 8px;
        margin: 0 5px;
    }

    .card {
        width: 470px;
    }

    .card-number,
    .reset {
        font-size: 18px;
    }
    
    .letter-container {
        font-size: 80px;
    }
    
    .number-container {
        font-size: 56px;
    }
}

.card.shape-display {
    width: 250px;
}

.card.shape-display .column {
    padding-top: 10px;
}

.shape-display .letter-container {
    font-size: 42px;
}

.shape-display .number-container {
    font-size: 30px;
}

.processing {
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    overflow:auto;
    background-color:#fff;
    background-color:rgba(0, 0, 0, 0.5);
    z-index:3;
}

.processing__content {
    display:block;
    position: fixed;
    text-align:center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width:95%;
    max-width:40rem;
}

.processing__message {
    text-transform: uppercase;
    font-size:1.2rem;
    color:#fff;
    letter-spacing:0.1rem;
}

.lds-spinner {
    color: official;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #fff;
}
.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}
@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.infobox {
    display:block;
    width:100%;
    box-sizing:border-box;
    margin:1em auto;
    padding:0;
    border:1px solid #eaeff3;
    box-shadow:2px 2px 4px #929596;
}

.infobox__title {
    cursor: default;
    margin: 0;
    padding: 0.7em;
    background-color: #00806c;
    background-image: linear-gradient(90deg, #003f35 10%, #00806c 90%);
    color: #efefef;
    text-transform: uppercase;
    font-size: 1em;
    letter-spacing: 0.1em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.infobox__title__arrow {
    width:1.3em;
    float:left;
    color:#e1f9da;
}

.infobox__content {
    display:none;
    padding:0.2em 1.5em 1.5em 1.5em;
    background: #efefef;
    overflow: hidden;
}

.infobox__content.open {
    display: block;
}

.infobox__content ul {
    padding-left:2rem;
}

.infobox__content ul li {
    line-height:1.8;
}

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

.game-info {
    display: block;
    line-height: 70px;
    font-size: 46px;
    text-align: center;
    font-weight: bold;
}

.draw {
    display: block;
    line-height: 50px;
    font-size: 46px;
    text-align: center;
    font-weight: bold;
    color: #016959;
}

.roll {
    display: block;
    background-color: #efefef;
    height: 44px;
    line-height: 40px;
    width: 150px;
    margin: 1rem auto;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    color: #00806c;
    border-radius: 4px;
    border: 2px solid #00806c;
    cursor:default;
    -webkit-user-select: none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
}

.roll:hover {
    color: #d24;
    border-color: #d24;
    box-shadow:2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-card {
    display: block;
    box-sizing: border-box;
    background-color: #00806c;
    background-image: linear-gradient(90deg, #003f35 0%, #00806c 50%, #003f35 100%);
    overflow: hidden;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    -webkit-user-select: none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    width: 96%;
    max-width: 320px;
    margin: 20px auto;
    border-radius: 6px;
    padding: 20px 0 30px 0;
}

.game-column {
    display: block;
    float: left;
    box-sizing: border-box;
    text-align: center;
    user-select: none;
    width: 17.5999%;
    margin: 0 0 0 2%;
}

.gc-letter-container {
    position: relative;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-family: "Bevan", cursive;
    user-select: none;
    color: #f24;
    text-shadow: 2px 2px #000;
    width: 100%;
    padding-top: 100%;
}

.gc-letter-container__letter {
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.gc-number-container {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    background: #efefef;
    padding: 0;
    text-align:center;
    color: #000;
    user-select: none;
    cursor: pointer;
    width: 100%;
    padding-top: 100%;
    margin: 3% 0;
    border-radius: 5%;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

.gc-number-container.hidden {
    visibility: hidden;
}

.gc-number-container__number {
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Source Code Pro", monospace;
    user-select: none;
}

.gc-number-container__mark {
    position:absolute;
    left:0;
    top:0;
    background: #d24;
    border-radius: 50%;
    opacity: .65;
    box-sizing: border-box;
    display:none;
    user-select: none;
    width: 92%;
    padding-top: 92%;
    margin: 4%;
}

.gc-number-container__mark.active {
    display: block;
}

@media screen and (min-width: 650px) {
    .game-info,
    .draw {
        display: inline-block;
        line-height: 100px;
        padding: 0 20px;
    }
    
    .roll {
        margin: 0 0 0 20px;
    }
        
    .game-card {
        background-image: linear-gradient(0deg, #003f35 0%, #00806c 50%, #003f35 100%);
        max-width: none;
        width: 96%;
        padding: 0.5% 0;
    }

    .game-column {
        float: left;
        width: 100%;
        margin: 0.5% 0 0.5% 0;
    }

    .gc-letter-container,
    .gc-number-container {
        line-height: 1;
        float: left;
        width: 5.687%;
        padding-top: 5.687%;
        margin: 0 0 0 0.5%;
    }
}

.counts {
    display: block;
    box-sizing: border-box;
    background-color: #efefef;
    overflow: hidden;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    width: 96%;
    margin: 20px auto;
    border: 10px solid #00806c;
    border-radius: 6px;
    padding: 10px 20px 40px 20px;
    font-size: 20px;
    line-height: 1.8;
}

.counts__heading {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.counts__paragraph {
    padding-left: 20px;
}

.counts__rolled {
    display: inline-block;
    width: 3.5em;
    height: 3.5em;
    text-align: center;
    line-height: 3.5em;
    background: #d24;
    background: radial-gradient(circle at 1.25em 1.25em, #d24 0%, #000 100%);
    color: #fff;
    margin: 5px;
    border-radius: 50%;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

.drawn {
    color: #f24;
}

.pot {
    color: #00806c;
}

footer {
    display: block;
    width:100%;
    padding-top:5rem;
    text-align:center;
    letter-spacing:0.2em;
    text-transform: uppercase;
    font-size: 14px;
}


