@font-face {
    font-family: title;
    src: url('assets/fredoka.ttf');
}
@font-face {
    font-family: testo;
    src: url('assets/overlock.ttf');
}
@font-face {
    font-family: logos;
    src: url('assets/ShareTech.ttf');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --colorLogo: #afa;
    --darkShadowColor: #050;
    --bgPageColor: #0a0;
    --defaultColor: #002b00;
    --linkColor: yellow;
}

html,
body {
    background: url('assets/noise.png');
    background-color: var(--bgPageColor);
    margin: 0;
    padding: 0;
    color: var(--defaultColor);
    font-size: 110%;
    overflow-x: hidden;
    position: relative;
}

a,
a:link,
a:hover,
a:visited,
a:active {
    color: var(--linkColor);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.h1home {
    padding: 0 0.6rem;
    font-weight: 100;
    margin: 0;
    font-variant: small-caps;
    color: chartreuse;
    font-size: 1.4rem !important;
}

#header {
    height: 80px;
}

#hmenu {
    position: absolute;
    right: -240px;
    width: 200px;
    height: 100%;
    background: url('assets/noise.png');
    background-color: var(--darkShadowColor);
    box-shadow: -2px 0 10px #333;
    transition: .4s;
}
.topIcon {
    cursor: pointer;
    width: 24px;
}
#hmenu ul {
    list-style: none;
    margin: 0 0 0 .6rem;
}
#hmenu ul li {
    cursor: pointer;
    color: var(--colorLogo);
    padding: .6rem;
    font-family: logos;
    text-shadow: 0 1px black;
}
#hmenu img {
    width: 20px;
    vertical-align: middle;
    margin-right: .6rem;
    filter: drop-shadow(0 1px black);
}
.close {
    text-align: right;
    padding: .4rem .4rem 2rem 0;
}

.rowBoxGame {
    max-width: 1200px;
    width: 100%;
    padding: 1rem;
    margin: 0 auto;
    margin-bottom: 6rem;
    flex-wrap: wrap;
}
.rowBoxGame div {
    min-width: 320px;
    width: 50%;
    height: 500px;
    padding: 2rem;
    flex-direction: column;
}
.rowBoxGame div img {
    max-width: 100%;
    border-radius: 2vh;
    box-shadow: 0 0 12px var(--darkShadowColor);
}

.arealogo {
    font-family: logos;
    font-size: 1.4rem;
    color: white;
    user-select: none;
}
.imlogo {
    vertical-align: bottom;
    margin-right: .2rem;
}

.rowBoxGame,
.rowBoxGame div {
    display: flex;
    justify-content: start;
    align-items: center;
}
.gameTitle {
    font-family: title;
    font-variant: small-caps;
    color: chartreuse;
    font-size: 2rem;
    text-align: center;
    -webkit-text-stroke: 1px var(--darkShadowColor);
    margin-top: 1rem;
}

.rowBoxGame div p {
    font-family: testo;
    margin: 0 0 1rem 0;
}

#cntHeader {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: title;
    font-size: 1.2rem;
    color: var(--colorLogo);
}
#cntHeader img { margin-top: .2rem; }

.toplink {
    cursor: pointer;
    padding-top: 1rem;
}

#banner img {
    max-width: 100%;
    border-top: 2px solid var(--darkShadowColor);
    border-bottom: 2px solid var(--darkShadowColor);
}

#openmenu {
    cursor: pointer;
    width: 1.6rem;
}

.games, .newGame {
    font-family: testo;
    font-size: 1.2rem;
}

.games {
    font-variant: small-caps;
    color: var(--colorLogo);
    text-align: center;
    border-top: 3px dotted var(--colorLogo);
    max-width: 600px;
    margin: 2rem auto !important;
    padding: 1rem;
}

.gamesarea {
    font-family: title;
    font-size: 4rem;
    -webkit-text-stroke: 1px #fcff00;
    text-align: center;
    margin-top: 4rem;
    color: var(--darkShadowColor);
}

.newGame {
    text-align: center;
    margin-bottom: 2rem;
}

/*  ----------------- */
#bigames {
    display: flex;
    justify-content: center;
    flex-direction: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#bigames div {
    width: 100%;
    max-width: 600px;
}

#bigames div p {
    padding: 0 1rem;
    text-align: center;
}

