.lock-screen {
    height: 100%;
    overflow: hidden;
    width: 100%;
    position: fixed;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.highlight {
    background-color: yellow;
}

.centerTable {
    margin-left: auto;
    margin-right: auto;
}

/* Used for full covered background....make sure the image URL is replaced as needed */
body, html {
    height: 100vh;
    /* The below should preventtext iOS highlight callouts. On iOS Safari if the user long-presses on the screen, text highlight callout will be displayed ...e.g. Copy, Look Up, Translate...etc */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.html-mobile-background {
    /* The image used */
    background-image: url('../Image/HabeshaScroll_HorizontalBackground.png');
    /* Full height */
    height: 100vh;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

/* Used by GenerateRandomBallsBackgroundAnimation() in Common.js */
.randomBallsBackgroundAnimation {
    position: absolute;
    border-radius: 100%;
    opacity: 0.7;
}

/* Used by ShowModalForm() in Common.js */
/* Make sure the iframe runs full screen */
iframe {
    position: fixed;
    background: none;
    border: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.8;
    filter: alpha(opacity=80);
    /*-moz-opacity: 0.8;*/
    min-height: 100%;
    width: 100%;
}

/* Style the image in the modal form*/
.modalFormImage {
    font-family: Arial;
    font-size: 10pt;
    border: none;
    width: 576px;
    height: 432px;
    display: none;
    position: fixed;
    background-color: none;
    z-index: 999;
}

/* Style the video in the modal form*/
.modalFormVideo {
    font-family: Arial;
    font-size: 10pt;
    border: none; /*5px solid #67CFF5;*/
    width: 576px;
    height: 432px;
    display: none;
    position: fixed;
    background-color: none;
    z-index: 999;
}

    .modalFormVideo.ShowHintVideo {
        border: 15px solid black;
        width: 300px;
        height: 300px;
    }

.ShowHaHuVideo {
    font-family: Arial;
    font-size: 10pt;
    border: none; /*5px solid #67CFF5;*/
    width: 576px;
    height: 432px;
    display: none;
    position: fixed;
    background-color: none;
    z-index: 999;
}

/* Menu buttons */
.footerButton {
    height: 104px; /*image height*/
    width: 104px; /*image width*/
    border-color: none;
    background-size: cover;
    box-shadow: 15px 15px 15px #000;
    margin: 27px;
}

    .footerButton.Home {
        background-image: url('../Image/Menu/Home.png');
    }

    .footerButton.Play {
        background-image: url('../Image/Menu/Play.png');
    }

    .footerButton.Sound {
        background-image: url('../Image/Menu/Sound.png');
    }

    .footerButton.Next {
        background-image: url('../Image/Menu/NextButton.png');
    }

    .footerButton.Shuffle {
        background-image: url('../Image/Menu/Shuffle.png');
    }

    .footerButton.Delete {
        background-image: url('../Image/Menu/Delete.jpg');
    }

    .footerButton.Solve {
        background-image: url('../Image/Menu/Key.png');
    }

    .footerButton.PlayHaHuVideo {
        background-image: url('../Image/Menu/Video.png');
    }

    .footerButton.Left {
        background-image: url('../Image/LeftArrow-Yellow.png');
    }

    .footerButton.Up {
        background-image: url('../Image/UpArrow-Yellow.png');
    }

    .footerButton.Down {
        background-image: url('../Image/DownArrow-Yellow.png');
    }

    .footerButton.Right {
        background-image: url('../Image/RightArrow-Yellow.png');
    }

    .footerButton.SlowLeft {
        background-image: url('../Image/LeftArrow-Red.png');
    }

    .footerButton.SlowUp {
        background-image: url('../Image/UpArrow-Red.png');
    }

    .footerButton.SlowDown {
        background-image: url('../Image/DownArrow-Red.png');
    }

    .footerButton.SlowRight {
        background-image: url('../Image/RightArrow-Red.png');
    }

    .footerButton.Skip {
        background-image: url('../Image/Menu/SkipButton.jpg');
        z-index: 400;
        height: 31px; /*image height*/
        width: 74px; /*image width*/
        max-height: 31px; /*image height*/
        max-width: 74px; /*image width*/
        position: fixed;
        right: 20px;
        bottom: 20px;
        border: none;
    }

    .footerButton.Brush {
        height: 72px; /*image height*/
        width: 72px; /*image width*/
        background-color: transparent;
        border-radius: 50px;
        border: 0;
        margin: 15px 5px;
        padding: 5px;
    }

        .footerButton.Brush.SelectRedColourBrush {
            background-image: url('../Image/RoundRedColourPicker.png');
        }

        .footerButton.Brush.SelectGreenColourBrush {
            background-image: url('../Image/RoundGreenColourPicker.png');
        }

        .footerButton.Brush.SelectBlueColourBrush {
            background-image: url('../Image/RoundBlueColourPicker.png');
        }

        .footerButton.Brush.SelectYellowColourBrush {
            background-image: url('../Image/RoundYellowColourPicker.png');
        }

        .footerButton.Brush.SelectTorcourseBlueColourBrush {
            background-image: url('../Image/RoundTorcourseBlueColourPicker.png');
        }

        .footerButton.Brush.SelectPurpleColourBrush {
            background-image: url('../Image/RoundPurpleColourPicker.png');
        }

/****** Used for ClickPopAnimation *********/

particle {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

.preloader {
    position: absolute;
    background: url(../Image/Menu/favicon-100x100.png);
}

/****** Used for ClickPopAnimation *********/



/****** Used for shaking animation on image or text *********/

/* Add the relevant shake/wiggle/pulse class to img or div tag so that the element animates */

/**** Shake *****/

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

/**** Shake *****/



/**** Wiggle *****/

@-webkit-keyframes wiggle {
    0% {
        -webkit-transform: skewX(9deg);
    }

    10% {
        -webkit-transform: skewX(-8deg);
    }

    20% {
        -webkit-transform: skewX(7deg);
    }

    30% {
        -webkit-transform: skewX(-6deg);
    }

    40% {
        -webkit-transform: skewX(5deg);
    }

    50% {
        -webkit-transform: skewX(-4deg);
    }

    60% {
        -webkit-transform: skewX(3deg);
    }

    70% {
        -webkit-transform: skewX(-2deg);
    }

    80% {
        -webkit-transform: skewX(1deg);
    }

    90% {
        -webkit-transform: skewX(0deg);
    }

    100% {
        -webkit-transform: skewX(0deg);
    }
}

@-moz-keyframes wiggle {
    0% {
        -moz-transform: skewX(9deg);
    }

    10% {
        -moz-transform: skewX(-8deg);
    }

    20% {
        -moz-transform: skewX(7deg);
    }

    30% {
        -moz-transform: skewX(-6deg);
    }

    40% {
        -moz-transform: skewX(5deg);
    }

    50% {
        -moz-transform: skewX(-4deg);
    }

    60% {
        -moz-transform: skewX(3deg);
    }

    70% {
        -moz-transform: skewX(-2deg);
    }

    80% {
        -moz-transform: skewX(1deg);
    }

    90% {
        -moz-transform: skewX(0deg);
    }

    100% {
        -moz-transform: skewX(0deg);
    }
}

@-ms-keyframes wiggle {
    0% {
        -ms-transform: skewX(9deg);
    }

    10% {
        -ms-transform: skewX(-8deg);
    }

    20% {
        -ms-transform: skewX(7deg);
    }

    30% {
        -ms-transform: skewX(-6deg);
    }

    40% {
        -ms-transform: skewX(5deg);
    }

    50% {
        -ms-transform: skewX(-4deg);
    }

    60% {
        -ms-transform: skewX(3deg);
    }

    70% {
        -ms-transform: skewX(-2deg);
    }

    80% {
        -ms-transform: skewX(1deg);
    }

    90% {
        -ms-transform: skewX(0deg);
    }

    100% {
        -ms-transform: skewX(0deg);
    }
}

@-o-keyframes wiggle {
    0% {
        -o-transform: skewX(9deg);
    }

    10% {
        -o-transform: skewX(-8deg);
    }

    20% {
        -o-transform: skewX(7deg);
    }

    30% {
        -o-transform: skewX(-6deg);
    }

    40% {
        -o-transform: skewX(5deg);
    }

    50% {
        -o-transform: skewX(-4deg);
    }

    60% {
        -o-transform: skewX(3deg);
    }

    70% {
        -o-transform: skewX(-2deg);
    }

    80% {
        -o-transform: skewX(1deg);
    }

    90% {
        -o-transform: skewX(0deg);
    }

    100% {
        -o-transform: skewX(0deg);
    }
}

@keyframes wiggle {
    0% {
        transform: skewX(9deg);
    }

    10% {
        transform: skewX(-8deg);
    }

    20% {
        transform: skewX(7deg);
    }

    30% {
        transform: skewX(-6deg);
    }

    40% {
        transform: skewX(5deg);
    }

    50% {
        transform: skewX(-4deg);
    }

    60% {
        transform: skewX(3deg);
    }

    70% {
        transform: skewX(-2deg);
    }

    80% {
        transform: skewX(1deg);
    }

    90% {
        transform: skewX(0deg);
    }

    100% {
        transform: skewX(0deg);
    }
}

.wiggle {
    -webkit-animation-name: wiggle;
    -moz-animation-name: wiggle;
    -ms-animation-name: wiggle;
    -o-animation-name: wiggle;
    animation-name: wiggle;
    -webkit-animation-timing-function: ease-in;
    -moz-animation-timing-function: ease-in;
    -ms-animation-timing-function: ease-in;
    -o-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    -ms-animation-duration: 1s;
    -o-animation-duration: 1s;
    animation-duration: 1s;
}

/**** Wiggle *****/



/**** Pulse *****/

@keyframes pulse {
    from {
        transform: scale3d(1, 1, 1);
    }

    50% {
        transform: scale3d(1.2, 1.2, 1.2);
    }

    to {
        transform: scale3d(1, 1, 1);
    }
}

.pulse {
    animation-name: pulse;
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    animation-duration: .75s;
    background: #00FF00;
}

/**** Pulse *****/


/****** Used for shaking animation on image or text *********/
/****** Used for popup animation, for example on game completion *********/
/* Animation Board */
.animationBoard {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
    background-position: center;
    border-color: black;
    border: solid;
    z-index: 11;
}

/****** Used for popup animation, for example on game completion *********/


/******************** Media queries ***************************/

/* This should handle  iPhone5/SE (W 320, H 568) in landscape mode */
@media (min-width: 568px) and (max-width: 568px) and (min-height: 320px) and (max-height: 320px) and (orientation: landscape) {
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Width range of 640px - 667px, in landscape mode */
/* This should handle Galaxy Fold (W 280, H 653), Galaxy Note/S5 (W 360, H 640), iPhone 6/7/8 (W 375, H 667) */
@media (min-width: 640px) and (max-width: 667px) and (min-height: 280px) and (max-height: 375px) and (orientation: landscape) {
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Width range of 720px - 823px, in landscape mode */
/* This should handle iPhone X (W 375, H 812), iPhone Plus (W 414, H 763), Pixel 2 (W 411, H 731), Pixel XL (W 411, H 823) */
@media (min-width: 720px) and (max-width: 823px) and (min-height: 375px) and (max-height: 414px) and (orientation: landscape) {

    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* From a width of.... */
@media (min-width: 824px) and (min-height: 762px) and (orientation: landscape) {
    body {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

/* This should handle Surface (W 540, H 720) in landscape mode */
@media (min-height: 540px) and (max-height: 540px) and (min-width: 720px) and (max-width: 720px) and (orientation: landscape) {
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 804px) and (orientation: landscape) {
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

.ya-page {
    padding: 32px 16px;
}

.ya-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.ya-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.ya-card-pad {
    padding: 28px;
}

.ya-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ya-title {
    font-size: 40px;
    line-height: 1.05;
    margin: 0;
}

.ya-subtitle {
    margin: 8px 0 0 0;
    color: rgba(0, 0, 0, 0.6);
}

.ya-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ya-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

    .ya-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

.ya-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: rgba(37, 99, 235, 0.35);
}

    .ya-btn-primary:hover {
        background: #1d4ed8;
    }

.ya-btn-danger {
    background: #ef4444;
    color: #fff;
    border-color: rgba(239, 68, 68, 0.35);
}

    .ya-btn-danger:hover {
        background: #dc2626;
    }

.ya-section {
    margin-top: 22px;
}

.ya-section-title {
    font-size: 20px;
    margin: 0;
}

.ya-section-desc {
    margin: 8px 0 0 0;
    color: rgba(0, 0, 0, 0.65);
}

.ya-tile {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ya-tile-left {
    min-width: 0;
}

.ya-tile-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.ya-tile-text {
    margin: 6px 0 0 0;
    color: rgba(0, 0, 0, 0.65);
}

@media (max-width: 720px) {
    .ya-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ya-actions {
        width: 100%;
    }

    .ya-btn {
        width: 100%;
    }


    .ya-actions form {
        width: 100%;
    }

    .ya-tile {
        flex-direction: column;
        align-items: stretch;
    }
}
.ya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 18px;
    margin-top: 18px;
}

.ya-actions form {
    margin: 0;
}

.site-root{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1}
.site-footer{background:#fff;border-top:1px solid rgba(0,0,0,.08);padding:14px 16px;text-align:center;color:rgba(0,0,0,.65)}
.site-footer a{color:#0d6efd;text-decoration:none}

@media (max-width: 520px){
  .floating-setup-btn{top:8px;right:8px;padding:.55rem .8rem}
  .ya-nav{margin-top:64px !important}
  .ya-page{padding:18px 8px}
  .ya-card-pad{padding:16px}
  .ya-grid{grid-template-columns:1fr}
  .ya-tile{padding:14px}
}
