@import url("https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Ms+Madi&display=swap");

:root {
  --text: rgb(239, 229, 234);
  --background: rgb(11, 5, 8);
  --primary: rgb(216, 158, 179);
  --secondary: rgb(101, 165, 176);
  --accent: rgb(114, 166, 144);
  --mainFont: "Gowun Dodum", sans-serif;
  --titleFont: "Ms Madi", cursive;
}
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: var(--background);
}
h1 {
  position: absolute;
  font-family: var(--titleFont);
  font-size: 4rem;
  top: 7%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2; 
}
#p5_loading{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.4rem;
  z-index: 2;
  font-family: var(--mainFont);
}
#slider{
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.container {
  position: absolute;
  font-size: 4rem;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
}

#visualiser {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 5s ease-in; 
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); 
  align-items: center;
  justify-content: center;
}
h2{
  text-align: center;
}
.breathing-state {
  font-size: 2rem;
  font-family: var(--titleFont);
  color: white;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-content {
  background-color: rgb(101, 165, 176);
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  /* text-align: center; */
  color: #000000;
  font-family: var(--mainFont);
}

.close-button {
  color: #000000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #d4d4d4;
  text-decoration: none;
}

li{
  text-align: left;
}
#start-button {
  background-color: #e1ecf4;
  border-radius: 3px;
  border: 1px solid var(--secondary);
  box-shadow: rgba(255, 255, 255, .7) 0 1px 0 0 inset;
  box-sizing: border-box;
  color: black;
  cursor: pointer;
  display: block;
  font-family: var(--mainFont);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15385;
  margin: 0;
  outline: none;
  padding: 8px .8em;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
  margin: 0 auto;
}

#start-button :hover,
#start-button :focus {
  background-color: black;
  color: var(--background);
}

#start-button :focus {
  box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}

#start-button:active {
  background-color: var(--secondary);
  box-shadow: none;
  color: black;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 8px;
  background: #ccc;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s ease-in-out;
}

input[type="range"]:hover {
  background: #bbb;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #72a690;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #5e8c77;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #72a690;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #5e8c77;
}

input[type="range"]::-moz-range-track {
  background: #ccc;
  height: 8px;
  border-radius: 5px;
}
