/*style.css*/
:root {
    --cardheight:39px; /* 60 */
    --cardwidth:26px; /* 40 */
    --rulescardheight:30px;
    --rulescardwidth:20px;
}


body {
    width:660px;
    font-size: 18px;
}

.nav-bar {
    display: block;
    background-color: grey;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 2px 2px 5px grey;
}

.puzzle-list-container {
    width: 50%;
}

button, select {
    box-shadow: 1px 1px 3px grey;
    border-radius:5px;
}

img.card {
    border: 1px, solid;
    width: var(--cardwidth);
    height: var(--cardheight);
    margin: 1px;
    border-radius:5px;
    box-shadow: 5px;
    box-shadow: 2px 2px 5px grey;
}

img.cardSelected {
    border: 3px, solid, red;
    width: var(--cardwidth);
    height: var(--cardheight);
    margin: -1px;
    border-radius:5px;
    box-shadow: 2px 2px 5px rgb(238, 63, 63);
}

img.rules-card {
    border: 1px, solid;
    width: var(--rulescardwidth);
    height: var(--rulescardheight);
    margin-top:3px;
    margin-bottom: -10px;
    border-radius:5px;
    box-shadow: 5px;
    box-shadow: 2px 2px 5px grey;
}

img.rules-cardSelected {
    border: 3px, solid, red;
    width: var(--rulescardwidth);
    height: var(--rulescardheight);
    margin-top:3px;
    margin-bottom: -11px;
    margin-left: -1px;
    margin-right: -1px;
    border-radius:5px;
    box-shadow: 2px 2px 5px rgb(238, 63, 63);
}

img.discarded {
    border: 1px, solid;
    width: 10px;
    height: 15px;
    margin-right: -4px;
    border-radius: 3px;
    box-shadow: 1px 1px 3px grey;
    margin-bottom: -3px;
}

.main-card-container{
    height:75px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    scroll-behavior: smooth;
    padding: 2px;
}

.discard-btn, .swap-btn, .rotate-left-btn, .rotate-right-btn, .add-btn {
    margin-left: 5px;
    margin-right: 5px;
    font-weight: bold;
}

.swap-btn, .add-btn {
    display: none;
}

.btn-container {
    display: flex;   
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.puzzleList-label{
    color: white;
    text-shadow: 1px 1px 2px black
}

.discard-container{
    text-shadow: 2px 2px 5px grey;
    border-radius: 5px;
    box-shadow: 2px 2px 5px grey;
    padding: 5px;
    margin-bottom: 5px;    
}

.discarded-span {
    margin-left:4px;
    margin-bottom: 20px;   
}

sub{
    margin-left:-2px;
}

.mode-span {
    padding-left:2px;
}

.score-container{
    display:flex;
    justify-content: center;
    text-shadow: 1px 1px 3px grey;
    margin-top:5px;
}

.history-container{
    display: flex;
    flex-direction: column;
    border: 0px solid;
    text-shadow: 2px 2px 5px grey;
}

.history-score{
    padding: 5px;
    border: 1px solid grey;
    border-radius: 10px;
    box-shadow:3px 3px 5px grey;
    margin-top:3px;
}

footer{
    background-color: lightgrey;
    margin-top: 10px;
    box-shadow: 2px 2px 5px grey;
    padding: 5px;
    border-radius: 5px;
}

.contact-class, .rules-class{
    text-decoration: none;
    color: black;
}

.rules-container{
    border: 2px solid;
    border-radius: 10px;
    box-shadow: 5px 5px 10px grey;
    background-color: white;
    position: absolute;
    top:0px;
    left:0px;
    z-index: 2;
    display: none;
    padding: 10px;
    margin:20px;
}