/*
Theme Name: Astra child
Template: astra
Author: Alex D.
Version: 2.7
Description: main style
*/

/*hlavný layout*/

.site-content {
  --s: 20px; 
  --c1: #f2f2f2;
  --c2: #ffffff;
  --_l:#0000 34%,var(--c1) 0 41%,#0000 0 59%,var(--c1) 0 66%,#0000 0;
  background:
    linear-gradient(-45deg,var(--_l)),
    linear-gradient( 45deg,var(--_l)) var(--c2);
  background-size: var(--s) var(--s);
}


.page .site-main, 
.article .site-main { 
  background: #fff;
  padding: 25px 10px;
  border: 0;
  box-shadow: 
    0 7px 19px rgba(0,0,0,0.17), 
    0 6px 12px rgba(0,0,0,0.1);
  min-height: 100%;
}


body.archive .site-main,
body.search .site-main,
body.blog .site-main { 
 background: transparent;
 box-shadow: none;
}

@media (max-width: 768px) {
  .site-content,
  .ast-container,
  .content-area,
  .page {
    margin: 0;
    padding: 0;
  }
  .entry-content {
    padding: 10px 15px;
  }
}

@media (max-width: 786px) {
	.comment-respond, 
	h1.entry-title,
	.sidebar-main {
	padding: 10px;
 }
	}

.page header.entry-header .entry-title {
  display: none;
}

.single .post-navigation {
  border-top: 1px solid #c2c2c2;
}

.single .post-navigation .nav-next p { 
 text-align: right; 
}

/*articles*/

.ast-post-format, .single-layout-1 { 
  background: #fff;
  padding: 25px;
  border: 0;
  box-shadow: 
    0 7px 19px rgba(0,0,0,0.17), 
    0 6px 12px rgba(0,0,0,0.1);
  min-height: 100%; 
  margin-bottom: 20px;
  }

  @media (max-width: 768px) { 
	.ast-post-format, .single-layout-1 { 
  padding: 10px 6px;
  }
	}
  

.single-post header.entry-header .entry-title {
  margin-bottom: 50px;   
  padding-bottom: 9px; 
  border-bottom: 2px solid #3C4E7C; 
  line-height: 1.6;
  color: #1A2A5C;
  letter-spacing: 0.7px;
}


.single-post .entry-meta {
  line-height: 1.6em;
  margin-top: -10px;         
  margin-bottom: -20px;    
  margin-left: 4px;
  font-size: 0.92em;
  color: #555;              
}

