@import "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Roboto&display=swap");
body {
  margin: 0;
  background: #f5f5f5;
}

img {
  vertical-align: top;
}

* {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  border-bottom: 4px #7f0019 solid;
  font-size: 24px;
  font-weight: 600;
}
header a {
  color: #7f0019;
}
header a:hover {
  color: #7f0019;
}

main {
  width: 800px;
  min-height: calc(100vh - 60px - 40px);
  overflow: hidden;
}

footer {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
footer ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
footer ul li a {
  color: #4a4a4a;
}
footer ul li a:hover {
  text-decoration: underline;
}

#index {
  margin: 0 auto;
}
#index article {
  text-align: center;
  margin-top: 60px;
}
#index .selectBox {
  margin-top: 60px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
#index .selectBox .selectOption {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 300px;
  height: 160px;
  border-radius: 7px;
  background-color: #fff;
  filter: drop-shadow(0px 0px 4px rgba(88, 88, 88, 0.6));
  user-select: none;
}
#index .selectBox .selectOption:hover {
  filter: drop-shadow(0px 0px 2.5px rgba(168, 168, 168, 0.6));
  cursor: pointer;
}
#index .selectBox .selectOption img {
  padding: 7px;
  height: 100%;
  -webkit-user-drag: none;
}
#index .selectBox .selectOption .optionName {
  font-size: 18px;
  font-weight: 600;
  margin-left: 3px;
}

#play {
  margin: 0 auto;
}
#play section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 65px;
}
#play section #customize {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#play section #customize #download {
  margin-top: 6px;
}
#play #long canvas {
  width: 340px;
  height: 570.0715307582px;
}
#play #square canvas {
  width: 340px;
  height: 340px;
}

@media (430px <= width <= 820px) {
  main {
    width: 90%;
  }
  #play section {
    flex-direction: column;
    margin-top: 25px;
  }
  #play section canvas {
    margin: 0 auto;
  }
  #play section #customize {
    width: 340px;
    margin: 15px auto 30px auto;
  }
}
@media (width < 430px) {
  main {
    width: 95%;
  }
  footer {
    height: 100px;
  }
  footer ul {
    flex-direction: column;
    gap: 5px;
  }
  #index .selectBox .selectOption {
    width: 280px;
  }
  #play section {
    flex-direction: column;
    margin-top: 25px;
  }
  #play section #customize {
    width: 100%;
    margin: 15px auto 30px auto;
  }
  #play #long canvas {
    width: 100%;
    height: 167.6680972818%;
  }
  #play #square canvas {
    width: 100%;
    height: 100%;
  }
}