/* All */
:root{
  --green-color: #52B22C;
  --orange-color: #FFAA00;
  --red-color: #FF0000;
  --white-color: white;
  --grey-color: #5F676B;
  --blue-color:   #0062FF;
  --background-window: #2f3437;
}

body{
  background-color: #2f3437;
}

p{
  font-family: 'Inter', sans-serif;
}

h1{
  text-align: center;
  color: #edeeee;
  font-size: 35px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: normal;
}

#parameters{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#backRoute ion-icon{
  font-size: 25px;
  color: rgba(255, 255, 255, 0.7);
  margin: 20px;
}

#parameter{
  color: rgba(255, 255, 255, 0.7);
  margin: 15px;
  width: 30px;
}

#parameter:hover{
  cursor: pointer;
}

/* /life css */

.life{
  display: flex;
  justify-content: center;
}

.monthsLife{
  display: flex;
  flex-wrap: wrap;
  width: 636px;
  margin-bottom: 20%;
}

.month, .monthNone, .futurMonths, .currentMonth{
  background-color: var(--green-color);
  margin: 5px;
  height:43px;
  width: 43px;
  border-radius: 10%;
  text-align: center;
  color: var(--white-color);
}

.month:hover, .futurMonths:hover, .currentMonth:hover{
  opacity: 90%;
}

.monthNone{
  background-color: transparent;
}

.futurMonths{
  background-color: var(--grey-color);
}

.currentMonth{
  background-color: var(--white-color);
}

.monthsHeader{
  background-color: #2f3437;
  top: 0px;
  position: sticky;
  margin: auto;
  display: flex;
  width: 636px;
}

.monthsHeader p{
  display: flex;
  color: var(--white-color);
  font-size: 10px;
  margin: 5px;
  height:43px;
  width: 43px;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

#ageYearButton {
  height: 53px;
  width: 100%;
}

.year, .lastYears{
  display: flex;
  align-items: center;
  color: var(--white-color);
  height: 53px;
  background-color: transparent;
  font-size: 30px;
  margin-right: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.lastYears{
  color: #929292;
  
}

#logo-cube-life{
  height: 20px;
  width: 20px;
  border-radius: 3px;
}

#logo-life h1{
  color:#FFFFFF;
  opacity: 56%;
}

@media only screen and (max-width: 750px){
  .yearsDiv{
    pointer-events: none;
    position: absolute;
    left: 1px;
  }

  .year, .lastYears{
    height: 30px;
    font-size: 20px;
    color: var(--white-color);
  }

  .yearsDiv{
    opacity: 20%;
    transition: 800ms;
  }

  .month, .monthNone, .futurMonths, .currentMonth{
    margin: 2px;
    height:26px;
    width: 26px;
  }

  .monthsLife{
    width: 360px;
  }

  .monthsHeader{
    width: 360px;
  }

  .monthsHeader p{
    font-size: 5px;
    margin: 2px;
    height:26px;
    width: 26px;
  }

  .yearsDiv.scroll{
    opacity: 100%;
    transition: 200ms;
  }

  #logo-life h1{
    font-size: 34px;
  }

  #logo-cube-life{
    height: 15px;
    width: 15px;
    border-radius: 3px;
  }
  
}

/* Month css style */

#month{
  opacity: 56%;
}

.monthDiv{
  display: flex;
  justify-content: center;
}

.months{
  display: flex;
  flex-wrap: wrap;
  width: 560px;
  margin-left: 5%;
  margin-right: 5%;
}

.days{
  display: flex;
  justify-content: center;
  background-color: #2f3437;
  top: 0px;
  position: sticky;
  margin-top: 5%;
}

.days p{
  display: flex;
  color: var(--white-color);
  font-size: 15px;
  margin: 5px;
  width: 70px;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.dayNone, .day, .currentDay, .currentDayAfterHour, .futurDays{
  display: flex;
  background-color: var(--white-color);
  margin: 5px;
  height:70px;
  width: 70px;
  text-align: center;
  color: #2f3437;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: normal;
  text-decoration: none;
  border-radius: 10%;
  transition: 130ms;
}

.day:hover, .currentDay:hover, .futurDays:hover{
  opacity: 90%;
}

.dayNone{
  background-color: transparent;
}

.currentDay{
  background-color: var(--white-color);
  color: var(--green-color);
  box-shadow:0px 0px 0px 2px var(--green-color) inset;
}

.futurDays{
  background-color: var(--grey-color);
  color: var(--background-window);
}

ion-icon {
  font-size: 50px;
  color: #444b51;
}

.monthDiv > .backButton, .monthDiv > .nextButton{
  margin-top: 180px;
}

.monthTitle a{
  display: none;
}

@media only screen and (max-width: 750px){
  h1{
    font-size: 22px;
  }

  .months{
    max-width: 343px;
    margin: auto;
  }

  .day, .currentDay, .futurDays, .dayNone{
    width: 41px;
    height:41px;
    margin: 4px;
    font-size: 22px;
  }

  .monthDiv > .backButton, .monthDiv > .nextButton{
    display: none;
  }

  .monthTitle > .backButton, .monthTitle > .nextButton{
    display: block;
    margin-left: 30px;
    margin-right: 30px;
  }

  .monthTitle ion-icon{
    font-size: 30px;
  }

  .monthTitle{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .days{
    display: flex;
    max-width: 360px;
    margin: auto;
    margin-top: 10%;
  }

  .days p{
    display: flex;
    color: white;
    font-size: 9px;
    margin: 5px;
    width: 39px;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
  }
}

/* day css style */
.codex-editor ::selection {
  background-color: var(--grey-color);
}

.ce-block--selected .ce-block__content .cdx-block{
  background-color: var(--grey-color);
} 

.ce-toolbar__settings-btn:hover{
  color: black;
}

.ce-toolbar__plus:hover{
  color: black;
}

[data-day-color="white"]{
  background-color: var(--white-color);
}

[data-day-color="red"]{
  background-color: var(--red-color);
}

[data-day-color="orange"]{
  background-color: var(--orange-color);
}

[data-day-color="green"]{
  background-color: var(--green-color);
}

[data-day-color="grey"]{
  background-color: var(--grey-color);
}

#currentCubePrincipal, #currentColorElement, .colorChoiceElements{
  width: 100px;
  height: 100px;
  margin: 10px;
  cursor: pointer;
  border-radius: 10%;
  transition: 130ms;
}

#currentColorElement:hover, .colorChoiceElements:hover{
  opacity: 90%;
}

