/*    
  But :    
  Auteur : Joel Carman
  Date :   17.05.2021 / V1.0 
*/

/* 
--------------------------------------------
  Adjustments for the whole site
--------------------------------------------
*/
body {
  background-color: black;
  overflow-x: hidden;
}

h1 {
  color: white;
}

p{
  color: white;
}

#footer{
  width: 100%;
  position: absolute;
  text-align: center;
  background-color: dimgrey;
  padding: 5px;
  bottom: 0px;
  height: 40px;
  top: 94%;
}

/* 
--------------------------------------------
  Adjustments to the info page 
--------------------------------------------
*/
.info-page #left img{
 border: aliceblue 1px solid;
}

.info-page #infoSurPays{
  display: inline-block;
  justify-content: center;
  position: relative;
  padding-top: 20px;

}

.info-page #info{
  text-align: center;
}

#info{
  overflow: auto;
}

.info-page #barre-de-recherche{
  margin-top: 20px;
  margin-left: 20px;
}

#droit{
float: right;
padding-right: 30px;
}

#left{
  float: left;
  max-width: 60%;
}

#contenu-pays{
  display: inline-flex;
  margin: 10px;
  font-size: 20px;
}


/* 
--------------------------------------------------------------------------
  BEGINNING FOR RADAR (radar that turns while the info is loading)
  Taken from a youtube video: https://www.youtube.com/watch?v=HTAQkuaHIqQ
--------------------------------------------------------------------------
*/
.radar{
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  margin: 0;
  padding: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 20px solid #f7f7f7;
  background: #000000 url(https://carmanj.emf-informatique.ch/307/exercices/Projet%20Rechercher%20le%20Monde/images/map2.jpg);
  background-size: cover;
  box-shadow: 0 8px 0 #c5c5c5, inset 0 0 100px rgba(0, 255, 0, .5);
  overflow: hidden;
}

/* 
--------------------------------------------
  The two glowing dots on the radar
--------------------------------------------
*/
.radar::before{
  content: '';
  position: absolute;
  top: 70%;
  left: 20%;
  width: 10px;
  height: 10px;
  background: #00ff00;
  border-radius: 50%;
  filter: blur(2px);
  animation: glow 1s linear infinite;
}

.radar::after{
  content: '';
  position: absolute;
  top: 33%;
  left: 60%;
  width: 10px;
  height: 10px;
  background: #00ff00;
  border-radius: 50%;
  filter: blur(2px);
  animation: glow 1s linear infinite;
}

@keyframes glow {
  0%{
    opacity: 0;
  }
  50%{
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
}

/* 
--------------------------------------------------------
  The lines that make the grid for the radar
--------------------------------------------------------
*/

.radar li:nth-child(1),
.radar li:nth-child(2),
.radar li:nth-child(3),
.radar li:nth-child(4)
{
  list-style: none;
  position: absolute;
  top: 50%;
  height: 1px;
  width: 100%;
  background: rgba(0, 255, 0, 1);
  border-radius: 50%;
}

.radar li:nth-child(2){
  transform: rotate(90deg);
}

.radar li:nth-child(3){
  transform: rotate(45deg);
}

.radar li:nth-child(4){
  transform: rotate(-45deg);
}


/* 
--------------------------------------------------------
  The white circles in the middle of the radar 
--------------------------------------------------------
*/
.radar li:nth-child(5),
.radar li:nth-child(6),
.radar li:nth-child(7){
  list-style: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 255, 0, 1);
  background: transparent;
  border-radius: 50%;
}

.radar li:nth-child(5){
  width: 120px;
  height: 120px;
}

.radar li:nth-child(6){
  width: 240px;
  height: 240px;
}

.radar li:nth-child(7){
  width: 360px;
  height: 360px;
}


/* 
--------------------------------------------------------
  The Light green scanner turning on the radar
--------------------------------------------------------
*/
.radar li:nth-child(8){
  list-style: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform-origin: top left;
  background-color: #fff;
  background:  linear-gradient(45deg, #00ff00 0%, transparent 50%);
  animation: animate 2s linear infinite;
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
  0% {
    transform: rotate(0deg);
  }
}


/* 
--------------------------------
  End of the radar CSS
--------------------------------
*/


/*
--------------------------------
  Responsive FOOTER
--------------------------------
*/
@media only screen and (max-height: 880px) {
  #footer{
    position: relative;
    text-align: center;
    padding: 5px;
    bottom: 0px;
    height: 40px;
    top: auto;
  }
}

/*
--------------------------------
  Responsive Country content
--------------------------------
*/
@media only screen and (max-width: 600px) {
  #contenu-pays{
    flex-direction: column;
  }
}