@charset "utf-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

html {
  overflow: hidden;
  background-color: black;
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  user-select: none;
  -ms-user-select: none;
}

button {
  background-color: transparent;
}


main {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
  justify-content: center;
  width: 100%;
}

h1 {
  color: rgb(244, 155, 185);
  text-align: center;
}

h2 {
  text-align: center;
  font-size: 35px;
  margin: 15px;
}

h3 {
  margin: 10px;
}

p {
  line-height: 1.5em;
  margin-bottom: 20px;
}

.dot-space {
  display: block;
  height: 15px;
}

ul {
  list-style: none;
  padding-left: 5px;
  margin-bottom: 15px;
}

ul li {
  line-height: 1.5;
}


.buttom-ads {
  display: flex;
  position: absolute;
  bottom: 0;
  height: 100px;
  width: 100%;
  z-index: 10;
}

#start-button {
    position: absolute;
    top: 40%;
    left: 10%;
    width: 260px;
    height: 100px;
    font-size: 50px;
    background-color: pink;
    border: solid 2px black;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
}

#start-button:hover {
  background-color: palevioletred;
}

#menu-button {
  position: absolute;
  top: 0;
  right: 10px;
  margin: 7px;
  font-size: 40px;
  color: white;
}

#menu-overlay {
  display: none;
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: right;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.menu-overlay-content {
  display: flex;
  flex-direction: column;
  width: 65%;
  height: auto;
  padding: 5px;
  text-align: left;
  color: #000;
  background: white;
  z-index: 1005;
}

#menu-close-button {
  display: flex;
  background: none;
  font-size: 150px;
  font-weight: lighter;
  margin: 5px;
  color: white;
  border: none;
}

.menu {
  display: flex;
  flex-direction: column;
  font-size: 25px;
  margin: 0;
  padding: 10px;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  margin-bottom: 15px;
}

.menu a {
  display: block;
  text-decoration: none;
  color: palevioletred;
  transition: color 0.2s, transform 0.2s;
}

.menu a:hover {
  color: red;
  transform: scale(1.05);
}

/* Canvasの設定 */
canvas {
  display: none;
  margin: 0 auto;
}

#score-board {
  display: flex;
  position: fixed;
  top: 5px;
  left: 2px;
  width: 100px;
  height: 50px;
  margin: 5px;
  background-color: pink;
  border: solid 1px black;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}

#score {
  display: flex;
  width: 90%;
  height: 80%;
  margin: 5px;
  font-size: 30px;
  background-color: white;
  border: solid 1px black;
  display: block;
  text-align: right;
  z-index: 10;
}

#counter-board {
    display: flex;
    position: fixed;
    top: 5px;
    left: 135px;
    width: 60px;
    height: 50px;
    margin: 5px;
    background-color: rgb(18, 186, 242);
    border: solid 1px black;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
  }
  
  #counter {
    display: flex;
    width: 90%;
    height: 80%;
    margin: 5px;
    font-size: 30px;
    background-color: white;
    border: solid 1px black;
    display: block;
    text-align: center;
    z-index: 10;
  }

#infomation-button {
  position: absolute;
  top: 10px;
  right: 60px;
  margin: 5px;
  width: 40px;
  height: 40px;
  font-size: 30px;
  color: white;
  border: solid 2px white;
  border-radius: 50%;
}

#infomation-page {
  display: none;
  position: fixed;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  text-align: center;
  align-items: center;
}

.overlay-content {
  background: white;
  text-align: left;
  border-radius: 10px;
  width: 90vw;
  height: 75vh;
  font-size: 22px;
  margin-top: 10%;
  padding: 10px;
  overflow-y: auto;
}

#infomation-close-button {
  display: block;
  font-size: 40px;
  font-weight: bold;
  color: white;
}

#menu-button {
  position: absolute;
  top: 0;
  right: 10px;
  margin: 7px;
  font-size: 40px;
  border: none;
}

.gameover-modal {
  display: none;
  position: fixed;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.gameover-modal-content {
  display: flex;
  flex-direction: column;
  background-color: white;
  font-size: 35px;
  padding: 10px;
  border-radius: 10px;
  width: 90%;
  height: auto;
}

.gameover-modal-content p {
  font-size: 45px;
  margin-top: 30px;
}

#replay-button {
    display: flex;
    width: 200px;
    height: auto;
    font-size: 45px;
    font-weight: bold;
    color: violet;
    margin: 30px auto;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#home {
    display: flex;
    width: 150px;
    height: auto;
    font-size: 30px;
    font-weight: bold;
    color: rgb(131, 81, 240);
    margin: 10px auto;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#home a {
    text-decoration: none;
}

#high-score {
  font-size: 25px;
  color: palevioletred;
}

#current-score {
  font-size: 30px;
}

#gameover-comment {
  font-size: 25px;
  color: blueviolet;
}

@media (min-width: 768px) {
  body {
    height: 100vh;
  }

  .gameover-modal-content {
    font-size: 35px;
    margin-top: 10%;
    padding: 50px 10px;
  }  

  .close-btn {
    right: 100px;
  }

  .buttom-ads {
    display: none;
  }

  #infomation-button {
    cursor: pointer;
  }

  #menu-button {
    cursor: pointer;
  }

  #menu-close-button {
    cursor: pointer;
  }
  
}