.single-post .entry-meta a {
  color: var(--accent-color, #0056b3); 
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(0, 86, 179, 0.06);
}

.single-post .entry-meta a:hover {
  color: #fff;
  background-color: var(--accent-color, #0056b3);
}

@media (max-width: 768px) {
  .single-post .entry-meta {
    margin-top: -6px;
    margin-bottom: -35px;
    margin-left: 20px;
    font-size: 0.9em;
  }

 .single-post .entry-meta a {
    padding: 2px 5px;
  }
}



/*nadpisy*/

h2.wp-block-heading { 
  font-size: 1.7em;
	background-color:#e4e4f0;
	border-radius: 5px;
  letter-spacing: 2px;
  padding: 5px 6px;
  margin-top: 50px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  h2.wp-block-heading {
    font-size: 1.3em;     
    padding: 5px 6px;       
    margin-top: 20px;      
    margin-bottom: 10px;    
    letter-spacing: 2px;  
    border-radius: 5px; 		
  }
}

h3.wp-block-heading { 
  font-size: 1.3em;
  margin-top: 50px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
h3.wp-block-heading { 
  font-size: 1.2em;
  margin-top: 30px;
  }
}

/*zoznamy*/
.entry-content ul {
  padding-left: 30px;
	margin: 6px;
}

.entry-content ul li {
  line-height: 1.5em;
	margin-bottom: 0;
}

.entry-content ul ul {
  margin-left: 0.5em;
}

.entry-content ul ul li {
 line-height: 1.20em;
 margin: 2px;
}

@media (max-width: 768px) {
  .entry-content ul {
    padding: 2px 18px;
  }
}

.entry-content ol { 
 padding-left: 30px;
 margin: 6px; 
 }

.entry-content ol li {
  line-height: 1.5em;
	margin-bottom: 0;
}

/*blok*/
p, ul { 
    margin: 20px 0;
    text-align: justify;
}

.entry-content .example {
    border-left: 3px solid #c9c9c9;
    margin: 1.8em 1.5em;
    padding: 7px;
    border-radius: 2px;
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .entry-content .example {
      margin: 10px 0;
			padding: 2px 7px;
	}
}

details.acc { 
	margin: 0.5em; 
	border: 1px solid #ddd;
	border-radius: 5px; 
	padding: 0.2em 0.3em;
	background: #f9f9f9;
  transition: all 0.9s ease;
}
details.acc:hover {
  background: #f1f1f1;
  border-color: #ccc;
}
details.acc summary { 
	font-size: 1.05rem;
  color: #4d4d4d }

	details.acc[open] summary::before {
    transform: rotate(90deg);
}

details.acc p {
    margin: 0.2em;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.2em;
}

.language-bank {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.7em 1.1em;
  margin-top: 2em;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.language-bank summary {
  cursor: pointer;
  font-weight: 600;
  color: #1e3a8a;
  list-style: none;
  outline: none;
  transition: color 0.2s ease;
}

.language-bank summary:hover {
  color: #3282c9;
}

.language-bank[open] {
  background: #f1f5f9;
  border-color: #d1d5db;
}

.language-bank ul {
  margin: 0.8em 0 0 1.2em;
  padding: 0;
}

.language-bank li {
  margin-bottom: 0.3em;
}

	
.precitajte-link {
  border-top: 1px dashed #aaa;
  border-bottom: 1px dashed #aaa;
  padding: 8px 0;
  margin: 24px 0;
  font-size: 0.90em;
  color: #757575;
  text-align: center;
}
.precitajte-link::before {
  content: "📖";
	display: inline-block;
	margin-right: 6px;
}

.fonetika { 
    white-space: nowrap;
}

.entry-content .warning { 
  border-left: 3px solid #ff0000; 
  padding: 4px 9px; 
	color: #C94B4B;
	background-color: #FFF3F3;
	margin: 0.5em 1.5em;
}
.warning s { 
 color: #C94B4B }

@media (max-width: 768px) { 
	.entry-content .warning {
		 margin: 10px 0;
		 padding: 2px 7px;
	}
}

.entry-content .correct { 
  border-left: 3px solid #70CF82; 
  padding: 4px 9px; 
	color: #5CAB6B;
	background-color: #EBFCEE;
	margin: 0.5em 1.5em;
}

@media (max-width: 768px) { 
	.entry-content .correct {
		 margin: 10px 0;
		 padding: 2px 7px;
	}
}


.box2 {;
  padding: 1em 1.2em 1em 3.0em; 
  line-height: 1.6;
  position: relative; 
	font-size: 15px;
	font-family: inherit;
}

.box2::before {
  content: "⚠️";
  position: absolute;
  left: 0.4em;         
  top: 0.6em;         
  font-size: 1.5em;
  line-height: 1;
}

.zoznam-serie ul li::before {
  content: none;
}
.zoznam-serie {
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #0073aa; 
  padding: 5px 5px;
  font-size: 0.75rem;
}

.zoznam-serie li a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.2s ease;
}.zoznam-serie li a:hover {
    color: #005177;
}
.zoznam-serie p { 
  margin: 1px; }

/*úroveň a téma*/

.tema-box {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #0D3B66;
    border-radius: 12px;
    padding: 5px 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
	  background-color: white;
}
.tema-box-img {
    width: 120px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.tema-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.line1 {
    font-size: 1.2em; 
    font-weight: bold;
    color: #333333;
}

.line2, .line3 {
    font-size: 0.85em;
    color: #4d4d4d;
}
.star {
    color: #046bd2; 
    font-size: 15px;
    text-align: center;
    width: 100%;
}
.hl-temy { 
    font-size: 0.80em;
    display: inline-block;
    border-radius: 7px;
    padding: 3px 6px;
	  margin: 0;
}
.popis { 
    display: block; 
    align-items: center;
    gap: 10px;
}

.uroven { 
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
}

@media (max-width: 600px) {
    .popis {
        flex-direction:column;
        align-items: flex-start;
        gap: 5px;
    }
     .tema-box-img {
	width: 60px;
	height: 50px;
    }
}

/*tabulky*/

.wp-block-table th, 
.wp-block-table td { 
  border: 3px solid white; 
	padding: 5px;
	font-size: 0.97em;
   }

table { 
	border: none; 
	margin: 20px 0;
	}

table th, 
table td { 
	border: none; 
	}

  .table-style { 
 border-collapse: collapse;
 table-layout: fixed;
 width: auto;
 min-width: 150px;
 margin-left: 10px;
}

.table-style td:nth-child(1) {
    background-color: #DEE8FF;
    font-size:1.1em; 
    padding-right: 0.6em;
    padding-left: 0.6em;
	  border: 0;
}

.table-style td:nth-child(2){
   padding-right: 0.8em;
   padding-left: 0.9em;
	}

  .table1-style {
  table-layout: fixed;
	border: 0;
	margin: 20px 0;
}
.table1-style thead {
    background: #DEE8FF; 
}
.table1-style thead th {
    padding: 8px;
    text-align: left;
    font-weight: bold;
}

.table1-style td {
    padding: 5px;
	  border: 1px dashed #e3e3e3;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .table-responsive {
    white-space: nowrap;
    font-size:0.95em;
      }
}


/*menu*/

.ast-primary-header-bar {
    max-height: 120px;
    padding: 0 20px; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    background-color: #ffffff; 
    transition: all 0.3s ease; 
    position: sticky; 
}

.ast-primary-header-bar .main-header-menu {
    max-height: 120px;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px; 
}

.main-header-menu .menu-item a {
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
	  max-height: 50px;
}

.main-header-menu .menu-item a:hover {
   background-color: #DFEBF0;
   transform: translateY(-2px); 
   box-shadow: 0 3px 8px rgba(0,0,0,0.1); 
}

/*sidebar*/

h2.widget-title { 
 border-bottom: 0.04em solid #97ADB8;   
 margin: 25px 0;
 padding-bottom: 5px; 
 font-weight: normal; 
}
#secondary li { 
 line-height: 1.4em;
 margin-bottom: 5px;
 font-size: 15px;
}

 /*archívy názvy kariet*/
.archive .entry-title,
.search .entry-title,
.blog .entry-title { 
 font-size: 1.3em;
}

@media (max-width: 768px) {
  .archive .entry-title,
  .blog .entry-title,
	.search .entry-title {
    font-size: 0.95em;
    line-height: 1.3;
    letter-spacing: 1px;
  }

  .archive .entry-title a,
  .blog .entry-title a, 
	.search .entry-title a{
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .entry-title a::before {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-position: center;
  }
}

.entry-title a::before {
    content: "";
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
.category-gramatika .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-gramatika1.png");
}

.category-vyslovnost .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-vyslovnost1.png");
}

.category-testy-a-cvicenia .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-test.png");
}

.category-citanie-a-konverzacia .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-reading.png");
}

.category-caste-chyby .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-caste-chyby.png");
}