#bigames div p img {
    cursor: pointer;
    width: 600px;
    max-width: 100%;
    margin-top: -1rem;
}
/*  ----------------- */

.absGame {
    display: inline-block;
    margin: 0 auto;
    font-family: testo;
    font-size: 1.2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 1200px !important;
}

.titlepage {
    font-family: title;
    font-size: 3rem;
    font-variant: small-caps;
    text-align: center;
    font-weight: normal;
    padding: 1rem;
    color: rgb(243, 186, 43) !important;
    margin: 1rem auto;
    -webkit-text-stroke: 1px var(--darkShadowColor);
    width: 100%;
    max-width: 800px;
}

.subtitle {
    text-align: center;
    font-family: testo;
    font-size: 1.2rem;
    padding: 0 1rem;
}

.autore {
    text-align: center;
    font-family: testo;
    font-size: 1rem;
    color: var(--darkShadowColor);
    font-variant: normal;
}

.titleApp {
    font-size: 3rem;
    color: #ff7f2a;
    font-family: title;
    -webkit-text-stroke: 1px #fbff00;
}
@media screen and (max-width: 380px) {
    .titleApp { font-size: 2rem; }
}

.npags {
    display: inline-block;
    width: 9rem;
    padding: 0 1rem;
}

.pagination {
    width: 96%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-family: testo;
    font-size: .9rem;
    border: 2px dotted #afa;
    padding: .6rem 0;
    border-radius: 1vh;
}

.icat {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

#selSection {
    height: 2.6rem;
    padding: 0 .6rem;
    font-size: 1.1rem;
    background-color: var(--colorLogo);
    border: none;
    border-radius: .6rem;
    color: var(--darkShadowColor);
    box-shadow: 1px 1px 6px var(--darkShadowColor);
    width: 18rem;
    margin-top: 1rem;
}

#puzzle-container {
    width: 100%;
    max-width: 1300px;
    flex-wrap: wrap;
    margin: 2rem auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#puzzle-container div {
    text-align: center;
    margin-bottom: 2rem;
    font-family: testo;
    font-variant: small-caps;
    font-size: 1.2rem;
    color: var(--colorLogo);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
}

#puzzle-container div img {
    cursor: pointer;
    margin: 1rem 0.4rem;
    max-width: 100%;
    filter: drop-shadow(-4px 0 6px var(--darkShadowColor));
    border-radius: .6rem;
}

#copy {
    font-family: testo;
    font-size: .9rem;
    text-align: center;
    margin: 4rem 0 1rem 0;
    color: white;
    padding: 0 1rem;
}
#copy img { width: 24px; }

.thisPage {
    color: var(--colorLogo);
    font-weight: bold;
    font-size: 1.6rem;
}

.homeimg {
    border-radius: .6rem;
    filter: drop-shadow(0 0 4px var(--darkShadowColor));
    margin: 2rem 0 1rem 0;
    width: 600px;
    max-width: 96%;
    cursor: pointer;
}

#tigrotto, #puzzleb { filter: drop-shadow(0 0 4px var(--darkShadowColor)) }

#appBox {
    display: flex;
    margin: 0 auto;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}
#appBox div {
    border: 2px dotted var(--darkShadowColor);
    height: auto;
    width: clamp(300px, 400px, 460px);
    text-align: center;
    font-family: testo;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: .6rem .6rem 0 0;
}

.appTitle {
    font-size: 1.6rem;
    display: inline-block;
    width: 100%;
    background-color: var(--darkShadowColor);
    height: 3rem;
    padding-top: .5rem;
    border-radius: .6rem .6rem 0 0;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 6px var(--darkShadowColor);
}
.appTitle img {
    margin-right: .6rem;
    vertical-align: middle;
    width: 32px;
    margin-top: -.4rem;
}

.boxGame {
    text-align: center;
    margin-top: -3rem;
}

.pageGames {
    text-align: center;
    font-family: testo;
    margin: 2rem auto 0 auto;
    max-width: 600px;
    padding: 1rem;
}

.header2 { border-bottom: 2px solid #00500066; }

.virgolini::before { content: "“"; }
.virgolini::after { content: "”"; }

@media screen and (max-width: 680px) {
    .rowBoxGame {
        margin: 0 0 4rem 0;
        gap: 8rem;
        justify-content: center;
    }
    .rowBoxGame div:first-child {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 479px) {
    .titlepage {
        font-size: 2rem;
    }
}