* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  touch-action: manipulation;
}

h1 {
  color: #426696;
  font-weight: 600;
  font-size: 3rem;
  opacity: 0.8;
}

h2, p {
  color: #658ec6;
  font-weight: 500;
  opacity: 0.8;
}

h3 {
  color: #426696;
  font-weight: 600;
  opacity: 0.8;
}

.circle1,
.circle2 {
  background: white;
  background: linear-gradient(
    to right bottom,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.3)
  );
  height: 20rem;
  width: 20rem;
  position: absolute;
  border-radius: 50%;
}

.circle1 {
  top: 5%;
  right: 15%;
}
.circle2 {
  bottom: 5%;
  left: 10%;
}

body{
  background: linear-gradient(to right top, #65dfc9, #6cdbeb);
}

main {
  
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.glass {
  background: white;
  background: linear-gradient(
    to right bottom,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.3)
  );
  border-radius: 2rem;
  z-index: 2;
  backdrop-filter: blur(2rem);
  display: flex;
  width: 60%;
  margin: 3rem 0rem;
  height: calc(100% - 6rem);
}

.dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  background: linear-gradient(
    to right bottom,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.3)
  );
  border-radius: 2rem;
}

.deco
{
  width: 50px;
  bottom: 1.5em;
  cursor: pointer;
}

.link {
  display: flex;
  margin: 2rem 0rem;
  padding: 1rem 5rem;
  align-items: center;
  cursor: pointer;
}

.link img {
width: 35px;
}

.link h2 {
  padding: 0rem 2rem;
}

/* SECTION */
.section {
  margin: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 2;
}

.status {
  margin-bottom: 3rem;
}

.status input {
  background: linear-gradient(
    to right bottom,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.3)
  );
  border: none;
  width: 50%;
  padding: 0.5rem;
  border-radius: 2rem;
}

.cards
{
  padding-right: 1rem;
}

.card {
  display: flex;
  background: linear-gradient(
    to left top,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.5)
  );
  border-radius: 1rem;
  margin: 1rem 0rem;
  padding: 1rem 2rem;
  box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
  justify-content: space-between;
}

