@font-face {
    font-family: 'buDona';
    src: url('../fonts/budona/buDona-0.23-700-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'noyland';
    src: url('../fonts/noyland/noyland-ultrabold-aaa.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'noyland';
    src: url('../fonts/noyland/noyland-regular-aaa.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'buPashmina';
    src: url('../fonts/buPashmina/buPashmina1.0-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
.buPashmina {
    font-family: 'HEEBO';

}
.downlink
{
    background-color: #f9f8e6;
    border-radius: 3px;
    border:1px solid #473d8f;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    width: max-content;
    max-width: 100%;
    color: #473d8f;
    gap:5px;
    transition: all 0.3s ease;
    font-family: 'HEEBO';
}
.certificate{
  background-image: url('../images/sukot5778/certificate.png');
    height: 695px;
    background-size: 100% 100%;
    margin-top: -200px;
    max-width: 500px;
    margin-right: 42px;
}
footer{
      background-color: #00000000!important;
}
.downlink:hover {
background-color: #473d8f;
color: #f9f8e6;
}
.downlink:hover img {
    filter: brightness(0) invert(1);
}
.kids {
    margin-bottom: -70px;
    position: relative;
    z-index: 10;
}

.riddlekid {
    max-width: 230px;
    position: absolute;
    right: -170px;
    bottom: -25px;
}

.line2 {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 150px;
}
.textcontainer1{
  position: relative;
  right: 10%;
  top: 54px;
  direction: rtl !important;
}
.textcontainer4{
  right: 0;
}
.textcontainer1,
.textcontainer1 span {
    font-family: 'HEEBO';
    color: #fff;
    font-size: 24px;
}

.textcontainer2 {
    font-size: 24px;
    color: #473d8f;
    font-family: 'HEEBO';
}
.textcontainer2
{
    margin: 20px 0;
    position: relative;
}
.textcontainer2::before
{
  content: '';
  background-image: url(../images/sukot5778/zzz.png);
  height: 35px;
  position: absolute;
  background-size: 100% 100%;
  top: 36px;
  left: -102px;
  width: 98px;
}
 .textcontainer3 {
     background: linear-gradient(90deg, #845c95, #bf889e);
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
     color: transparent;
     font-family: 'HEEBO';
     font-size: 45px;
     line-height: 1;

     text-align: center;
}

.container.c14 {
    max-width: 1200px;
}

.budona {
    font-family: 'HEEBO';
    font-size: 22px;
    line-height: 23px;
    color: #71532d;
    font-weight: bold;
    width: 100%;
    height: 55%;
    padding: 0 40px;

}

.imgc {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.logo {
  max-width: 336px;
width: 60%;
}

/* Background image helper as in global style */
.bgimg {
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}

.purpleoverlay {
    background-image: linear-gradient(to left, rgb(72, 62, 143) 30%, rgba(72, 62, 143, 0.5));
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mainframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    object-fit: cover;
    height: 100%;
    object-position: top;
}

.ravi {
    display: block;
    margin-right: auto;
    max-height: 450px;
}

.migila-container {
    background-size: contain;
    background-position: bottom;
}

.horse {
    max-width: 80%;
}

.horsewrap {
    margin-top: -115px;
    margin-right: -80px;
    text-align: right;
}

/* ===== Animations ===== */
@keyframes horseFloat {
0% { transform: translateY(0); }
50% { transform: translateY(20px); }
100% { transform: translateY(0); }
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(16px); }
to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
from { opacity: 0; transform: translateX(30px); }
to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
from { opacity: 0; transform: translateX(-30px); }
to   { opacity: 1; transform: translateX(0); }
}

/* Apply animations */
.horse { animation: horseFloat 1s ease-in-out infinite; }
.textcontainer1,
.textcontainer2 { animation: fadeUp 0.9s ease both; }
.textcontainer1 span:nth-child(1) { animation: fadeUp 0.7s ease both 0.05s; }
.textcontainer1 span:nth-child(2) { animation: fadeUp 0.7s ease both 0.15s; }
.textcontainer1 span:nth-child(3) { animation: fadeUp 0.7s ease both 0.25s; }
.textcontainer2 span:nth-child(1) { animation: fadeUp 0.7s ease both 0.05s; }
.textcontainer2 span:nth-child(2) { animation: fadeUp 0.7s ease both 0.15s; }
.textcontainer2 span:nth-child(3) { animation: fadeUp 0.7s ease both 0.25s; }

/* Key images subtle entrance */
.kids { animation: slideInLeft 0.9s cubic-bezier(.2,.7,.2,1) both 0.2s; }
.hoveret { animation: slideInRight 0.9s cubic-bezier(.2,.7,.2,1) both 0.2s; }
.riddlekid { animation: slideInLeft 0.9s cubic-bezier(.2,.7,.2,1) both 0.2s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition: none !important; }
}

/* Riddle Section */
.riddleSection {
    position: relative;
    padding: 40px 0 80px;
}

.riddle-card {
    position: relative;
    background: linear-gradient(270deg, #3f2c8e 0%, #5b4db1 100%);
    border-radius: 12px;
    padding: 30px 30px 40px;
    color: #fff;
    /* overflow: hidden; */
}

.riddle-top-copy {
    font-family: 'HEEBO';
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 10px
}

.riddle-panel {
    position: relative;
    /* background: rgba(0, 0, 0, 0.1); */
    border-radius: 16px;
    padding: 40px 80px 0;
}

.riddle-form {
    display: flex;
    gap: 12px;

    margin-bottom: 18px
}

.riddle-text-input {
    background: #fff;
    color: #333;
    border-radius: 15px;
    padding: 10px 16px;
    min-width: 220px;
    border: none;
    height: 42px;
    font-family: 'HEEBO';
}

.riddle-text-input::placeholder {
    color: #8b8b8b
}

.riddle-right-title {
    /* position: absolute; */
    /* right: 20px;
    top: 50%;
    transform: translateY(-50%);
    */
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'HEEBO';
    font-size: 56px;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15)
}

.riddle-letters {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 55px 18px;
}

.riddle-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center
}

.riddle-letters:before,
.riddle-letters:after {
  content: '"';
      position: absolute;
      font-family: DAVID;
      font-size: 137px;
      color: #b97898;
      opacity: 0.8;
      letter-spacing: revert-layer;
      font-weight: bold;
}

.riddle-letters:before {
    right: 0;
    top: 80px;
    transform: translateY(-60%)
}

.riddle-letters:after {
    left: 311px;
    bottom: 75px;
    transform: translateY(60%) rotate(180deg)
}

.riddle-letter {
  width: 44px;
  height: 43px;
  border-radius: 8px;
  border: 2px solid #b6a9ff6e;
  background: #fff;
  text-align: center;
  font-size: 24px;
  color: #3f2c8e;
  font-family: 'HEEBO';
  font-weight: 700;
  box-shadow: 2px 2px 4px #030303ad;
}

.riddle-letter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6)
}

.riddle-space {
    display: inline-block;
    width: 32px;
    height: 1px
}

.riddle-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 12px
}

.riddle-check-btn {
    position: relative;
    background: #29c5d7;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 5px rgb(87 72 172);
    margin-bottom: -45px;
    font-family: 'HEEBO';
    font-size: 21px;
    transition:all .5s ease;
}

.riddle-check-btn:after {
  content: '';
  position: absolute;
  right: 18px;
  top: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #29c5d7;
}

.riddle-check-btn:hover {
    background: #12b0c3;
    transform:rotate(2deg);
}

.riddle-message {
    min-height: 22px;
    position: absolute;
    left: 20px;
    bottom:20px;
    font-size: 30px;
    font-family: 'HEEBO'
}

.riddle-char-right {
    position: absolute;
    bottom: -10px;
    left: 10px;
    max-height: 240px
}

@media(max-width: 991px) {

    .mnha {
        min-height: auto!important;
    }
    .hoveret
    {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    .horsewrap {
        margin-top: 0;
        margin-right: 0;
    }
    .textcontainer1
    {
        max-width: 100%!important;
        width: 100%!important;
    }
    .kids
    {
        margin-bottom: 0;
        max-height: 300px!important;
        margin:0 auto;
        display: block;

    }
    .textcontainer2
    {
        margin: 20px 0;
    }
    .textcontainer2::before
    {
      display: none;
    }

    .textcontainer1, .textcontainer1 span,
    .textcontainer2, .textcontainer2 span
    {
        font-size: 18px;
    }

    .migila-container
    {
        height: 250px!important;
        align-items: center!important;
    }
    .mainheader
    {
        max-height: none!important;
    }
    .riddle-letters {
        padding: 20px 0px
    }

    .riddle-right-title {
        position: static;
        transform: none;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        margin-bottom: 10px;
        font-size: 35px;
    }
    .riddle-letter
    {
        width: 25px;
        height: 25px;
                font-size: 15px;
    }
    .budona {
        font-family: 'HEEBO';
        font-size: 14px;
            line-height: 23px;
            color: #71532d;
            font-weight: bold;
            width: 100%;
            height: 65%;
            padding: 0px 23px;
    }
    .riddle-char-right {
        display: none
    }
    .riddle-letters:before, .riddle-letters:after
    {
        display: none;
    }

    .riddle-form {
        flex-direction: column;
        align-items: stretch
    }
    .riddle-panel
    {
        padding:20px 20px 0;
    }
    .riddlekid
    {
        display: none;
    }
    .textcontainer3
    {
        font-size: 25px;
    }
    .riddle-message
    {
        bottom:5px;
        font-size: 20px;
        lefT:0;
        right:0;
        text-align: center;
    }
    .certificate
    {
        margin-top: 0!important;

        height: 531px;
    }
    .certificate-title1
    {
        font-size: 60px!important;
    }
    .certificate-title
    {
        font-size: 25px!important;
    }
    .mcenter
    {
        text-align: center!important;
    }
    .mpz
    {
        padding:0!important;
        overflow: hidden!important;
    }
    /* Force break after first word in second row on mobile */
    .riddle-row{flex-wrap: wrap;justify-content: flex-start;}
    .riddle-letters .riddle-row:nth-child(2) .riddle-space{display:block;width:100%;height:0}
}
