

h1, 
header,
h2, 
p{
    font-family: "open sans", sans-serif;
    }

body {
    text-align: center;
    margin-right: auto;
    box-sizing: border-box;
margin-left: auto;
}


a {
    font-weight: bold;
    font-size: 26px;
    font-family: 'open sans', sans-serif;
    text-decoration: none;
}

.container {
padding: 3rem;
margin: 0 auto;
max-width: 80%;
}



h1 {
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 36px;
}

nav {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
}

.content {
    margin: 15% auto;
    max-width: 400px;
    background-color: #FAF0E6;
    border: 1px solid #E0DEDB;
    border-radius: 5px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

.modal h2 {
    padding-top: 5px;
    padding-left: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #E0DEDB;
}

#level-modal .content {
    background-image: url(../assets/congratulation.jpg);
    border: 1px solid #222;
}

#level-modal h2 {
    padding-top: 20px;
    text-align: center;
    border-bottom: 1px solid transparent;
}

#level-modal li {
    text-align: center;
    font-size: 20px;
}

#level-modal footer {
    border-top: 1px solid transparent;
}

#level-modal .play-button {
    background-color: #FEE715;
}

.counter {
    font-size: 20px;
    margin-top: -40px;
    margin-bottom: 5px;
    text-align: center;
}

.rule {
    padding: 15px;
}

.rule li {
    margin-bottom: 10px;
}

.modal footer {
    padding-right: 10px;
    text-align: right;
    border-top: 1px solid #E0DEDB;
}

.play-button {
    background-color: #FEE715;
    border: 1px solid #E0DEDB;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
  max-width: 400px;
  margin: 2rem auto;
  padding: 10px;
}

.board {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 columns */
  grid-template-rows: repeat(2, 1fr);    /* always 2 rows */
  gap: 8px;
  width: 90vw;        /* scales with viewport width */
  max-width: 300px;   /* never grows bigger than this */
  aspect-ratio: 1 / 1; /* keeps the whole board square */
  margin: 2rem auto;
}

.square {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: 1px solid #e6e6e6;
  background-color: #f8cd05;
  cursor: pointer;
  box-sizing: border-box;
}



.unselected {
    transform: rotateY(180deg);
    background-color: #f8cd05;
}

input {
    background-color: #222;
    box-shadow: 2px 2px 9px 0px #222 inset, -2px -2px 9px 0px #222 inset;
    border: 1px solid transparent;
    border-radius: 4px;
    color: white;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    font-weight: bold;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

input:hover {
    color: black;
}

.mute:hover {
    cursor: pointer;
}

.tooltip {
    position: relative;
    left: 360px;
    bottom: 55px;
}

.tooltip i {
    position: absolute;
    font-size: 30px;
    cursor: pointer;
}


/* Tooltip text */

.tooltip .tooltiptext {
    visibility: hidden;
    width: 150px;
    background-color: #222;
    color: #fff;
    text-align: left;
    padding: 5px 10px;
    border-radius: 4px;
    /* Position the tooltip text */
    position: relative;
    z-index: 1;
    bottom: 30px;
    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}


/* Tooltip arrow */

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 10px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}


/* Show the tooltip text when you mouse over the tooltip container */

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


@media (max-width: 1000px) {
    .center{}
    .center-inner{left:25%;top:25%;position:absolute;width:50%;height:300px;background:#f0f;text-align:center;max-width:500px;max-height:500px;}
  }
  @media (min-width: 1000px) {
    .center{left:50%;top:25%;position:absolute;}
    .center-inner{width:500px;height:100%;margin-left:-250px;height:300px;background:#f0f;text-align:center;max-width:500px;max-height:500px;}
  }
  
  