.category-zaciatocnik .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-beginner.png");
}

.category-slovencina .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-sjl.png");
}

.category-slovna-zasoba.category-podobne-slova .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-podobne-slova.png");
}

.category-vety .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-vety.png");
}

.category-slovna-zasoba .entry-title a::before,
.category-anglictina-pre-deti .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-sz.png");
}

.category-tvorba-webu .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-html.png");
}

.category-pisanie .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-pc.png");
}

.category-britska-a-americka .entry-title a::before {
    background-image: url("https://ucimesaceznet.eu/wp-content/uploads/2025/09/logo-uk.png");
}

/*archívy karty*/
.ast-separate-container .post-content { 
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 5px; 
  margin: 0; 
}

.ast-separate-container .ast-blog-layout-5-grid .post-content { 
    padding-right: 1em;
    padding-left: 0.7em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
	  background: transparent;
}


.ast-excerpt-container>p:last-child  {
    font-size: 0.85em;
    color: #323240;
	  padding: 0;
}
.post-content > .read-more a {
    color: #7FA6C0;
    font-size: 0.80em;
}

.ast-taxonomy-container a {
    background-color: #B8D7F2;
    color: #3D3D3D;
    border-radius: 5px;
    padding: 5px 3px;
    font-size: 0.85em;
}

.published {
    color: #3D3D3D;
    font-size: 0.85em;
}

/*archívy ostatné*/

.ast-pagination .page-numbers.current { 
 background-color: #2769a5; 
 }

 /*buttons*/

 #action-button { 
  background-color: #0070BC; }

 #secondary button.wp-block-search__button.wp-element-button {
  background: #2769A5;
  border: 2px solid #2769A5;
	border-radius: 5px;
  padding: 6px;
  margin: 3px;
  align-items: center;
  justify-content: center;
}

#secondary button.wp-block-search__button.wp-element-button:hover {
  background: #4275A6;
  border: 2px solid #4275A6;
  padding: 6px;
  margin: 3px;
  align-items: center;
  justify-content: center;
}

#secondary .wp-block-search__input {
  background: #ffff;
  border: 1px solid #C4C4C4;
  padding: 6px;
  margin: 3px;
  align-items: center;
  justify-content: center;
	
}
.wp-block-search__button-inside .wp-block-search__inside-wrapper
{
  border: none;
  outline-style: none;
}

.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button, .ast-outline-button, .wp-block-uagb-buttons-child .uagb-buttons-repeater.ast-outline-button { 
	padding: 9px 12px;
}

/*labels*/

