/*Stili generali*/
* {
    box-sizing: border-box;
}
*:focus {
    outline: none;
}
::placeholder {
    color: #424242;
    opacity: 1;
}
::-ms-input-placeholder {
    color: #424242;
}
::selection {
    background-color: #008b41;
}
html, body {
    height: 100%;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #cdfffc;
    margin: 0;
    background-color: #00100e;
}
a {
    color: #cdfffc;
    text-decoration: none;
    cursor: pointer;
}
a:hover {
    text-decoration: underline;
}
select {
    text-align-last: center;
    font-size: 18px;
    color: #cdfffc;
    padding: 1%;
    border: 2px solid #cdfffc;
    background-color: #00302d;
}

/*Blocco principale e barra laterale*/
#main {
    width: 100%;
    padding: 1%;
    text-align: center;
    margin-top: 1%;
}
#sidebar {
    width: 100%;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 9px;
    padding-bottom: 1px;
    background-color: #00302d;
    text-align: center;
}

/*Widgets barra laterale*/
#logo {
    display: none;
}
#userinfo {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}
#username {
    font-size: 22px;
}
.sidebutton {
    display: block;
    text-decoration: none;
    width: 100%;
    margin-bottom: 8px;
    font-weight: bold;
    padding-top: 1%;
    padding-bottom: 1%;
    color: #00302d;
    background-color: #cdfffc;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.sidebutton:hover, .loginsubmit:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}
.sidebutton:active, .loginsubmit:active {
    background-color: #cdfffc;
}

/*Classifica*/
#leaderboard {
    border: #00302d solid 8px;
    border-collapse: collapse;
    width: 100%;
}
#leaderboard td {
    font-size: 16px;
    border: none;
    padding: 3px 3px;
    text-align: center;
    white-space: nowrap;
}
#leaderboard tr:nth-child(odd) {
    background-color: #00302d;
}
#leaderboard tr:first-of-type, .leaderboardpos {
    font-weight: bold;
}

/*Login*/
.loginformclass input {
    width: 100%;
    margin-top: 4px;
    padding: 1%;
    border: none;
    font-size: 16px;
    text-align: center;
    color: #00100e;
    background-color: #cdfffc;
}
.loginmessage {
    color: #c80000;
}
.loginsubmit {
    font-weight: bold;
}

/*Messaggi generali*/
.centeredmessage {
    font-weight: bold;
    font-size: 22px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
}
.genericmessage {
    font-size: 18px;
    font-weight: bold;
}
.biglabel {
    font-weight: bold;
    font-size: 22px;
}

/*Campo di gioco*/
#gameerror {
    color: #c80000;
    font-weight: bold;
    font-size: 22px;
}
#gamefield {
    display: none;
    width: 100%;
    height: 100%;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
#gamedeck {
    width: 60%;
    font-weight: bold;
}
#gameinfo, #gamescore {
    font-weight: bold;
}
#gameturn, #gameinfo, #gamescore {
    font-size: 16px;
}
#gamescore {
    border: none;
    width: 100%;
}
.cardfield {
    display: flex;
    flex-direction: row;
}
.card {
    display: inline-block;
    font-size: 14px;
    color: #00100e;
    background-color: #00302d;
    border: 4px solid #00100e;
    width: 100%;
    white-space: nowrap;
    overflow-x: hidden;
    padding-top: 3px;
    padding-bottom: 3px;
}
.cardname {
    font-weight: bold;
}
.hiddeninfo {
    display: none;
}
.alignleft {
    text-align: left;
}
.alignright {
    text-align: right;
}

/*Profilo e negozio*/
.cardselect {
    font-size: 14px;
    width: 98%;
}
#stackingcards .card {
    width: 48%;
}

/*Profilo e negozio*/
.tutorial {
    text-align: justify;
    margin: 8px 4px;
}
.tutoriallist {
    text-align: left;
    list-style-type: circle;
    padding-left: 1.2em;
}
.tutoriallist li {
    margin-bottom: 4px;
}

/*Schermi medi*/
@media only screen and (min-width: 600px) {
    /*Blocco principale e barra laterale*/
    #main {
        width: 80%;
        height: 100%;
        float: left;
        overflow-y: auto;
        margin-top: 0;
    }
    #sidebar {
        width: 20%;
        height: 100%;
        float: left;
        overflow-y: hidden;
    }

    /*Widgets barra laterale*/
    #logo {
        display: inline-block;
        width: 100%;
        height: auto;
        margin-bottom: 4px;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    #userinfo {
        text-align: left;
    }

    /*Login*/
    .loginformclass input {
        font-size: 18px;
        width: 80%;
        margin-top: 8px;
    }

    /*Messaggi generali*/
    .centeredmessage {
        font-size: 30px;
    }
    .biglabel {
        font-size: 30px;
    }

    /*Campo di gioco*/
    #gameinfo, #gamescore {
        font-size: 18px;
    }
    #gamedeck {
        width: 40%;
    }

    /*Profilo e negozio*/
    #stackingcards .card {
        width: 24%;
    }
}

/*Schermi grandi*/
@media only screen and (min-width: 768px) {
    /*Stili generali*/
    body {
        font-size: 18px;
    }

    /*Barra laterale*/
    #username {
        font-size: 24px;
    }

    /*Classifica*/
    #leaderboard {
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }
    #leaderboard td {
        font-size: 18px;
    }

    /*Login*/
    .loginformclass input {
        width: 65%;
    }

    /*Campo di gioco*/
    #gameinfo, #gamescore {
        font-size: 22px;
    }
    #gameturn {
        font-size: 18px;
    }
    .card {
        font-size: 16px;
    }

    /*Profilo e negozio*/
    #stackingcards .card {
        width: 19%;
    }
    .cardselect {
        font-size: 16px;
    }
}

/*Schermi molto grandi*/
@media only screen and (min-width: 992px) {
    /*Campo di gioco*/
    #gameinfo, #gamescore {
        font-size: 24px;
    }
    #gameturn {
        font-size: 22px;
    }
    .card {
        font-size: 18px;
    }

    /*Profilo e negozio*/
    .cardselect {
        font-size: 18px;
    }
}