@font-face {
    font-family: 'TYPO';
    src: url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&family=Permanent+Marker&family=Playfair+Display+SC:wght@700&display=swap');
  }


  

body {
    /* background-color: rgba(63, 63, 63, 0.427); */
    font-family: 'TYPO';
    /* background:url(digital-art-abstract-space-sky-stars-beach-207601-wallhere.com.jpg) ; */
        /* background:url(pexels-felix-mittermeier-956999.jpg) ;    */
        background:url(pexels-gradienta-7135037.jpg) ;  

        backdrop-filter:brightness(70%) contrast(120%);
    background-size: cover;
    /* L'image prendra 100% de l'espace, quitte à la crop */
    background-position: center;
    /* Centre la position de l'image */
    background-repeat: no-repeat;
    filter:contrast(0.8);
    zoom: reset;
    margin: 0;
    padding: 5px;
   	overflow-x:hidden;
}

body header {
    /* Permet de rendre le tout flexible */
    /* Permet de mettre de la couleur en arrière plan */
    backdrop-filter: grayscale(0.5) opacity(0.8);
    /* background-image: url(https://images2.alphacoders.com/964/964126.png); */
    background-attachment: fixed;   
    /* Fixe l'image pendant le scroll */
    background-size: cover;
    /* L'image prendra 100% de l'espace, quitte à la crop */
    background-position: center;
    /* Centre la position de l'image */
    background-repeat: no-repeat;
    /* Empêche l'image de se répéter en fonction de la taille d'écran */
    /* Espace entre les objets */
    justify-content: space-between;
    /* alignement des objets sur un axe */
    align-items: center;
    /* Permet de mettre un pas de chaque cotés */
    padding: 0px;
    border-radius: 20px;
    /* background-image: url() */
    top: 0px;
    height: 100px;
    border: solid 2px rgba(37, 36, 36, 0.39);
    height: 165px;
    position: relative;
    z-index: 3;
    background-color: rgba(167, 167, 232, 0.164);

}

header h1 {
    border: solid 2px whitesmoke;
    border-radius: 20px;
    text-align: center;
    display: block;
    margin-right: auto;
    margin-left: auto;
    font-family: 'TYPO';
    color: whitesmoke;
}

header #listhead {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 0;
}

header #listhead .liheader {
    display: inline-block;
    justify-content: space-between;
    margin-inline: 70px;
    vertical-align: middle;
    filter: drop-shadow(0 0 0.25rem rgb(82, 82, 163));
    z-index: 4;
}

#imgmenu{
    display: none;
    animation: .5s;
    border: none;
    cursor: pointer;
    padding-right: 20px;
    max-width:50px;
    max-height: 50px;
}

header .button #imgnon, #imgRandom{
    display: block;
    border: solid 10px ;
    /* background-color: rgb(82, 82, 163); */
    text-decoration: none;
    border-radius: 200px;
    box-shadow: 2px 2px rgba(82, 82, 163, 0.212);
    height: 40px;
    cursor: pointer;
    filter: invert(1);
    transition:transform .5s;
}

header .button img:hover {
    
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
}


header input {
    display: flex;
    background-color: rgb(0, 179, 211);
    color: rgb(0, 0, 0);
    padding: 10px;
    border: solid 2px rgba(26, 10, 10, 0.5);
    border-radius: 50px;
    vertical-align: middle;
    cursor: text;
    box-shadow: 1px 1px rgb(41, 8, 87);
    width: 600px;
    height: 30px;
    margin-top: 50px;
    
}

.suggestion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    padding: 10px;
    border: solid 0.2px rgba(0, 0, 0, 0.078);
    vertical-align: middle;
    font-size: 22px;
    background-color: rgb(0, 179, 211);
    overflow-y: hidden;
    text-decoration: none;
    font-size: 14px;

}

#Error{
    /* display: none;   */
    position: absolute;
    height: 40px;
    background-color: white;
    color: black;
    font-size: 20px;
    z-index: 1000;
}

#suggestions {
    /* width: 580px; */
    max-height: 267px;
    overflow-y: hidden;
    display: block;
    flex-direction: column;
    align-items: center;
    position: absolute;
    border-radius: 0px 0px 30px 30px;
    opacity: 93%;
    border: solid 2px rgb(0, 0, 0);
    border-top: 0;
    margin-left: 21px;
    overflow-x: hidden;

}

.suggestion:hover{
    background-color: cornflowerblue;
    color: #ffff;

}

#menu li:hover {
    background-color: cornflowerblue;
    color: #ffff;
}

div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    position: relative;
}

div h1{
    font-size: 15px;
    color: rgb(255, 255, 255);
    position: absolute;
    top: 0px;
    font-family: 'TYPO';
    z-index: 2;
}

div ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

div ul li {
    display: inline-flex;
    justify-content: space-between;
    margin-inline: 80px;

}

#big {
    padding: 5px 50px;
    width: 275px;
    height: 400px;
    border-radius: 5000000px;
    background-color: transparent;
    opacity: 95%;
    transition: all 0.4s ease-in-out;
    position: relative;
    filter: contrast(150%);
    
}

#math {
    box-shadow: -20px 0px 20px RGBa(33, 65, 102, 0.587);
    transition: all 0.4s ease-in-out;
}

