/* The overlay effect with black background */
.overlay {
  height: 100%;
  width: 100%;
  display: none;            /* invisible */
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0, 0.9); /* Black with a little bit see-through */
}

.infoWindow {
  z-index: 1;
  position: absolute;                       /* postulat de départ */
  top: 24%; left: 15%;                      /* à 50%/50% du parent référent */
  background-color: rgba(0,0,0, 0.9);       /* Black with a little bit see-through */
  border: 1px solid black;
  display: none;                            /* invisible */
}

.infoWindow p{
  text-align: center;
  border: 0px solid orange;
  font-size: 1.6em;
}

/* The content */
.overlay-content{
  border: 1px solid white;
  display: flex;
  flex-direction: column;
  width: 50%;
  min-width: 550px;
  height: 30%;
  min-height: 150px;
  justify-content: center;    /* alignement vertical    */
  align-content: center;
  align-items: center;        /* alignement horizontal  */
  margin: auto;
  background-color: rgb(0,0,0);
  text-align: center;
  border-radius: 5px;
}

#homeOverlay{
    height: 200px; 
    width: 550px;
}

#accountOverlay{
    height: 200px; 
    width: 300px;
}

#tutorialOverlay{
    height: 600px; 
    width: 700px;    
}

#modelDeleteOverlay{
    height: 200px;
    width: 500px;
}

/* Close button */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
  cursor: pointer;
  color: white;
}

.overlay .closebtn:hover {
  color: #ccc;
}

.overlay .button{
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    text-decoration: none;
    color: initial;

    height: 30px;
    line-height: 30px;
    font-size: 1.2em;
    border: 2px solid white;
    border-radius: 26px;
    background-color: white;
    color: black;
    cursor: pointer;
    text-align: center;
}

.overlay .button:hover {
  background: #ddd;
  color: black;
}

.overlay-TopPart{
  width: 90%;
  border: 0px solid white;
  border-radius: 5px;
  display: block;
  flex-direction: column;
  align-content: center;
  align-items: center;
  margin: 0px;
  padding: 0px;
}

.overlay-TopPart p{
  /* normal title size text by default */
  color: white;
  font-size: 1.4em;
}

.overlay-BtmPart{
  width: 90%;
  border: 0px solid white;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.overlay .text{
  /* normal text size in middle part by default */
  color: white;
  font-size: 1.2em;
}

.overlay form{
  display: flex;
  --border: 1px solid orange;
  width: 100%;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-90deg);
  }
}


/*      FOR PORTRAIT        */
/****************************/
@media (orientation: portrait){

    .overlay-TopPart p{
        /* normal title size text by default */
        color: white;
        font-size: 42px;
    }

    .overlay .text{
        /* normal text size in middle part by default */
        color: white;
        font-size: 40px;
    }

    .overlay .button{
        -webkit-appearance: button;
        -moz-appearance: button;
        appearance: button;
        text-decoration: none;
        color: initial;

        height: 60px;
        line-height: 60px;
        font-size: 32px;
        border: 2px solid white;
        border-radius: 32px;
        background-color: white;
        color: black;
        cursor: pointer;
        text-align: center;
    }

    #homeOverlay{
        height: 350px; 
        width: 800px;
    }

    #accountOverlay{
        height: 400px; 
        width: 850px;
    }

    #tutorialOverlay{
        height: 1100px; 
        width: 1000px;    
    }

    #modelDeleteOverlay{
        height: 400px;
        width: 900px;
    }
}
