@import url("https://fonts.googleapis.com/css?family=Raleway");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #fff;
  padding-bottom: 10%;
}

.bg {
  background-image: url('bg.jpg');
  opacity: 0.2;
  position: absolute;
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

/*flags */
.language-selector {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.flag {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
/*    border: 1px solid #ddd;*/
    transition: transform 0.3s ease;
}

#en-flag {
    /*background-image: url('img/gb.svg');  Додайте шлях до зображення прапора EN */
}

#ua-flag {
   /* background-image: url('img/ua.svg');  Додайте шлях до зображення прапора UA */
}

#ru-flag {
   /* background-image: url('img/ru.svg');  Додайте шлях до зображення прапора RU */
}

.flag:hover {
    color:#fff;
    transform: scale(1.1); /* Збільшується при наведенні */
}
/*end flags*/
#start-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1em;
  
}

#start-container h1 {
  text-align: center;
  margin: 5% 0 5%;
  font-family: verdana;
  font-weight: 100;
  font-size: 2em;
  margin-bottom: 2em;
}

#start-container p {
    width: 70%;
    text-align: justify;
    margin-bottom: 3em;
}

#test-registration {
  display: none;
  width: 50%;
  margin: 0 25%;
}

  #test-registration h3 {
      font-size:1.9rem;
  }
  
  #test-registration h4 {
      font-size:1.4rem;
  }

.selectmessenger {
    margin-top: -20px;
}

.selectmessenger p {
    margin-bottom: .1em;
}
.messengers{
    display: flex;
    flex-direction: row;
    text-align: left;
    justify-content: space-around;
}
#test-form input {
  color:#fff;
}

#test-container {
  display: none;
  overflow: hidden;
  width: 800px;
}

#test-container h4{
  font-size: 1.5em;
  margin: 0 1em;
}
#test-form {
    margin-bottom: 4em;
  }
#radios {
    position: relative;
    width: 75%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

input[type="radio"] {
  position: absolute;
  right: 1000%;
}

#radios label {
    float: left;
    width: 10%;
    padding-bottom: 10%;
    margin: 1px 4.5%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
}

#assa {
    display: flex;
    width: 100%;
    /* padding: 0 0% 0 0%; */
    justify-content: space-around;
    margin: 0 auto;
    padding: 0 12%;
}

#assa div {
    width: 15%;
    text-align: center;
    font-family: "Oswald", fantasy, sans-serif;
    font-weight: 700;
}

#question-container {
    font-size: 1.8em;
    /* font-family: monospace; */
    /* text-align: center; */
    padding: 0.5em 1em 0.5em 1em;
    border-bottom: 1px solid #2f9999;
    margin-bottom: 1em;
    margin-top: 0.3em;
    min-height: 120px;
}

#radios #slider {
  position: absolute;
  left: 0%;
  top: 0;
  width: 5%!important;
  padding-left: 0;
  height: auto!important;
  padding-bottom: 5%;
  margin: 2.7% 0 0 7.5%;
  background: #fff;
  transition: transform 1s;
  border-radius: 50%;
  animation-timing-function: ease-in-out;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  transition: 0.2s left .05s ease-in-out;
  opacity: 0;
  display: none;
  
}
        
#slider::before,#slider::after {
  border:none;
  background-color: transparent;
}


#test-input1:checked~#slider {
  animation-name: input1;
  display: block;
  opacity: 100;
  left: 0;
}

#test-input2:checked~#slider {
  animation-name: input2;
  display: block;
  opacity: 100;
  left: 20%;
}

#test-input3:checked~#slider {
  animation-name: input3;
  display: block;
  opacity: 100;
  left: 40%;
}

#test-input4:checked~#slider {
  animation-name: input4;
  display: block;
  opacity: 100;
  left: 60%;
}

#test-input5:checked~#slider {
  animation-name: input5;
  display: block;
  opacity: 100;
  left: 80%;
}



@keyframes input1 {

  30%,
  70% {
    transform: scale(0.5);
  }
}

@keyframes input2 {

  30%,
  70% {
    transform: scale(0.5);
  }
}

@keyframes input3 {

  30%,
  70% {
    transform: scale(0.5);
  }
}

@keyframes input4 {

  30%,
  70% {
    transform: scale(0.5);
  }
}

@keyframes input5 {

  30%,
  70% {
    transform: scale(0.5);
  }
}

.aftertest {
    list-style-type: decimal;
    margin-right: 1em;
    margin-left: 1em;
    border: dotted 2px #8a49a9;
    background-color: #36294c;
    border-radius: 10px;
    padding: 1.5em;
}

.testcode{
    font-size: 1.5em;
    font-weight: 500;
    color: #81ff04;
    border: 1px solid #7a9cc9;
    padding: 5px;
    border-radius: 5px 0 0 5px;
    
}

.copybtn {
    padding: 5px;
    font-size: 1.5em;
    border: 1px solid #7a9cc9;
}
:root {
  --glow-color: hsl(186 100% 69%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}



body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}



