:root{
  --bg-color: #ff8fab;
  --frame-bg: #ffc2d1;
  --box-shadow: rgba(0, 0, 0, 0.2);
  --container-bg: #ffc2d1;
  --button-text: #fb6f92;
  --bubble-bg: #fb6f92;
  --text-color: white;
}

.dark-mode{
  --bg-color: #121212;
  --frame-bg: #0A2647;
  --box-shadow: #144272;
  --container-bg: #333;
  --button-text: #2C74B3;
  --bubble-bg: #2C74B3;
  --text-color: white;
}

body.light-mode {
    background-color: #fb6f92;
}

/* Dark mode */
body.dark-mode {
    background-color: #0A2647;
}

body 
{
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.start-all-container{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0px 0px 20px var(--box-shadow);
  padding: 20px;
  width: 900px;
  height: 900px;
  background-color: var(--frame-bg);
  margin: 0 auto;
}

.buttons-container {
  display: flex;
  justify-content: space-around; /* Even spacing */
  align-items: center;
  position: relative;
  width: 100%;
  padding: 10px;
  top: 25%;
  right: 10%;
}


.rectangle-svg{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;  
  height: 100%;
  pointer-events: none;
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.582);
}

.chibi-san
{
  position: relative;
  width: 200px;
  height: auto;
  left: 60%;
  bottom: 7%;
}

.work-button
{
  border: none;
  background: none;
  width: 85px;
  height: auto;
  cursor: pointer;
  font-family: "Gluten", serif;
  font-size: 20px;
  color: var(--button-text);
  margin: 0 auto;
  position: relative;
}

.work-button:hover
{
  transform: translateY(-5px);
}

.work-button:active
{
  transform: scale(0.9);
  transition: transform 0.1s ease;
}

.settings-button {
  border: none;
  background: transparent;
  width: 93px;
  height: auto;
  cursor: pointer;
  font-family: "Gluten", serif;
  font-size: 20px;
  color: var(--button-text);
  margin: 0 10px;
  position: relative;
}

.settings-button:hover
{
  transform: translateY(-5px);
}

.settings-button:active
{
  transform: scale(0.9);
  transition: transform 0.1s ease;
}

.setting-san {
  width: 100%;
  height: 100%;
}

.credits-button
{
  border:none;
  background: none;
  width: 93px;
  height: auto;
  cursor: pointer;
  font-family: "Gluten", "serif";
  font-size: 20px;
  color: var(--button-text);
  margin: 0;
  position: relative;
}

.credits-button:hover
{
  transform: translateY(-5px);
}

.credits-button:active
{
  transform: scale(0.9);
  transition: transform 0.1s ease;
}

.bubble {
  position: absolute;
  background-color: var(--bubble-bg);
  color: var(--text-color);
  padding: 15px;
  border-radius: 10px;
  max-width: 800px;
  max-height: 400px;
  font-family: "Gluten", serif;
  font-size: 22px;
  top: 170px;
  left: 55px;
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;  /* Position the triangle below the bubble */
  left: 600px;     /* Adjust left position */
  width: 0;
  height: 0;
  border-left: 10px solid transparent;  /* Creates transparent space for the triangle */
  border-right: 10px solid transparent;
  border-top: 10px solid var(--bubble-bg);  /* The color of the triangle */
}

.cover
{
  position: fixed;
  display: flex;
  background: url(https://i.pinimg.com/236x/77/22/c8/7722c8069699d25039b71857b9d07e1e.jpg) -80px -80px;
  color: #D6A7D6;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: bold;
  font-size: 100px;
  font-family: "Gluten", "serif";
  width: 100%;
  height: 100vh;
  margin: 50px auto;
  text-align: center;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.fade-out {
  animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}