#physic {
    box-shadow: 20px 0px 20px RGBa(33, 65, 102, 0.587);
    transition: all 0.4s ease-in-out;
}

.bse {
    border: solid 2px rgba(33, 65, 102, 0.587);
    width: 100px;
    height: 100px;
    border-radius: 100000000px;
    opacity: 80%;
    filter: blur(0.3px);
    
}

div img:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

div a:focus {
    -webkit-animation: effect_button 0.8s ease-out;
    animation: effect_button 0.8s ease-out;
}

@-webkit-keyframes effect_button {
    50% {
        transform: scale(1.5, 1.5);
        opacity: 0;
    }

    99% {
        transform: scale(0.001, 0.001);
        opacity: 0;
    }

    100% {
        transform: scale(0.001, 0.001);
        opacity: 1;
    }
}

@keyframes effect_button {
    50% {
        transform: scale(1.5, 1.5);
        opacity: 0;
    }

    99% {
        transform: scale(0.001, 0.001);
        opacity: 0;
    }

    100% {
        transform: scale(0.001, 0.001);
        opacity: 1;
    }
}

::-webkit-scrollbar {
    width: 5px;
    border-radius: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(62, 62, 62);
    border-radius: 10px;
}

footer {
    margin-top: 50px;
    font-size: small;
    border: solid 2px rgb(56, 56, 93);
    text-align: center;
    text-decoration: none;
    backdrop-filter: grayscale(.5) opacity(0.8);
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(167, 167, 232, 0.164);
    color: white;
}

footer a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}


/* responsive */

@media (min-width: 1820px) {
    header h1{
        font-size: 50px;
    }

    div h1{
        margin-top: 20px;
        font-size: 25px;
    }
    
    header #menu{
        margin-right: 20px;
    }

    header nav{
        width: 580px;
    }

    header #listhead li{
        margin-inline: 100px;
    }

    body header #listhead .button img{
        height: 50px;
        width: 50px;
    }
        
    body header{
        height: 215px;
    }


    body header #menu li{
        margin: 0;
    }

    
    #math,
    #physic {
        position: relative;
        width: 10rem;
        height: 10rem;
    }
    
    #big {
        position: relative;
        width: 400px;
        height: 600px;
    }
    
    header #suggestions{
        width: 780px;
        max-height: 400px;
    }
    
    header .suggestion{
        font-size: 25px;
        
    }
    
    header input{
        width: 800px;
        height: 40px;
        font-size: large;
        border-radius: 40px;
    }
    

}

@media (max-width: 1200px) and (min-width: 1030px) {
  	body div ul {
        margin-inline: 10px;
    }
    
    #math,
    #physic {
        position: relative;
        width: 5rem;
        height: 5rem;
    }
    
    #big {
        position: relative;
        width: 125px;
        height: 175px;
    }
    
    #biga {
        margin: 0;
    }


    body header #menu li{
        margin: 0;
    }
}


#menu{
    position: absolute;
    display:none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    /* border: solid 0px black; */
    border-top: 0px;
    width: 100px;
    background-color: aliceblue;
    border-radius: 0px 0px 10px 10px;
    z-index: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    
}

#menu li a{
    padding-inline: 0;
    margin: 0;
    text-decoration: none;
    color: black;
}

#menu li{
    padding: 2px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    /* justify-content: center;     */
    border: solid 0.5px rgba(128, 128, 128, 0.32) ;
    border-left: 0;
    border-right: 0;
}

.sousmenu{
    display: none;
    position: absolute;
    background-color: aliceblue;
    padding: 0px;
    margin-left: 99px;
    border-radius: 0 10px 10px 10px;
    border-left: 0;
    overflow: hidden;
    color: black;
    /* top: 65px; */
    border: solid 1px black;
}

#menuMATH:hover #Msousmenu{
    display: block;
}

#menuPHYSICS:hover #Psousmenu{
    display: block;
}





@media only screen and (max-width: 1030px){
  ::-webkit-scrollbar {
        width: 0px;
    	display:none;
    }
    header{
        height: 5em;
    }
    header input{
        width: 12em;
    }
    header #listhead{
        margin-inline: 0em;
        padding-inline: 0;
        
    }
    header nav{
        width: 8.75em;
    }
    

    header #suggestions{
        overflow-y: scroll;
      width:7em;
    }

    header ::-webkit-scrollbar{
        display: none;
    }

    header #listhead .liheader {
        margin-inline: 10px;
    }
    div ul{
        display: flex;
        flex-direction: column;
        margin-top: 70px;
      	max-width: 1em;
    }

    div ul li{
        margin-inline: 10px;
    }

    #aBig{
        position: relative;
        top: -220px;
    }
  
  #Big{
        padding: 0px;

  }

    #aMath{
        position: relative;
        left: -120px;
        top: -220px;
    }
    #aPhysic{
        position: relative;
        left: 120px;
        top: 300px;
    }
  	header .button #imgnon, #imgRandom{
   	border: solid 5px;
    height:25px;
  	}
	
  
  header input{
  
  width:10em;
    height:1em;
  }

    
}

@media only screen and (min-width: 1030px){
    #suggestions{
        width: 580px; 
    }
}