.glowing-btn {
  max-width: min-content;
  position: relative;
  color: var(--glow-color);
  cursor: pointer;
  padding: 0.35em 1em;
  border: 0.15em solid var(--glow-color);
  border-radius: 0.45em;
  background: none;
  perspective: 2em;
  font-family: "Raleway", sans-serif;
  font-size: 2em;
  font-weight: 900;
  letter-spacing: 1em;

  -webkit-box-shadow: inset 0px 0px 0.5em 0px var(--glow-color),
    0px 0px 0.5em 0px var(--glow-color);
  -moz-box-shadow: inset 0px 0px 0.5em 0px var(--glow-color),
    0px 0px 0.5em 0px var(--glow-color);
  box-shadow: inset 0px 0px 0.5em 0px var(--glow-color),
    0px 0px 0.5em 0px var(--glow-color);
  animation: border-flicker 2s linear infinite;
}

.glowing-txt {
  float: left;
  margin-right: -0.8em;
  -webkit-text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3),
    0 0 0.45em var(--glow-color);
  -moz-text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3),
    0 0 0.45em var(--glow-color);
  text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em var(--glow-color);
  animation: text-flicker 3s linear infinite;
}

.faulty-letter {
  opacity: 0.5;
  animation: faulty-flicker 2s linear infinite;
}

.glowing-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.7;
  filter: blur(1em);
  transform: translateY(120%) rotateX(95deg) scale(1, 0.35);
  background: var(--glow-color);
  pointer-events: none;
}

.glowing-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: -1;
  background-color: var(--glow-color);
  box-shadow: 0 0 2em 0.2em var(--glow-color);
  transition: opacity 100ms linear;
}

.glowing-btn:hover {
  color: rgba(0, 0, 0, 0.8);
  text-shadow: none;
  animation: none;
}

.glowing-btn:hover .glowing-txt {
  animation: none;
}

.glowing-btn:hover .faulty-letter {
  animation: none;
  text-shadow: none;
  opacity: 1;
}

.glowing-btn:hover:before {
  filter: blur(1.5em);
  opacity: 1;
}

.glowing-btn:hover:after {
  opacity: 1;
}

@keyframes faulty-flicker {
  0% {
    opacity: 0.1;
  }

  2% {
    opacity: 0.1;
  }

  4% {
    opacity: 0.5;
  }

  19% {
    opacity: 0.5;
  }

  21% {
    opacity: 0.1;
  }

  23% {
    opacity: 1;
  }

  80% {
    opacity: 0.5;
  }

  83% {
    opacity: 0.4;
  }

  87% {
    opacity: 1;
  }
}

@keyframes text-flicker {
  0% {
    opacity: 0.1;
  }

  2% {
    opacity: 1;
  }

  8% {
    opacity: 0.1;
  }

  9% {
    opacity: 1;
  }

  12% {
    opacity: 0.1;
  }

  20% {
    opacity: 1;
  }

  25% {
    opacity: 0.3;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 0.7;
  }

  72% {
    opacity: 0.2;
  }

  77% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.9;
  }
}

@keyframes border-flicker {
  0% {
    opacity: 0.1;
  }

  2% {
    opacity: 1;
  }

  4% {
    opacity: 0.1;
  }

  8% {
    opacity: 1;
  }

  70% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

#answer {
    color:#fff!important;
}

/*   LOADER*/
.loader-txt {
    color: #fff;
    font-family: arial;
    position: absolute;
    padding-top: 120px;
}
.loader{
  width: 89px;
  height: 89px;
  position: relative;
  background: rgba(255,255,255,0.13);
  animation-duration: 2.5s;
  animation-name: animSpin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
   
@keyframes animSpin{
  50%{
    transform: rotateZ(180deg) scale(.94);
  }
  100%{
    transform: rotateZ(360deg) scale(1);
  }
}

div.loader,
div.loader:before,
div.loader:after{
  border-radius: 50%;
}

div.loader:before,
div.loader:after{
  content: '';
  position: absolute;
  border: 8px solid transparent;
}

div.loader:before{
  width: 75%;
  height: 75%;
  background: rgba(255,255,255,.13);
  left: 12.5%;
  top: 12.5%;
  border-left: 8px solid rgba(255,255,255,.34);
  border-bottom: 8px solid rgba(255,255,255,.34);
}

div.loader:after{
  width: 40%;
  height: 40%;
  left: 30%;
  top: 30%;
  border-right: 8px solid rgba(255,255,255,1);
  border-left: 8px solid rgba(255,255,255,1);
  border-bottom: 8px solid rgba(255,255,255,1);
}
/*END LOADER*/

@media only screen and (max-width: 600px) {
    
    #start-container{
            margin-top: -15em;
    }
    #start-container h1 {
        margin-bottom: 0.5em;
    }
  .glowing-btn {
    font-size: 1em;
  }

  .bg {
    background-position-x: center;
  }

  #radios {

    width: 80%;

  }

  #assa {
    padding: 0 10% 0 10%;
  }

  #test-registration {
    width: 100%;
    margin: 0 1em;
  }
  
  #test-registration h3 {
      font-size:1.4rem;
  }
  
  #test-registration h4 {
      font-size:1.1rem;
  }
  
  #test-form .row .col {
     
      width: 90%;
   
  }
  #test-form {
    margin-bottom: 4em;
  }
  


}

