
/* フォント */
@font-face {
    font-family: "myfont";
    src: url('font/YDWaosagi.otf') format("truetype"); 
    font-display: swap; 
  }

  /* 全体レイアウト */
body {
  background: linear-gradient(to bottom, #fff3e0, #ffe0b2);
  background-image:url('img/backimg.jpg');
  background-size: cover;
  font-family:"myfont";
}

.container {
  position: relative;
  z-index: 100;
  text-align: center;
  padding: 20px 10px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  width: 300px;
  margin: 20px auto;
  border: 2px solid #f1a32e;
  background-color:#1e293ba3;
  color:#FACC15;
}

.container li{
  text-align: left;
  letter-spacing:-0.23em;
}

.container p{
  text-align: center;
    font-size: 12px;
}


h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: bold;
  color:rgba(255, 149, 126, 0.918);
}

/* スロット */
.slots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.slot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.slot {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  border-radius: 50%; /* 円形 */
  border: 2px solid #d1ce64;

  background: url('img/moon.jpg') no-repeat center center;
  background-size: cover;
}

.stopButton {
  background: linear-gradient(to bottom, #ff6f43e3, #d84215ef);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 15px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.3s;
  font-family:"myfont";
}

.stopButton:hover {
  transform: scale(1.1);
  background: linear-gradient(to bottom, #f4511e, #b71c1c);
}

.levelbutton {
  background: linear-gradient(to bottom, #fdd835, #f57f17);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.3s;
  font-family:"myfont"
}

.levelbutton:hover {
  transform: scale(1.1);
  background: linear-gradient(to bottom, #f4511e, #d84800);
}

.controls {
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  z-index: 100;
}

.startButton,.TopButton {
  background: linear-gradient(to bottom, #fdd835, #f57f17);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 15px 50px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.3s;
  font-family:"myfont";
}

.startButton:hover,.TopButton:hover{
  transform: scale(1.1);
  background: linear-gradient(to bottom, #fbc02d, #e65100);
}

#result {
  margin-top: 15px;
  font-weight: bold;
  font-size: 18px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 100;
}

/* ポップアップ */
#popup {
  position: fixed;
  z-index: 150;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;

}

#popup.show {
  display: flex;
}

.popup-content {
  background: #fff8e1;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  width: 320px;
  border: 2px solid #ffb74d;
}

.popup-content img {
  width: 120px;
  margin-bottom: 15px;
  font-family:"myfont";
}

.popup-content button {
  background: linear-gradient(to bottom, #8d6e63, #5d4037);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family:"myfont";
}

.popup-content button:hover {
  background: linear-gradient(to bottom, #6d4c41, #3e2723);
}