#currentCubePrincipal{
  background-color: var(--white-color);
  box-shadow:0px 0px 0px 5px var(--green-color) inset;
}

.dayContent{
  width: 800px;
  margin : auto;
  margin-top: 15px;
}

#dayTitle{
  text-align: left;
  margin-top: 30px;
  opacity: 70%;
}

.cube{
  display: flex;
}

#windowColorsChoiceElement{
  display: flex;
  align-items: center;
  background-color: #282829;
  padding-right: 16px;
  border-radius: 15%;
  height: auto; opacity: 1;
}

#windowColorsChoiceElement.hide{
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: 130ms, 0ms;
  transition-delay: 0ms, 130ms;
}

#color-green{
  background-color: var(--green-color);
}

#color-orange{
  background-color: var(--orange-color);
}

#color-red{
  background-color: var(--red-color);
}

#color-white{
  background-color: var(--white-color);
}

#color-grey{
  background-color: var(--grey-color);
}

#windowColorsChoiceElement ion-icon{
    width: 20px;
}

.dayContent .input{
  background: transparent;
  color: var(--white-color);
  display: block;
  width: 100%;
  min-height: 50vh;
  overflow: auto;
  outline: none;
  font-family: 'Inter', sans-serif;
}

#textBox{
  background-color: transparent;
  color: var(--white-color);
  width: 100%;
  height: 600px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border: none;
    overflow: auto;
    outline: none;

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    resize: none;
}

.cdx-block{
  color: var(--white-color);
  font-family: 'Inter', sans-serif;
}

.ce-toolbar__settings-btn{
  color: var(--white-color);
}

.ce-toolbar__plus{
  color: var(--white-color);
}

.ce-toolbar__plus {
  color: var(--grey-color);
}
.ce-toolbar__settings-btn {
  color: var(--grey-color);
}

.ce-block__content {
  margin: 0;
}

.ce-toolbar__actions {
  right: 113%;
}

.ce-popover__container{
  font-family: 'inter';
}

.recorder-container {
  display: flex;
  align-items: center;
  padding: 20px;
}


.record-button {
  background: #ff0000;
  border-radius: 50px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 0;
  touch-action: manipulation;
}

.record-button.expanded {
  width: 300px;
  justify-content: flex-start;
  padding: 0 10px;
  background: #444;
}

.button-content {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.mic-icon {
  width: 24px;
  height: 24px;
  fill: white;
  flex-shrink: 0;
}

.close-icon {
  width: 20px;
  height: 20px;
  fill: white;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expanded .close-icon {
  opacity: 1;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  width: 140px;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.expanded .waveform {
  opacity: 1;
}

.waveform-bar {
  width: 2px;
  height: 100%;
  background: white;
  transform-origin: center;
  transform: scaleY(0.1);
  transition: transform 0.1s ease;
}

.timer {
  color: white;
  min-width: 45px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

.expanded .timer {
  opacity: 1;
}

@media only screen and (max-width: 800px){
  .dateAndCubes{
    position: relative;
    display: flex;
    align-items: center;
  }

  .dayContent{
    max-width: 350px;
  }

  #currentColorElement{
    margin-left: 20px;
  }

  #currentColorElement, .colorChoiceElements, #currentCubePrincipal{ 
    width: 50px;
    height: 50px;
    margin: 4px;
  }

  #windowColorsChoiceElement{
    z-index: 10;
  }

  #dayTitle{
    position: absolute;
    z-index: -100;
    left: 50px;
    text-align: left;
    margin: 0;
    margin-left: 10px;
    font-size: 23px;
  }

  #textBox{
    width: 330px;
    margin-top: 15px;
  }

  .record-button {
    width: 40px;
    height: 40px;
}

  .record-button.expanded {
      width: 90vw;
      max-width: 300px;
      transition: all 0.4s ease-out;
  }

  .waveform {
      width: 80px;
  }

  .waveform-bar {
      width: 1px;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
  }

  .close-icon {
      padding: 12px;
      min-width: 44px;
      min-height: 44px;
  }

  .timer {
      font-size: 12px;
      min-width: 35px;
  }

  .ce-toolbar__actions {
    right: auto;
  }
  
}