.progress {
  background: linear-gradient(to right top, #65dfc9, #6cdbeb);
  width: 100%;
  height: 25%;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.progress::after {
  content: "";
  width: 100%;
  height: 100%;
  background: rgb(236, 236, 236);
  position: absolute;
  left: 60%;
}
.card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.percentage {
  font-weight: bold;
  background: linear-gradient(to right top, #65dfc9, #6cdbeb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.button {
  display: inline-block;
  
  cursor: pointer;
  color: white;
  background-color: #426696;
  border-radius: 1rem;
  padding: 0.7rem 1.2rem;
  box-shadow: 3px 3px 15px rgba(122, 122, 122, 0.35);
  font-weight: normal;
}

.fake-button {
  display: inline-block;
  cursor: pointer;
  color: #426696;
  font-weight: normal;
  font-weight: bold;
  float: right;
  padding-right: 1rem;

}

.voirplus
{
  font-size: 1.3rem;
}

.button-connexion {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
}

#form_connexion
{
  max-width: 300px;
  position: relative;
}


#reponse
{
  padding: 0.1em 0.35em;
}

#reponse:focus
{
  outline: none;
}

.calcul
{
  font-size: 4rem;
  color: #426696;
  font-weight: bold;
}

.user img
{
  width: 150px;
}

.button-home
{
  margin-right: 2rem;
}


.ui-dialog-titlebar-close
{
  visibility: hidden;
}

.ui-dialog
{
  color: black;
  font-size: 1.5rem;
}

.ui-dialog-titlebar-bravo
{
  background-color: rgba(39, 196, 39, 0.5);
}

.ui-dialog-titlebar-error
{
  background-color: rgba(207, 33, 33, 0.5);
}

.ui-dialog-titlebar-bilan
{
  background-color: rgba(33, 103, 207, 0.5);
}

.ui-widget-content
{
  border: 0;
}

.correct, .pascorrect
{
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

.correct
{
  border-left: 5px solid rgba(20, 172, 20, 0.8);
}

.pascorrect
{
  border-left: 5px solid rgba(172, 20, 20, 0.8);
}

.bilan
{
  max-height: 50vh;
  overflow-y: scroll;
}

.historique
{
  height: calc(100vh - 23rem);
  
  overflow-y: scroll;
  margin-bottom: 2rem;
}

.historique::-webkit-scrollbar, .bilan::-webkit-scrollbar {
  width: 10px;

}

/* Track */
.historique::-webkit-scrollbar-track, .bilan::-webkit-scrollbar-track {

}
 
/* Handle */
.historique::-webkit-scrollbar-thumb, .bilan::-webkit-scrollbar-thumb {
  background: #426696;
  
}

/* Handle on hover */
.historique::-webkit-scrollbar-thumb:hover, .bilan::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.taille2rem
{
  font-size: 2rem;
}

#check_validation img
{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20rem;
  height: 20rem;
  margin-top: -10rem; /* Half the height */
  margin-left: -10rem;
  display: none;
}

.ui-dialog {
  max-width: 600px;
}

/*--- p ---*/
.numpad {
  width: 100%;
  padding: 5px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: auto;
}
.numpad button {
  aspect-ratio: 1.5;
  width: 100%;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 2rem;
  background-color: white;
  border: 0px;
}

.button_cache
{
  visibility: hidden;
  border: 0px;
}

.numpad .button_delete
{
background-color: #c0b0d7;
}

.numpad .button_entree
{
background-color: #45c7f6;
}

.mobilenav
{
  display: none;
}

@media only screen and (max-width : 1400px) {
  main
  {
    display: block;
    padding: 1px;
  }

  .circle1, .circle2
  {
    display: none;
  }

  .glass
  {
    width: calc(100% - 4rem);
    height: min-content;
    margin: 2rem;
  }

  .dashboard
  {
    display: none;
  }

.mobilenav
{
  display: block;
}


  .section {
    margin: 1rem;
    margin-bottom: 0rem;
  }

  .timeleft
  {
    margin: auto;
    text-align: center;
  }

  .status h1
  {
    font-size: 2rem;
  }

  .status input {
    width: 80%;
  }

  .calcul
  {
    font-size: 3rem;
    color: #426696;
    font-weight: bold;
  }

  .ui-dialog {
    max-width: 600px;
  }

  .numpad {
    display: grid;
    margin-top: 2rem;
  }

  #reponse {
    pointer-events: none; 
  }
}



/* Podium !! */

 .number-holder {
	 transition: all 500ms ease-in-out;
}
 .scoreboard {
	 display: flex;
	 margin: 0 auto;
	 flex-direction: column;
}
 .scoreboard__item {
	 display: flex;
	 padding: 1rem 0;
	 width: 100%;
	 margin-top: 2rem;
	 flex-wrap: wrap;
	 jusitfy-content: flex-end;
	 opacity: 0;
	 top: 20px;
	 transition: 500ms ease-in-out;
}
 .scoreboard__item.is-visible {
	 opacity: 1;
	 top: 0;
	 transition: 500ms ease-in-out;
}
 .scoreboard__title {
	 width: 300px;
	 font-weight: 600;
}
 .scoreboard__title small {
	 color: #333;
}
 .scoreboard__status {
	 font-weight: 300;
}
 .scoreboard__numbers {
	 font-weight: 600;
	 text-align: right;
	 align-self: flex-end;
	 margin-left: 20px;
	 flex: 1;
}
 .scoreboard__bar {
	 width: 100%;
	 margin-top: 1rem;
	 background: #ececec;
	 height: 10px;
	 position: relative;
	 border-radius: 5px;
	 transition: all 500ms ease-in-out;
	 display: flex;
	 flex-basis: 100%;
}
 .scoreboard__bar:before {
	 content: "";
	 width: 100%;
	 flex-basis: 100%;
	 clear: both;
	 display: block;
}
 .scoreboard__bar-bar {
	 position: absolute;
	 height: 10px;
	 left: 0;
	 top: 0;
	 width: 0;
	 border-radius: 5px;
	 background: linear-gradient(to right, #f0cf65 0%, #ebc137 100%);
	 transition: all 250ms ease-in-out;
}
 .scoreboard__podiums {
	 display: flex;
	 flex-direction: row;
	 justify-content: space-around;
	 margin: 20px auto 100px auto;
	 min-height: 350px;
}
 .scoreboard__podiums .scoreboard__podium {
	 margin: 0 20px;
	 display: flex;
	 flex-direction: column;
	 align-self: flex-end;
	 flex-wrap: wrap;
	 flex: 1;
	 opacity: 0;
	 top: -10px;
}
 .scoreboard__podiums .scoreboard__podium.is-visible {
	 top: 0;
	 opacity: 1;
	 transition: all 500ms ease-in-out;
}
 .scoreboard__podiums .scoreboard__podium-rank {
	 font-size: 4rem;
	 font-weight: 700;
	 position: absolute;
	 left: 50%;
	 transform: translate(-50%, -50%);
	 bottom: 0px;
}
 .scoreboard__podiums .scoreboard__podium-base {
	 height: 0;
	 background: #ececec;
	 color: #fff;
	 min-width: 150px;
	 border-radius: 5px;
	 transition: all 1000ms ease-in-out;
	 opacity: 0;
	 position: relative;
}
 .scoreboard__podiums .scoreboard__podium-base.is-expanding {
	 opacity: 1;
}
 .scoreboard__podiums .scoreboard__podium-base--first {
	 background: linear-gradient(to bottom, #bd4f6c 0%, #9e3b55 100%);
}
 .scoreboard__podiums .scoreboard__podium-base--second {
	 background-color: #f0cf65;
	 background: linear-gradient(to bottom, #f0cf65 0%, #ebc137 100%);
}
 .scoreboard__podiums .scoreboard__podium-base--third {
	 background-color: #5e9ead;
	 background: linear-gradient(to bottom, #5e9ead 0%, #49828f 100%);
}
 .scoreboard__podiums .scoreboard__podium-number {
	 text-align: center;
	 font-size: 1.2rem;
	 margin-top: 10px;
}
 .scoreboard__podiums .scoreboard__podium-number small {
	 display: block;
	 font-size: 60%;
	 color: #333;
	 line-height: 1.5;
	 text-transform: uppercase;
}
 #scoreboard__items {
	 position: relative;
	 margin: 0;
	 padding: 0;
	 list-style-type: decimal;
}


 .bump {
	 animation: bump 500ms ease-in-out;
}
 @keyframes bump {
	 50% {
		 transform: scale(1.1);
	}
	 60% {
		 transform: scale(1);
	}
}
 

#menuToggle {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 25px;
  left: 25px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input
{
  display: flex;
  width: 40px;
  height: 32px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

#menuToggle span
{
  display: flex;
  width: 29px;
  height: 2px;
  margin-bottom: 5px;
  position: relative;
  background: black;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 5px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-3px, -1px);
  background: #36383F;
}
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

#menu
{
  position: absolute;
  width: 250px;
  height: 600px;
  box-shadow: 0 0 10px #85888C;
  margin: -50px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  background-color: #F5F6FA;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  transition-delay: 2s;
list-style: none;
display: flex;
  align-items: center;
  cursor: pointer;
}

#menu li img
{
 width : 2rem;
}


#menuToggle input:checked ~ ul
{
  transform: none;
}




/*
.button_entree
{
  grid-column: span 2;
  background-color: red;
}*/
				