.pozor {
 background-color: #ffebee; 
 font-weight: bold;
 color: #c62828; 
 padding: 2px 6px; 
 border-radius: 8px;  
 display: inline-block;
 margin-right: 3px;
 font-size: 0.95em;
}

@media (max-width: 768px) { .pozor {
	font-size: 12px;
	margin-right: 1px; 
	padding: 1px;
	}
	}

.acf-label {
  border-radius: 50px;
  padding: 3px 6px;
  margin-left: 4px;
  font-size: 0.9em;
  color: #fff;
}

.label-teoria {
  background: linear-gradient(135deg, #3FAAEB, #6ec8f5);
}

.label-teoria-cvicenie {
  background: linear-gradient(135deg, #4BAD78, #73d1a0);
}

.label-cvicenie {
  background: linear-gradient(135deg, #22C931, #59e95f);
}
.label-kontrolny-test {
  background: linear-gradient(135deg, #C93022, #e76559);
}

.odporucanie {
    background-color: #B2DFD4; 
    color: #00695c; 
    padding: 2px 6px; 
    border-radius: 9px; 
    font-weight: 500; 
    display: inline-block;
	  margin-right: 7px;
	  margin-top: 5px;
	  font-size: 0.85em;
}
.beginner {
    background-color: #0070C0; 
    color: #ffffff; 
    padding: 2px 6px; 
    border-radius: 9px; 
    font-weight: 500; 
    display: inline-block;
	  margin-right: 7px;
	  margin-top: 5px;
	  font-size: 0.85em;
}

/*quiz*/

[class^="quiz_html"] {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  display: inline-block;
  width: 70%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Tabuľka bez hlavičky */
[class^="quiz_html"] table {
  width: 100%;
  border-collapse: collapse;
}

[class^="quiz_html"] td {
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

[class^="quiz_html"] td:first-child {
  width: 60px;
  text-align: center;
}
.speaker {
  font-size: 1.2em;
  line-height: 1;
  vertical-align: middle;
  color: #607d8b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.speaker:hover {
  transform: scale(1.1);
  color: #455a64;
}

.speaker.playing {
  color: #ff6600;
}

/* Políčko na odpoveď */
[class^="quiz_html"] input {
  padding: 5px 8px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: #fff;
  width: 120px;
  height: 32px;
  text-align: center;
  transition: all 0.2s ease;
}

[class^="quiz_html"] input:focus {
  outline: none;
  border-color: #0070BC;
  box-shadow: 0 0 4px rgba(0,112,188,0.3);
}

/* Tlačidlá */
[class^="quiz_html"] button,
#submitQuiz {
  background: #0070BC;
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 15px;
  margin-top: 15px;
  transition: background 0.3s, transform 0.1s;
}

[class^="quiz_html"] button:hover,
#submitQuiz:hover {
  background: #005A9C;
  transform: scale(1.02);
}

[class^="quiz_html"] button:disabled,
#submitQuiz:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* ✅ Správna odpoveď */
.correct1 {
  color: #1e7e34;
  font-weight: 600;
  margin-left: 8px;
  animation: fadeIn 0.4s ease-in;
}

[class^="quiz_html"] input.correct1 {
  border: 2px solid #28a745;
  background-color: #eaffea;
  animation: pulseGreen 0.5s ease;
}

/* ❌ Nesprávna odpoveď */
.incorrect1 {
  color: #c82333;
  font-weight: 600;
  margin-left: 8px;
  animation: fadeIn 0.4s ease-in;
}

[class^="quiz_html"] input.incorrect1 {
  border: 2px solid #dc3545;
  background-color: #ffe6e6;
  animation: pulseRed 0.5s ease;
}

/* Výsledok */
[class^="quiz_html"] #result {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* Animácie */
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 rgba(40,167,69,0.4); }
  50% { box-shadow: 0 0 8px rgba(40,167,69,0.6); }
  100% { box-shadow: 0 0 0 rgba(40,167,69,0.4); }
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 rgba(220,53,69,0.4); }
  50% { box-shadow: 0 0 8px rgba(220,53,69,0.6); }
  100% { box-shadow: 0 0 0 rgba(220,53,69,0.4); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobilné zobrazenie */
@media (max-width: 768px) {
  [class^="quiz_html"] {
    width: 95%;
    padding: 10px;
  }

  [class^="quiz_html"] input {
    width: 100px;
  }

  #submitQuiz {
    width: 100%;
  }
}
.watu-textarea { 
  width: 80%;
  height: 70px;
  border: 1px solid #c2c2c2;
  margin-top: 3px; }

#watu_quiz .watu-question-choice { 
  align-items: center;
  display: flex; }

/*odkazy*/

.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: none;
}

.ast-single-post .entry-content a:hover,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a):hover {
    text-decoration: underline; 
}