html {
    padding: env(safe-area-inset);
}

body {
    color: #282828;
    font-family: Helvetica, serif;
    font-size: 13px;
    text-align: center;
    margin: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background: #282828;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../img/logicountry_big.png");
}

button {
    font-family: Helvetica, serif;
    font-weight: bold;
    border-radius: 10px;
    background-color: #cc6600;
    border: none;
    color: #282828;
    padding: 15px 15px;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

img {
    border-radius: 10px;
}

a {
   color: #cc6600;
}

a:hover {
    color: #D17519;;
}

button:hover {
    background-color: #D17519;
    transform: translateY(-2px);
}

.button-white {
    color: #282828;
    background-color: whitesmoke;
    width: 100px;
    padding: 10px 10px;
    margin: 5px;
    font-size: 10px;
}

.button-white :hover {
    background-color: #D17519;
}

.button-orange-disabled {
    width: 100px;
    padding: 10px 10px;
    margin: 5px;
    font-size: 10px;
    cursor: auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.0);
}

.button-orange-disabled:hover {
    transform: translateY(0px);
    background-color: #cc6600;
}

.cloud {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

#container {
    width: 100%;
    height: 100%;
    display: block;
    cursor: none;
}

#mainPanel {
    color: #282828;
    font-size: 14pt;

    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

#mpLeft {
    flex-grow: 1;
    display: flex;
    flex-flow: column nowrap;
}

#mpCenter {
    flex-grow: 4;
}

#mpRight {
    display: flex;
    flex-grow: 2
}

.mpIconButton {
    height: 100px;
}

.mpIconWhiteButton {
    height: 15px;
}

#mpSoundPanel {
    color: #282828;
    opacity: 0.6;
    font-size: 10px;

    position: absolute;
    top: 5px;
    right: 0;
    margin-left: auto;
}

#mpStatusPanel {
    color: #cc6600;
    font-weight: bold;
    font-size: 14px;
    width: 250px;

    position: absolute;
    top: 5px;
    left: 50%;
    margin-left: auto;
}

#mpEducationPanel {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;

    font-size: 14px;
    width: 210px;

    position: absolute;
    top: 50px;
    right: 5px;
    margin-left: auto;
}

#mpEducationPanel p {
    padding: 5px;
}

#mpEducationPanel span {
    color: #cc6600;
    font-weight: bold;
}

#tutorialOffLink {
    cursor: pointer;
    padding: 0;
}

#tutorialOffLink :hover {
    color: #cc6600;
}

#mpNotificationPanel {
    color: #282828;
    font-size: 12px;
    font-weight: bold;

    position: absolute;
    bottom: 150px;
    left: 5px;
}

#mpNotificationPanel p{
    padding: 5px;
}

.button-cloud {
    opacity: 0.6;
    color: black;
    width: 100px;
    background-color: #e5e5e5;
    padding: 10px 10px;
    margin: 5px;
    font-size: 9px;
}

.button-cloud:hover {
    background-color: #f2f2f2;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/** Build panel cards **/
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.card-container :hover {
    transform: scale(1.2);
}

.card-body {
    font-family: Helvetica, serif;
    border-radius: 4px;
    background-color: #e5e5e5;
    color: black;
    padding: 15px 15px;
    margin: 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-body-not-selected {
    transform: scale(0.5);
}

.card-body .main-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
}

.card-body .main-title img {
    width: 100px;
    height: 80px;
    border-radius: 6px;
}

.card-body .sub-title {
    font-size: 12px;
}

.card-body :hover {
    transform: none;
}

.menuContainer {
}

.menuContainer .header {
    text-align: center;
}

.menuContainer .header img {
    height: 250px;
}

.menuContainer .items {
    display: flex;
    flex-flow: column wrap;
    align-content: center;
}

.menuContainer button {
    width: 200px;
}

.menuContainer .version {
    text-align: right;
}


/* The Modal (background) */

.hiddenModal {
    display: none;
}

.pie-modal {
    /*display: block;*/ /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    text-align: left;

    overflow: auto; /* Enable scroll if needed */
    /* Скрываем scrollbar для IE, Edge и Firefox */
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Скрываем scrollbar для Chrome, Safari и Opera */
.pie-modal::-webkit-scrollbar {
    display: none;
}

/* Modal Content/Box */
.pie-modal-content {
    background-color: #fefefe;
    margin: 1% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    font-size: 16px;
    border-radius: 10px;
}

.pie-modal-header {
    text-align: right;
    margin-top: -20px;
}

.pie-modal-container {
}

.pie-modal-footer {
    text-align: right;
}

.modalClose {
    color: black;
    font-size: 14pt;
    font-weight: bold;
    cursor: pointer;
}

.modalClose:hover {
    color: gray;
    transform: translateY(-2px);
}

/** top button **/
#pieTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
}

#pieTopBtn:hover {
    background-color: #D17519;
}
