@import url("https://fonts.googleapis.com/css2?family=Kaisei+Opti:wght@400;700&display=swap");

body {
  font-family:  "Kaisei Opti", Arial, sans-serif;
  margin-top: 4rem; 
  background-color: #f0f8ff;
  color: #333;
  text-align: center;
}

.game_wrapper{
  margin: 4rem 0 6rem; 
}


.game-title {
  border: 3px solid #ff8563; 
  padding: 2em;
  border-radius: 15px;
  background-color: #fff4eb;
  margin: 2em auto;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.game-title h1 {
  margin: 0;
  font-size: 1.8em;
}

.game-title p {
  margin-top: 0em;
  margin-bottom: 0.5em ;
  font-size: 1.2em;
  color: #555;
}

h1 {
  font-size: 2em;
  margin-bottom: 0em;
}

h2 {
  font-size: 1.7em;
  margin-bottom: 1em;
}

.main{
  font-size: 1.3em;
}

.shindan_button {
  font-family: "Kaisei Opti", Arial, sans-serif;
}  

.question {
  margin-bottom: 2em;
}

.options button {
  width: 100%;
  max-width: 300px; 
  margin: 0.5em auto;
  padding: 1em;
  font-size: 1rem;
  background-color: 	#FFF4EB;
  display: block;
  text-align: center;
  box-sizing: border-box;
  border-radius: 15px
}
.options {
  display: flex;
  flex-direction: column;
  align-items: center;
}

button:hover {
  background-color: 	#FF8563;
}

#modal-body button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.result-large {
  margin-top: 10vh;
  font-size: 2em;
  font-weight: bold;
  background-color: #fff9c4;
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}


.image-wrapper {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1em 0;
  flex-wrap: wrap;
}

.result-image {
  width: 45%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.result-image.single {
  width: 60%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
}

.result-links {
  text-align: center;
  margin-top: 1em;
}

.result-link {
  margin: 0.5em 0;
}

.result-link a {
  color: #0077cc;
  text-decoration: underline;
}
/* 仮 */

/* 飛び出す表示 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
}


.recommend-label {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5em;
  color: #333;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

#restart{
  display: inline-block;
  box-sizing: border-box;
  /* width: 100%; */
  /* width: calc(100% - 20px); */
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  background-color: #c7644b;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  transition: background-color 0.3s, color 0.3s;
  padding: 5px 20px;
  margin: 0 5px 10px 0; /* top right bottom left */
  font-family: inherit;
}

#restart:hover{
  background-color: #e09494;
  color: #fff; 
}

