@font-face {
  font-family: "AlmoniTzar-Medium";
  src: url("../assets/fonts/ALMONITZARMLV5AAA-MEDIUM.OTF") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  direction: rtl;
  --text-dark: #061523;
  --text-light: #e6e5e5;
  --theme-main-color:  #22aae2;
  --theme-main-color-dark: #0f5675;
  --theme-main-color-light: #e6e5e5;
  --theme-secend-color: #1c68b3;
  --theme-secend-color-dark: #0e2f4f;
  --theme-secend-color-light: #e6e5e5;
  --font-famlily: "AlmoniTzar-Medium", sans-serif;
}

/* מייצר התנהגות צפוייה ברמת מקווחי שוליים */
*,
*::before,
*::after {
  box-sizing: border-box;
}

main,
body,
html {
  max-width: 100vw !important;
  max-height: 100vh !important;
  overflow: hidden;
}

body {
  width: 100%;
  margin: auto;
  background-color: var(--theme-main-color-light);
  /* padding: 0.5rem;
    padding-top: 1rem; */
  font-family: var(--font-famlily);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  -webkit-text-size-adjust: 100%;
  max-height: 100vh;
  overflow: hidden;
}

section {
  margin-top: 2rem;
}

h1,
h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.footer {
  margin: auto;
  padding: 0.7rem;
  align-items: center;
  justify-content: center;
  /* background-color: var(--theme-secend-color); */
  background-color: white;
  color: var(--text-dark);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  font-family: var(--font-famlily);
  font-size: 0.7rem;
  font-weight: 200;
}



.footer-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.masthead {
  margin: auto;
  padding: 0.7rem;
  align-items: center;
  justify-content: center;
  /* background-color: var(--theme-secend-color); */
  color: var(--text-light);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  font-family: var(--font-famlily);
  font-size: 0.7rem;
  font-weight: 200;
  margin-bottom: 1rem;
  position: sticky;
  background-color: var( --theme-secend-color-dark);
}
.masthead .icons {
  height: 30px;
  width: auto;
  font-size: 1rem;
}

.progress {
  background-color: var(--theme-main-color-light);
}
.progress-bar {
  background-color: var( --theme-main-color);
}

#qustionScreen {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 0;
}
#qustionScreen ol li {
  margin: 0.5rem;
  font-size: 1rem;
  text-align: right;
  font-weight: 400;
  letter-spacing: normal;
  display: block !important;
}

#endScreen #mainText {
  padding: 1rem;
  text-align: right;
}
/* תמונה בשאלה */
.question-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  text-align: right;
}



.question-image-wrapper {
  text-align: center;
  padding: 0.5rem;
}

.question-image {
   width: 100%;             
  height: auto;            
  max-height: 15vh;         
  object-fit: contain;       
  cursor: zoom-in;  
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  cursor: zoom-out;
}

.image-modal.d-none {
  display: none;
}

.image-modal .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.3rem;
  text-align: center;
  background-color: white;
  color: black;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1060;
  transition: background-color 0.2s ease;
}

.image-modal .close-btn:hover {
  background-color: #eee;
}




/* כפתורים */
.castume-button {
  display: inline-block;
  padding: 0.5em 1.4em;
  /* margin: 0 0.3em 0.3em 0; */
  border-radius: 0.15em;
  box-sizing: border-box;
  text-decoration: none;
  font-family: var(--font-famlily);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-light) !important;
  letter-spacing: 0.2em;
  background-color: var(--theme-secend-color) !important;
  border: 1px solid var(--theme-secend-color-dark) !important;
  box-shadow: inset 0 -0.6em 0 -0.35em rgba(0, 0, 0, 0.17);
  text-align: center;
  position: relative;
}

.castume-button:active {
  top: 0.1em;
  color: var(--text-light) !important;
  background-color: var(--theme-secend-color) !important;
  border: 1px solid var(--theme-secend-color-dark) !important;
}

.castume-secendery-button {
  background-color: transparent !important;
  border: 1px solid var(--theme-main-color-dark) !important;
  color: var(--text-dark) !important;
  letter-spacing: normal;
}

.castume-secendery-button:active {
  top: 0.1em;
  color: var(--text-dark) !important;
  background-color: transparent !important;
  border: 1px solid var(--theme-main-color-dark) !important;
}

.castume-button-selected {
  background-color: var(--theme-secend-color-dark) !important;
}

