/* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*
body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  background: #1abc9c;
  background-image: linear-gradient(to top left, #9b59b6, #1abc9c);
  font-family: arial;
  position: relative;
  text-align: center;
}*/

/* HEADER */
/*
header {
  color: white;
  letter-spacing: 10px;
  font-size: 22px;
  padding: 10px 5px;
}

@media only screen and (min-width: 768px) {
  header {
    font-size: 28px;
  }
}

@media only screen and (min-width: 1024px) {
  header {
    font-size: 32px;
    padding: 10px;
  }
}*/

/* main SECTION */
.main {
/*  background: white;
  width: 350px;
  height: 345px;
/*   box-shadow: 3px 3px 3px 1px rgba(0,0,0,0.4); */
/*  margin: auto;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none; */
}
/*
@media only screen and (min-width: 768px) {
  .main {
    width: 410px;
    height: 285px;
  }
}

@media only screen and (min-width: 1024px) {
  .main {
    width: 410px;
    height: 375px;
  }
}
*/
#memGameTiles {
  display: block;
}
.memGameTileGrid{
  display: grid;
  width: 100%;
  grid-gap: 1%;
  grid-template-columns: 24% 24% 24% 24%;
  margin-bottom: 2vw;
}

.box {
/*  background: #6186aa;*/
/*   background-image: linear-gradient(to top left, #9b59b6, #1abc9c); */
  background-size: 250%;
  width: 100%;
  height: 100%;
  float: left;
  margin: 10px 0 0 10px;
}
/*
@media only screen and (min-width: 1024px) {
  .box {
    width: 100px;
    height: 70px;
  }
}
*/
.play:hover {
  opacity: 0.7;
  cursor: pointer;
}
/*
img {
  width: 100%;
  display: block;
}*/

/* STATUS bar */
#state {
  /*background: #6186aa;*/
  /*background: linear-gradient(90deg, #ffcc00 2%, #575756 2%);
  color: White;
  padding-left: 5%;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1.5vw;
/*   background-image: linear-gradient(to top left, #9b59b6, #1abc9c); */
  /*width: 95%;
  /*line-height: 25px;
/*  float: left;*/
}
.bottomBar {
  background: linear-gradient(90deg, #ffcc00 2%, #575756 2%);
  color: White;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1.5vw;
  width: 90%;
}
.eefont {
    font-family: Segoe Script;
}
/*
@media only screen and (min-width: 768px) {
  #state {
    width: 290px;
  }
}

@media only screen and (min-width: 1024px) {
  #state {
    width: 390px;
    line-height: 35px;
  }
}
*/
#time {
  float: left;
}

#time::after {
  content: " eiliad/seconds";
}

#score {
  float: right;
}

#score::after {
  content: " pwyntiau/points";
}


.hidden {
  display: none !important;
}

.show {
  display: block;
}

.outlined {
  outline: solid 2px #34495e;
  background: #9b59b6;
}

/* PRE modal window */

#pre {
  font-family: Segoe Script;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
}

#themes {
  margin: auto;
  padding: 20px;
  width: 250px;
  background: white;
  color: #6186aa;
  font-size: 20px;
  letter-spacing: 1px;
}

#themes p {
  font-family: Segoe Script;
  margin-top: 10px;
  padding: 5px 20px;
  border: solid 1px;
  background: white;
  color: #6186aa;
  cursor: pointer;
  font-size: 16px;
}

#themes p:hover {
  background: #6186aa;
/*   background-image: linear-gradient(to top left, #9b59b6, #1abc9c); */
  background-size: 250%;
  color: white;
}

/* POST modal window */
#post {
  font-family: Segoe Script;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
}

#post > div {
  width: 300px;
  padding: 20px 0 40px;
  background: white;
  color: #6186aa;
}

#post p:first-child,
#post #final {
  font-weight: bold;
  letter-spacing: 2px;
  margin: auto;
  padding: 10px 20px;
}

#post #again {
  color: #6186aa;
  text-decoration: none;
  margin: auto;
  padding: 10px 20px;
  width: 160px;
  border: solid 1px;
}

#post #again:hover {
  background: #6186aa;
/*   background-image: linear-gradient(to top left, #9b59b6, #1abc9c); */
  background-size: 250%;
  color: white;
  cursor: pointer;
}
