body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #000;
    background-color: #333; /* Sötétebb háttér a széleken */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
body *{
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.falling-game {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 600px; /* Mobil képarány korlátozás - növelve 500-ról */
    margin: 0 auto;
    background-color: #888;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
@media (max-width: 600px) {
    .falling-game {
        max-width: 100%;
        box-shadow: none;
    }
}
.headline{
    padding: 24px 25px;
    background-image: url('image/intro-headline.svg');
    background-origin: content-box;
}
.intro-text{
    font-size: 16px;
    text-align: center;
    /*margin-top: 20px;*/
    color: white;
    font-family: 'gnuolane', Arial, Helvetica, sans-serif;
    padding: 24px;
}

.falling-game-element-dragging {
}
.falling-game-element {
    /*width: 64px;*/
    /*height: 64px;*/
    cursor: grab;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px 20px;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
    z-index: 2000000;
}

.ui-draggable-dragging {
    cursor: grabbing;
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
    transition: transform 0.2s ease-in-out;
}
.droptarget.dragover{
    opacity: 1;
}
.falling-game-drop-left{
    height: calc(100% - 150px);
    width: 60px; /* Fix szélesség vw helyett */
    left: 0;
    top: 0;
    position: absolute;
    background-position: 0px -5px;
    z-index: 100;
    background-repeat: no-repeat;
    pointer-events: none;
    background-color: transparent;
    background-image: url("image/left-bg.svg");
    background-size: cover;
    display: none;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
    pointer-events: auto;
}
.game-is-running .falling-game-drop-left {
    display: block;
}
.falling-game-drop-left.dragover{
    opacity: 1;
    box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.7);
}
.falling-game-drop-left-image{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 100%;
    background-image: url("images/sword.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
.falling-game-drop-right-image{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84%;
    height: 100%;
    background-image: url("images/lock.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
.falling-game-drop-right{
    height: calc(100% - 150px);
    width: 60px; /* Fix szélesség vw helyett */
    right: 0;
    top: 0;
    position: absolute;
    z-index: 100;
    pointer-events: none;
    background-repeat: no-repeat;
    background-color: transparent;
    background-image: url("image/right-bg.svg");
    background-size: cover;
    display: none;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
    pointer-events: auto;
}
.game-is-running .falling-game-drop-right {
    display: block;
}
.falling-game-drop-right.dragover{
    opacity: 1;
    box-shadow: 0 0 20px 5px green;
}



.falling-game-primary-font {
    font-family: intro_blackregular;
}

.falling-game-container {
    overflow: hidden;
    position: relative;
}

.falling-game-window-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1500;
}

.falling-game-window {
    margin: 0px auto;
    background-color: #fff;
    overflow: hidden;
}

.falling-game-window-container-fullscreen .falling-game-window {
    width: 100%;
    height: 100%;
}


.falling-game-introdialog-content {
    width: 100%;
    height: 100%;
    background-image: url("images/intro-bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.falling-game-introdialog-topbar {
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    background-color: #ec6608;
    background-image: url("image/cib-logo.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px;
    z-index: 200000;
}

.falling-game-game-flying-score {
    position: absolute;
    font-size: clamp(50px, 15vw, 120px);
    color: #fff;
    font-weight: bold;
    font-family: intro_blackregular;
    z-index: 50000;
    transform: translateX(-50%);
    pointer-events: none;

    transition: all 0.5s ease-in-out;
    top: 35%;
    left: 50%;
}

.falling-game-game-flying-score.flying {
    transform: scale(3);
    opacity: 0;
    left: 40%;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

.falling-game-introdialog-helpbutton {
    float: right;
    display: block;
    margin-right: 7px;
    width: 89px;
    height: 89px;
    color: #000000;
    font-size: 50px;
    /*background-image: url("image/help.png");*/
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    display: none;
}

.falling-game-introdialog-buttons {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.falling-game-introdialog-buttons > div:nth-child(1) {
    flex: 0.6 1 0%;
    min-height: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.falling-game-introdialog-buttons > div:nth-child(3) {
    flex: 1.4 1 0%;
    min-height: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.falling-game-introdialog-gamebutton, .falling-game-introdialog-leadersbutton {
    background-repeat: no-repeat;
    background-position: top left;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.falling-game-introdialog-gamebutton {
    /*float: left;*/
    /*display: block;*/
    /*width: 300px;*/
    /*height: 89px;*/
    /*position: absolute;*/
    /*left: 50%;*/
    /*top: calc(50% - 45px);*/
    /*transform: translateX(-50%);*/
    /*!*transform: translateY(-50%);*!*/
    /*color: transparent;*/
    /*!*background-image: url("image/intro-game.png");*!*/
}

.falling-game-introdialog-leadersbutton {
    float: right;
    display: block;
    width: 236px;
    height: 90px;
    /*background-image: url("image/intro-leaders.png");*/
}

.falling-game-leadersdialog-content {
    overflow: hidden;
    width: 100%;
    height: 100%;
    /*background-image: url("image/leaders-bg.png");*/
    background-position: top center;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: #888;
}

.falling-game-leadersdialog-progress {
    margin: 300px auto 0 auto;
    width: 64px;
    height: 64px;
    background-image: url("image/progress.gif");
    background-position: center center;
    background-repeat: no-repeat;
}

.falling-game-leadersdialog-failed {
    margin-top: 300px;
    text-align: center;
    color: red;
}

.falling-game-leadersdialog-list {
    margin: 130px auto 0 auto;
    width: 100%;
}

.falling-game-leadersdialog-list-item {
    box-sizing: border-box;
    margin: 0 0 5px 0;
    height: 45px;
    padding-top: 10px;
    font-size: 22px;
    background-position: 1px 1px;
    background-repeat: no-repeat;
}

.falling-game-leadersdialog-list-item-award-gold:before {
    content: "🥇";
    font-size: 30px;
    width: 30px;
    height: 30px;
    position: absolute;
}

.falling-game-leadersdialog-list-item-award-silver:before {
    content: "🥈";
    font-size: 30px;
    width: 30px;
    height: 30px;
    position: absolute;
}

.falling-game-leadersdialog-list-item-award-bronze:before {
    content: "🥉";
    font-size: 30px;
    width: 30px;
    height: 30px;
    position: absolute;
}

.falling-game-leadersdialog-list-item-name {
    display: inline-block;
    margin-left: 70px;
    width: 310px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
    min-height: 25px;
}

.falling-game-leadersdialog-list-item-score {
    display: inline-block;
    margin-left: 50px;
    text-align: right;
    width: 60px;
    float: left;
}

.falling-game-leadersdialog-list-item-date {
    display: inline-block;
    margin-left: 70px;
    font-size: 13px;
    float: left;
    padding-top: 6px;
}

.falling-game-pauseddialog-content {
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    z-index: 10000;
    position: absolute;
}

.falling-game-pauseddialog-continuebutton {
    display: block;
    width: 236px;
    height: 89px;
    margin: 250px auto 0 auto;
    color: transparent;
    background-image: url("image/paused-continue.png");
    background-position: top center;
    background-repeat: no-repeat;
}

.falling-game-game {
    width: 100%;
    height: 100%;
    background-image: url("images/bg.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    /*background-color: #888;*/
    z-index: 1;
}

.falling-game-game-footer{
    box-sizing: border-box;
    height: 150px;
    width: 100%;
    background-color: #ec6608;
    padding-top: 5px;
    background-repeat: no-repeat;
    background-position: bottom;
    z-index: 20000;
    position: absolute;
    z-index: 100001;
    bottom: 0;
    left: 0;
    display: none;

}
.falling-game-game-footer-counter_ninja{
    position: absolute;
    bottom: 35px;
    left: 12px;
    width: 273px;
    height: 160px;
    /*background-color: red;*/
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("images/NINJA-counter.png");
}
.falling-game-game-footer-btn_home{
    position: absolute;
    bottom: 20px;
    right: 28px;
    width: 32px;
    height: 32px;
    /*background-color: red;*/
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    background-image: url("images/home.png");
}
.falling-game-bg2{

}
.falling-game-game-header-label {
    overflow: hidden;
    display: inline-block;
    font-size: 21px;
    vertical-align: middle;
    margin: 20px;
}
.falling-game-game-header-label:first-letter {
	text-transform: uppercase;
}

.falling-game-game-header-wantedelements {
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.falling-game-game-header-wantedelements .falling-game-element {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.falling-game-game-header-allscores{
    float: right;
    display: inline-block;
    font-size: 30px;
    color: #fff;
    font-family: intro_blackregular;
    position: absolute;
    bottom: 87px;
    right:30px;
    font-size:35px;
    z-index: 10000;
}
.falling-game-game-header-score {
    display: inline-block;
    margin: 15px;
    font-size: 30px;
    color: #483159;
    font-family: intro_blackregular;
    position: absolute;
    bottom: 33px;
    left: 151px;
    font-size: 63px;
    text-align: right;

}
.falling-game-game-header-score:after{
    content: "";
    position: absolute;
    width: 54px;
    height: 35px;
    background-image: url("images/pont.png");
    background-size: contain;
    background-repeat: no-repeat;
    top:28px;
    margin-left: 10px;
}

.falling-game-game-header-fails {
    float: right;
    width: 70px;
    display: none;
    margin: 15px;
    font-size: 30px;
    color: red;
    font-weight: bold;
    font-family: sans-serif;
}
.falling-game-game-header-losted {
    float: right;
    width: 70px;
    display: none;
    margin: 15px;
    font-size: 30px;
    color: red;
    font-weight: bold;
    font-family: sans-serif;
}

@media (max-width: 396px) {
    .falling-game-game-footer-counter_ninja {
        width: 240px;
        height: 117px;
        bottom: 53px;
    }
    .falling-game-game-header-allscores {
        bottom: 89px;
        right: 22px;
        font-size: 25px;
    }
    .falling-game-game-header-score {
        bottom: 45px;
        left: 110px;
        font-size: 46px;
    }
    .falling-game-game-header-score:after {
        width: 40px;
        height: 26px;
        top: 19px;
        margin-left: 7px;
    }
}

.falling-game-game-field {
    position: relative;
    margin: 0 auto;
}

.falling-game-game-fallingelement {
    position: absolute;
}
/*.falling-game-game-fallingelement.left:before {*/
/*    content: "🢐"; !* utf-8 left arrow *!*/
/*    font-size: 50px;*/
/*    line-height: 0px;*/
/*    padding-top: 15px;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    margin-left: -20px;*/
/*    color: #000 !important;*/

/*}*/
/*.falling-game-game-fallingelement.right:after {*/
/*    content: "🢒"; !* utf-8 right arrow *!*/
/*    font-size: 50px;*/
/*    line-height: 0px;*/
/*    padding-top: 15px;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    margin-right: -20px;*/
/*    color: #000 !important;*/

/*}*/

.falling-game-element {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.falling-game-element-flipped {
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -ms-transform: scaleX(-1);

}




.falling-game-game-ground {
    position: absolute;
    height: 10px;
    background-color: transparent;
    border-radius: 5px;
}

.falling-game-help {
    width: 100%;
    height: 100%;
    /*background-image: url("image/game-bg.jpg");*/
    background-position: center 78px;
    background-repeat: repeat;
    z-index: 10;
}

.falling-game-help-header {
    box-sizing: border-box;
    height: 78px;
    background-color: #ccc;
    /*background-image: url("image/header.png");*/
    background-position: center;
    background-repeat: repeat-y;
    padding-top: 5px;
    text-align: center;
}

.falling-game-help-titletext {
    display: inline-block;
    margin: 20px;
    font-weight: bold;
    font-size: 22px;
}

.falling-game-help-text {
    font-size: 17px;
    margin: 20px;
}

.falling-game-help-text-center {
    text-align: center;
}

.falling-game-help-text-link {
	margin: 0 auto;
	height: auto;
	width: auto;
	border: 2px solid white;
	border-radius: 10px;
	/*background-image: url("/images/button_bg.png");*/
	background-repeat: repeat-x;
	background-size: 100% 100%;
    background-color: #ccc;
    padding: 10px 20px;
	cursor: pointer;
	color: black;
	font-family: Arial, Helvetica, sans-serif;
	font-size:20px;
	text-decoration:none !important;
}

.falling-game-gameover {
    overflow: hidden;
    width: 100%;
    height: calc(100% - 150px);
    /*background-image: url("image/gameover-bg.png");*/
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 10;
    background-color: #888;
}
.falling-game-dialog-footer{
    height: 250px;
    background-color: #ec6608;
    width: 100%;
    position: absolute;
    bottom: 0;
}
.falling-game-gameover.tanonc {
    background-image: url("images/end-tanonc.jpg") !important;
}
.falling-game-gameover.halado {
    background-image: url("images/end-halado.jpg") !important;
}
.falling-game-gameover.feketeoves{
    background-image: url("images/end-feketeoves.jpg") !important;
}
.falling-game-gameover-topbar {
    height: 100px;
    overflow: hidden;
}
.falling-game-gameover-helpbutton {
    float: right;
    display: block;
    margin-right: 7px;
    width: 89px;
    height: 89px;
    color: #000000;
    /*background-image: url("image/help.png");*/
    background-position: center;
    font-size: 50px;
    text-decoration: none;
    background-repeat: no-repeat;
}
.falling-game-gameover-homebutton{
    position: absolute;
    bottom: 20px;
    right: 28px;
    width: 32px;
    height: 32px;
    z-index: 10000;
    background-image: url("images/home.png");
    background-repeat: no-repeat;
    background-size: contain;
}
.falling-game-gameover-messages {
    position: absolute;
    text-align: center;
    font-size: 24px;
    color: #483159;
    bottom: 232px;
    width: 100%;
    font-family: intro_blackregular;
    z-index: 10000;
}
.falling-game-gameover-messages .big {
    font-size: 52px;
}

.falling-game-gameover-progress {
    margin: 100px auto 0 auto;
    width: 64px;
    height: 64px;
    background-image: url("image/progress.gif");
    background-position: center center;
    background-repeat: no-repeat;
    font-size: 36px;
}


.falling-game-gameover-buttons {
    margin: 203px auto 0 auto;
    width: min(710px, 92%);
    overflow: hidden;
}

/* iOS Add to Home Screen Prompt */
.ios-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    color: #333;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 100000;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.ios-install-prompt::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.ios-install-prompt .close-prompt {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.ios-install-prompt img.share-icon {
    height: 24px;
    vertical-align: middle;
    margin: 0 5px;
}

.ios-install-prompt b {
    color: #e10816;
}

.falling-game-gameover-gamebutton, .falling-game-gameover-leadersbutton {
    background-repeat: no-repeat;
    background-position: top left;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    display: none;
}

.falling-game-gameover-gamebutton {
    float: left;
    display: block;
    width: 236px;
    height: 89px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    display: none;

    /*background-image: url("image/intro-game.png");*/
}

.falling-game-gameover-leadersbutton {
    float: right;
    display: block;
    width: 236px;
    height: 90px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    display: none;

    /*background-image: url("image/intro-leaders.png");*/
}

.falling-game-gameover-failed {
    margin: 100px auto 0 auto;
    width: 50%;
    padding: 10px;
    background-color: white;
    color: red;
    text-align: center;
}

.falling-game-gameover-result-text {
    line-height: 1.2;
    padding: 20px;
    color: #fff;
    font-family: gnuolane, Arial, Helvetica, sans-serif;
    font-size: 18px;
    text-align: center;
    height: 100%;

}

.falling-game-gameover-footer {
    height: 270px;
    background-color: #ec6608;
    width: 100%;
    position: absolute;
    bottom: 0;


}

.falling-game-gameover-footer:before {
    content: "";
    display: block;
    width: 324px;
    height: 78px;
    background-image: url("images/btn_bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin: 0 auto;
    margin-top: -34px;
}