.castume-button-selected:active {
  background-color: var(--theme-secend-color-dark) !important;
}

.castume-button-disable {
  background-color: #516d81 !important;
  box-shadow: iinset 0 -0.6em 0 -0.55em rgba(0, 0, 0, 0.17);
  border: 1px solid #2c3a44 !important;
  cursor: default !important;
}
.castume-button-disable:active {
  background-color: #516d81 !important;
  box-shadow: iinset 0 -0.6em 0 -0.55em rgba(0, 0, 0, 0.17);
  border: 1px solid #2c3a44 !important;
  top: 0em !important;
  cursor: default !important;
}

/* חיווי מענה */
.corectAns {
  background-color: #076a07 !important;
  border: 1px solid #054705 !important;
}

.corectAns:active {
  background-color: #076a07 !important;
  border: 1px solid #054705 !important;
}

.worngAns {
  background-color: #bd120a !important;
  border: 1px solid #870e07 !important;
}

.worngAns:active {
  background-color: #bd120a !important;
  border: 1px solid #870e07 !important;
}

.highlight {
  border: 1px solid #fcff46 !important;
  border-radius: 7px;
}

.highlight:active {
  border: 1px solid #fcff46;
  border-radius: 7px;
}

@media all and (max-width: 30em) {
  .castume-button {
    display: block;
  }
}

@media only screen and (min-width: 992px) {
  .castume-button {
    transition: transform 0.2s;
  }

  .castume-button:hover {
    transform: scale(1.1);
  }
  .castume-button-disable:hover {
    transform: none !important;
    cursor: default !important;
  }
}

/* מסך סיכום */
#containerCircel {
  margin: auto;
  width: 200px;
  height: 200px;
  position: relative;
  /* position: absolute; */
}

.castume-button-round {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



/* 
  #topContainer{
    width: 200px;
    height: 200px;
    margin: auto;
  }

  #elementsContinar{
    position:fixed ; 
    top:10%; 
    left:25%;
  } 

  #animatioContainer{
    z-index: 1; 
  } */

/* שונות */
.logo-img {
  width: 35%;
  height: auto;
  background-color: var(--theme-secend-color);
  padding: 0.5rem;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 -0.6em 0 -0.35em rgba(0, 0, 0, 0.17);
}

/* תיקונים למסך מחשב קטן */
@media only screen and (min-width: 1115px) {
  html,
  body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  #openScreen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 1.5rem 1rem 80px 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .logo-img {
    width: clamp(10%, 8vw, 12%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    max-height: 20vh;
    height: auto;
    flex-shrink: 1;
    margin: 1rem auto;
    transition: width 0.3s ease, max-height 0.3s ease;
  }

  h1,
  h2 {
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
    text-align: center;
    margin: 0.5rem 0;
    transition: font-size 0.3s ease;
  }

  #openScreen section:nth-of-type(2) {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #openScreen p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    max-height: 40vh;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  #openScreen section:last-child {
    margin-top: 1rem;
  }

  .castume-button {
    border: 1px solid var(--theme-secend-color-dark) !important;
    box-shadow: inset 0 -0.6em 0 -0.35em rgba(0, 0, 0, 0.17);
  }

  #qustionScreen,
  #endScreen {
    width: 80%;
    margin: auto;
  }

  .footer {
    height: 40px;
    padding: 0.2rem;
  }
}

/* תיקונים למסך מחשב גדול */
@media only screen and (min-width: 1920px) {
  #openScreen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 1.5rem 1rem 80px 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .logo-img {
    width: clamp(10%, 8vw, 12%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    max-height: 20vh;
    height: auto;
    flex-shrink: 1;
    margin: 1rem auto;
    transition: width 0.3s ease, max-height 0.3s ease;
  }

  h1,
  h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    margin: 0.5rem 0;
    transition: font-size 0.3s ease;
  }

  #openScreen section:nth-of-type(2) {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #openScreen p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    max-height: 40vh;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  #openScreen section:last-child {
    margin-top: 1rem;
  }

  .castume-button {
    border: 1px solid var(--theme-secend-color-dark) !important;
    box-shadow: inset 0 -0.6em 0 -0.35em rgba(0, 0, 0, 0.17);
  }

  #qustionScreen,
  #endScreen {
    width: 60%;
    margin: auto;
  }

  .footer {
    height: 40px;
    padding: 0.2rem;
  }
}
