/* Import Bebas Neue font */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  --title-size: clamp(50px, 10vmin, 150px); /* Uses the smaller of vw or vh */
  --button-size: clamp(16px, 2vmin, 20px);
  --circle-size: min(80vmin, 600px); /* Uses vmin instead of vw */
  --spacing: calc(var(--circle-size) * 0.15);
  --size: 35px;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: var(--default-font);
  background-size: 400% 400%;
  background: var(--default-background-color);
  animation: gradientAnimation 10s ease infinite;
}


#maincontent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background-color: red; */
  overflow: hidden;
  padding-bottom: 50px;
}

.Title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: var(--title-size);
  padding-bottom: 2vh;
  font-family: 'Bebas Neue', sans-serif !Important;
  text-shadow: 0px 0px 15px var(--default-shadow-color);
  display: flex;
  flex-direction: column; 
  align-items: flex-end; 
  text-align: right;
  gap: 10px;
  padding-right: 10px;
  padding-left: 10px;
}

#Title1, #Title2 {
  display: inline-block;
}

.buttons {
  gap: 0.5vh;
  padding-top: 3vh;
}

svg {
  margin: auto;
  display: block;
  width: var(--circle-size);
  height: var(--circle-size);
}

text {
  font-family: 'Arial', sans-serif;
  dominant-baseline: middle;
  text-anchor: middle;
  font-family: var(--default-circle-font);
  font-weight: lighter;
}

.major {
  font-size: 18px;
  font-weight: bold;
}

.minor {
  font-size: 14px;
}

.accidentals {
  font-size: 12px;
}

button {
  font-size: var(--button-size);
  padding: 1vh 2vw;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


button,
.Circle {
  background-color: var(--default-fill-secondary);
  fill: var(--default-fill-secondary);
}

svg text,
button,
.Title {
  fill: var(--default-text-color);
  color: var(--default-text-color);
}

.slice {
  fill: transparent;
  stroke: var(--default-stroke-slice);
  transition: fill 0.5s ease-in-out;
}

.slice:hover {
  fill: var(--default-hover-color);
  cursor: pointer;
}

.slice-group, .text {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Ease-in-out */
}

.family-slice {
  fill: var(--default-family-color);
}

button {
  border: 1px solid var(--default-stroke);
  box-shadow: 0 0 10px var(--default-shadow-color);
}

button:hover {
  background-color: var(--default-hover-color);
}

.Circle {
  filter: url(#drop-shadow);
}

.dropdown-content {
  position: fixed; 
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: #f0f0f0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.force-hover {
  fill: var(--default-hover-color);
  transition: fill 0.2s ease-in-out;
}


@media screen and (max-width: 768px), screen and (max-height: 768px) { 
  #QR,
  #byJoan {
    display: none;
  }

  #SoMe {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    position: fixed;
    right: 0vh;
    bottom: 45%;
    gap: 0vh !important;
  }

  #SoMe img {
    height: 35px !important; 
    width: 35px !important; 
  }
}

@media screen and (max-width: 1400px), screen and (max-height: 768px){
  .info-box,
  #questionmark {
    display: none !important;
  }
}

.text,
.buttons,
.Title,
.info-box,
.dropdown-content,
#questionmark,
#links {
  user-select: none !important;
}

.text, .steps, .numbers {
  pointer-events: none !important;
  user-select: none !important;
}

#questionmark {
  color: rgba(255, 255, 255, 0.5);
  background-color: transparent;
  width: calc(var(--size) * 0.6);
  height: calc(var(--size) * 0.6);
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: calc(var(--size) * 0.3);
  display: flex;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: fixed; 
  transform: translateX(100%);
}

#sidepanel-right {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh; 
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; 
  overflow-y: auto;
}

.info-box {
  /* background-color: red; */
  margin-top: 0;
  margin-bottom: 5vh;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
  padding-right: 10px;
  opacity: 1; /* WETHER THE INFO BOX IS INITIALLY HIDDEN OR OPEN*/
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.box-container {
  display: flex;
  gap: calc(var(--size) * 0.08);
  margin-bottom: calc(var(--size) * 0.08);
  justify-content: flex-end;
}

.box {
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--size) * 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  font-size: calc(var(--size) * 0.25);
  text-align: center;
}

td {
  padding-left: 10px;
}

#links {
  /* background-color: red; */
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Aligns items to the right */
  width: 100%; 
  padding-right: 10px; /* Adjust as needed */
  margin-bottom: 60px;
}

#byJoan {
  align-self: right;
  color: white;
  font-family: var(--default-font);
  margin-bottom: 0;
  transform: translateX(-9%);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  font-size: 1.1vh;
}

table {
  margin-left: auto;  /* Push table to the right */
  margin-right: 0;
  text-align: right; /* Align text inside table cells */
}

#QR {
  width: 15vh;
  height: auto;
  margin-bottom: 5px; 
}

#SoMe {
  display: flex;
  justify-content: center;
  gap: 1vh;
  transform: translateX(-9%);
}

#SoMe img {
  width: 3.5vh;
  height: 3.5vh;
  border-radius: 20%;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}