/* Styles spécifiques iOS */
@supports (-webkit-touch-callout: none) {
  .record-button.expanded {
      width: 85vw;
  }
}

/* Styles spécifiques Android */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  .record-button.expanded {
      width: 88vw;
  }
}

/* Login css style */

#log-in{
  display: flex;
  width: 300px;
  flex-direction: column;
  margin: auto;
  font-family: 'Inter', sans-serif;
}

#log-in h1{
  font-size: 100px;
  margin-top: 0px;

}

.logo{
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.logo-cube{
  height: 30px;
  width: 30px;
  background-color: var(--green-color);
  border-radius: 6px;
}

.data-login{
  margin: auto;
  width: 270px;
  height: 40px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  padding-left: 10px;
  font-family: 'Inter', sans-serif;

}

#submit-login{
  margin-top: 10px;
  margin: auto;
  background-color: var(--green-color);
  border: none;
  border-radius: 5px;
  color: white;
  width: 70px;
  height: 40px;
  font-family: 'Inter', sans-serif;
}

#submit-login:hover{
  cursor: pointer;
  opacity: 60%;
  transition: 0.3s;
}

#background-logo{
  display: flex;
  flex-wrap: wrap;
  transform: rotate(-30deg);
  position: absolute;
  overflow-y: scroll;
  max-height: 65%;
  max-width: 95%;
  top: -20%;
  left: -30%;
  z-index: -100;
  opacity: 3%;
}

.cube-background-logo{
  height: 150px;
  width: 150px;
  margin-left: 20px;
  margin-bottom: 20px;
  background-color: var(--green-color);
}

.stay-logged{
  display: flex;
  align-items: center;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin-left: 10px;
  margin-bottom: 12px;
}

.stay-logged label{
  cursor: pointer
}

#data-error{
  text-align: center;
  color: var(--white-color);
  font-size: 12px;
  color: var(--red-color);
}

/* Register */

#register{
  display: flex;
  width: 300px;
  flex-direction: column;
  margin: auto;
  font-family: 'Inter', sans-serif;
}

#register h1{
  font-size: 100px;
  margin-top: 0px;

}

.logo{
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.logo-cube{
  height: 30px;
  width: 30px;
  background-color: var(--green-color);
  border-radius: 6px;
}

.data-register{
  margin: auto;
  width: 270px;
  height: 40px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  padding-left: 10px;
  font-family: 'Inter', sans-serif;

}

#submit-register{
  margin-top: 10px;
  margin: auto;
  background-color: var(--blue-color);
  border: none;
  border-radius: 5px;
  color: white;
  width: 70px;
  height: 40px;
  font-family: 'Inter', sans-serif;
}

#submit-register:hover{
  cursor: pointer;
  opacity: 60%;
  transition: 0.3s;
}

#background-logo{
  display: flex;
  flex-wrap: wrap;
  transform: rotate(-30deg);
  position: absolute;
  overflow-y: scroll;
  max-height: 65%;
  max-width: 95%;
  top: -20%;
  left: -30%;
  z-index: -100;
  opacity: 3%;
}

.cube-background-logo{
  height: 150px;
  width: 150px;
  margin-left: 20px;
  margin-bottom: 20px;
  background-color: var(--green-color);
}

#data-error{
  text-align: center;
  color: var(--white-color);
  font-size: 12px;
  color: var(--red-color);
}

.register-label{
  color: var(--white-color);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin-left: 10px;
}

.authentication-container{
  display: flex;
  justify-content: end;
  margin-bottom: 30px;
}

.authentication-button{
  display: flex;
  border-radius: 5px;
  width: 80px;
  height: 35px;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
  font-family: 'inter';
  font-size: 14px;
  text-decoration: none;
  margin: 15px;
  transition: 0.3s;
}

.authentication-button:hover{
  opacity: 70%;
}

#register-button{
  background-color: var(--blue-color);
}

#login-button{
  background-color: var(--green-color);
}

.empty-space {
  height: 53px;
  width: 100%;
}

@media only screen and (max-width: 750px) {
  .empty-space {
    height: 30px;
  }

  .recorder-container {
    display: none;
  }
}

.dashboard {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(47, 52, 55, 0.95);
  padding: 15px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.toggle-buttons {
  display: flex;
  gap: 10px;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn.active {
  color: white;
  background: var(--green-color);
  opacity: 1;
}

.toggle-btn:not(.active) {
  opacity: 0.8;
}

.toggle-btn:not(.active):hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

@media only screen and (max-width: 750px) {
  .dashboard {
    bottom: 15px;
    padding: 12px 15px;
  }

  .toggle-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}