*,
::before,
::after{
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}
*{
    margin: 0;
}
body{
    background: radial-gradient(#3b3698,#172554);
    display: flex;
    flex-direction: column;
    color: #eff6ff;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
#main-container{
    width: 90%;
    height: 100vh;
    font-family: 'Inter', sans-serif;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0rem;
    display: none;
}
#draw{
    width: 100%;
    height: 10rem;
}
#input-container{
    display: flex;
    border: 1px solid #6C63FF;
    border-radius: 0.5rem;
    gap: 0.2rem;
    padding: 0.3rem;
    width: 75%;
}
#input-container:focus-within{
    border: 1px solid #93c5fd;
    transition: all 0.2s ease-in-out;
}
#input{
    outline: none;
    width: 100%;
    color: black;
    background-color: #F2F2F2;
    border-radius: 0.3rem;
}
.search-icon{
    width: 1rem;
}
.info-container{
    width: 80%;
    height: 15rem;
    border: 1px solid greenyellow;
    display: none;
}
.info{
    width: 100%;
    height: 100%;
}
h2{
    text-align: center;
}
#country-container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    padding: 0rem;
    gap: 1rem;
}
.country-card{
    display: flex;
    flex-direction: column;
    width: 4.5rem;
    height: auto;
    gap: 1rem;
}
.country-name{
    text-align: center;
    align-self: center;
    font-size: 0.6rem;
}
.flag{
    height: 50%;
    width: 100%;
    align-self: center;
}
.unique-card{
    display: flex;
    align-items: center;
    background-color: #e4e8ee;
    color: black;
    border-radius: 0.5rem;
    gap: 0.3rem;
    flex-direction: column;
    width: auto;
    height: 14rem;
    align-self: center;
    padding: 0.4rem 0.4rem 0rem 0.4rem;
    font-size: 0.8rem;
    border: 2px solid #172554;
    animation: float 8s ease-in-out infinite, appear 0.5s ease-in-out ;
}
.unique-flag{
    height: 30%;
    width: auto;
}
.shadow{
    background-color: rgb(21, 22, 58);
    border-radius: 40%;
    width: 8rem;
    height: 1rem;
    animation: shadow-floating 8s ease-in-out infinite, appear 0.5s ease-in-out;
}
.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: #fff;
  animation: lds-facebook 1.6s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}
.loader-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}
@keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
@keyframes appear {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
@keyframes shadow-floating {
    0%{
        scale: (1);
        opacity: 1;
    }
    50%{
        scale: 0.7;
        opacity: 0.3;
    }
    100%{
        scale: (1);
        opacity: 1;
    }
}
@media (min-width: 420px) {
    #main-container{
        width: 80%;
    }
}
@media (min-width: 768px){
    #main-container{
        width: 75%;
    }
    .country-card{
        width: 6rem;
    }
    .country-name{
        font-size: 1rem;
    }
    .unique-card{
        font-size: 0.9rem;
    }
}
@media (min-width: 1024px) {
    #main-container{
        width: 60%;
    }
    .country-card{
        width: 8rem;
    }
    #draw{
        height: 14rem;
    }
    h1{
        font-size: 2.3rem;
    }
    #input{
        height: 1.5rem;
    }
    .search-icon{
        width: 1.3rem;
    }
}
@media (min-width: 1440px) {
    #main-container{
        width: 50%;
    }
}

