@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

main {
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(2, 2, 2, 0.5);
  text-align: center;
  min-width: 600px;
  margin: 0 20px;
}

#drawButton {
  font-size: 1.3rem;
  padding: 20px 50px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 8px rgba(2, 2, 2, 0.5);
  margin-bottom: 3rem;
}

#drawButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  background: #434343;
}

#drawButton:active {
  transform: translateY(0);
}

#resultDisplay {
  font-size: 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 15px;
  background: #ffffff;
  border: 2px solid #010101;
}

footer {
  position: fixed;
  bottom: 20px;
  font-size: 0.9rem;
}

/* おみくじ結果に応じた背景色とスタイル */
.daikichi {
  background: linear-gradient(135deg, #ff0000, #f78a8a) !important;
  color: rgb(255, 255, 255);
  border-color: #f78a8a;
}

.chukichi {
  background: linear-gradient(135deg, #8b00fd, #d6a3ff) !important;
  color: white;
  border-color: #d6a3ff;
}

.kichi {
  background: linear-gradient(135deg, #0055ff, #80abff) !important;
  color: white;
  border-color: #80abff;
}

/* bodyの背景色変更 */
body.daikichi {
  background: linear-gradient(135deg, #ff0000, #f78a8a);
  transition: background 0.5s ease;
}

body.chukichi {
  background: linear-gradient(135deg, #8b00fd, #d6a3ff);
  transition: background 0.5s ease;
}

body.kichi {
  background: linear-gradient(135deg, #0055ff, #80abff);
  transition: background 0.5s ease;
}

/* bodyクラスに基づいたresultDisplayのスタイル */
body.daikichi #resultDisplay {
  background: linear-gradient(135deg, #ffffff, #ffaaaa) !important;
  color: rgb(255, 1, 1);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  border-color: #ff0015;
}

body.chukichi #resultDisplay {
  background: linear-gradient(135deg, #ffffff, #e2bfff) !important;
  color: #8b00fd;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  border-color: #8b00fd;
}

body.kichi #resultDisplay {
  background: linear-gradient(135deg, #ffffff, #b4cdff) !important;
  color: #0055ff;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  border-color: #0055ff;
}

@media (min-width: 601px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  main {
    margin: 0;
    padding: 3rem;
  }
  
  #drawButton {
    font-size: 1.5rem;
    padding: 15px 40px;
  }
  
  #resultDisplay {
    font-size: 2rem;
  }
}