* {
	padding: 0;
	margin: 0;
	/* border: 0;*/
	}
  
  *, *:before, *:after {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box; }
  
  :focus, :active {
	outline: none; }
  
  a:focus, a:active {
	outline: none; }
  html, body {
    min-height: 100%;
   
    margin: 5px;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
  body {
	border: 2px solid #82FF50;
	border-radius: 3.8px;
	font-size: 26px;
	line-height: 26.8px;
	font-family: "Arial", sans-serif;
	color: #222222;
	letter-spacing: .7px;
	padding: 0.6%;
	}
  body>* {
	  padding: 1.28%;
  } 
.wrapper {
    display: flex;
    flex-direction: column;
}


  nav, footer, header, aside, a, #main-image {
	display: block; }
       .wrapper, main {
            flex: 1;
         main {
            padding: 16px;
        }       
    #game-container-figures {
display: flex;
    flex-direction: column;
  }
  html, body {

	font-size: 100%;
 }
  
  input, button, textarea {
	font-family: inherit;
	font-size: inherit; }
  
  input::-ms-clear {
	display: none; }
  
  button {
	cursor: pointer; }
  
  button::-moz-focus-inner {
	padding: 0;
	border: 0; }
  
  a, a:visited {
	text-decoration: none; }
  
  a:hover {
	text-decoration: none; }
  
  ul li {
	list-style-image: url(images2.png); }
  
  img {
	vertical-align: top; }
  
  h1, h2, h3, h4, h5, h6 {
	line-height: 1;
	font-weight: 500;
	text-align: center;
	padding: 1.3%;
  }
  
  /*--------------------*/
  html {
	  padding: 1.4%;
	 }

  main,
  header,
  footer, .accordion.active:hover, .accordion:hover {
	background-color: #DCFF50;
	/* */
  }
  article {background-color: #DCFF50 !important;
  }
.wrapper {
min-height: 100%;
}

  section,
  aside {
	background-color: #FAF0BE;
  }
  
  h1 {padding: 25px 10px 20px;
	font-size: 53px;
   
	line-height: 1.5;
  color: #427e45 !important;
  font-weight: 600;
  }
  
  
  p {
	padding: 1.8%;
	text-indent: 25px;
	margin: 4px;
	}
  
	h2, h1 {
  padding: 5px;
  font-family: 'Times New Roman', serif;

  }
  h3 {
	  font-weight: 600;
	  color: #2f9b26;
  }
  ul, ol {
  margin: 0 28px;
  }
	  .accordion {
	 background-color: #FFFD87;
	  cursor: pointer;
	  
	  padding: 9px;
	 margin: .7%;
	 border-radius: 4px;
	  
	  outline: none;
	  
	  
	  
	  color: #e07d42;
  }
  .accordion.active {
	 background-color: #E4FC18;
  }   
  /**/ .panel {
	  margin: 0px;
	  padding: 0px 23px;
	  background-color: #fbf1a5;
	  max-height: 0;
	  overflow: hidden;
  }	
  .accordion, .panel {
	transition: 3.3s;}	  
	  
label {
	  margin: 0 3.97%;
	  display: inline-block;
  }
  li span,#l-pgso span{
	  flex-wrap: nowrap;
	  display: inline-flex;
	  width: auto;margin: 6px;
  }
  .radio li span,#l-pgso span{
	  align-items: first baseline;
  }
  #l-pgso span {
	padding-right: 34px;
	padding-left: 23px;
  }	
  li>span, .source-link {
    color: #3ab747;
}
  .f, p {
	background-color: #CDFF87;
  }
  .f img {
	max-width: 220px; 
  }
	  .input-edrsi {
	  width: 194px;
  }
  .input-soc-ts,.input-rol-poz {
	  min-width: 241px;
  }input[type="range"] {
	  min-width: 185px;
  }li {
	  margin: 17px 0 17px 6%;
    list-style-position: inside;  /* Додає номери списку всередині елементу */
    /* color: #3ab747 !important; Додає колір для видимості */
 }
	button {
	  border: #c2fc6c 2px solid !important;
	  border-radius: 8%;
	  background: #ffdc57 !important;
	  color: #bf7a11 !important;
	padding: 7px;
  }


   div#task-container-raven .main-image {
        height: 132px;/* ✅ Оптимальний розмір */
  /* max-width: 90%; ✅ Щоб зображення не виходило за межі */
 /*  margin-top: 81px; ✅ Відступ для корекції */
  display: block;
}
 div#task-content { display: none; /* Спочатку приховуємо */
}
div#task-container-raven {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
}
.answer-options {
    display: flex;
    flex-direction: column;
   /* align-items: center; */
}
.answer-options {
  display: flex;
  flex-wrap: wrap; /* ✅ Дозволяє переносити рядки, якщо екран малий */
  justify-content: center;
  gap: 1%;
  margin-top: 2px;
}

/* Кнопки варіантів */

div#task-container-raven .option {
    height: 29px;
    transition: 0.3s;
}

.option:hover {
    transform: scale(1.1);
}

.option.selected {
    border: 3px solid #976815;
    transform: scale(1.1);
	border-radius: 1.8px;
}


/* Зображення відповідей */
/* .option img {
  width: 100px; ✅ Налаштувати відповідний розмір
  height: auto;
  transition: transform 0.2s ease-in-out;
} */

/* Анімація при наведенні
.option:hover img {
  transform: scale(1.1);
} */
 li>span {
    margin: 12px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
.next-div {
  flex-direction: column;
  display: flex;
  align-items: center;
}
img.option, label, #option, input[type='radio'] {
  cursor: pointer;
}
#game-container.container-active {
    position: fixed;
}
.container-active {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
	padding: 35px;
    background-color: #DCFF50 !important;
	    z-index: 1000; /* Встановлює високий z-index, щоб елемент був над іншими */
    display: block; /* Початково приховує елемент */
}
  #game-container-figures {
    width: 100%;
    
    justify-content: center;
    align-items: center;
}
.container-color {
    background-color: #eff4c4;
}
#figure-task {
    background: white;
}
#instruction {
  font-size: 20px;
}
button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}
/* Матриця Равена */
.test-container {
    text-align: center;
}
/* .inline-flex {
  display: inline-flex;
} */
#game-container-figures .main-image {
    max-width: 100%;
    height: auto;
}
#figure-task, .test-container {
  
  display: none; /* Спочатку приховуємо */
  
}  
#figure-task, #main-image {
    margin: auto;
}
#figure-task {
    width: max-content;
    margin: 7px auto;
}

.low-opacity {
    opacity: 0.3;
}
div#task-container-raven {
    padding: 8px;
}

/*Responsive*/
@media (min-width: 800px) {   
  .next-div {
   
 flex-wrap: wrap;

  } 
}  
@media (min-width: 678px) {   
  div#task-container-raven .main-image {
    height: 185px;
    
}
}
@media (mix-width: 714px) { 
	.option {
    height: 50px;
}  
}
@media (max-width: 766px) {   h1 {
	   font-size: 41px;
	  }
}
  @media (max-width: 581px) {  div#task-container-raven .main-image {
    max-height: 337px;
}
}
  @media (max-width: 429px) {  div#task-container-raven .main-image {
    max-height: 303px;
}
 div#task-container-raven {
    
    flex-direction: row;
}
			     
}
@media (min-width: 68px) and (max-width: 480px) {
   h1 {
	   font-size: 20px;
	  }
	h2 {
	font-size: 29px;
  }
	body {
	font-size: 25px;
	}
	#instruction {
    font-size: 15px;
}
  }
