/* === Обнуление и общие стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* === Контейнер с фиксированным размером === */
.page-container {
    width: 100%;
    height: 100%;
    margin: 0 auto; /* Центрирование по горизонтали (необязательно) */
    overflow: hidden;
    position: relative;
}

/* === Фоновая секция === */
.background-image {
    width: 100%;
    height: 100%;
    background-image: url('images/ferma_fone.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}



/* === Контейнер для кнопок === */
.button-container {
    display: flex;
    justify-content: space-evenly;
    align-items: end;
    width: 100%;
    position: absolute;
    bottom: 40px;
}

/* === Стиль кнопки === */
.button {
    width: 80px;
    height: 80px;
    border: none;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* === Специфичные стили для каждой кнопки === */



/* Центральная кнопка */
.button-center {
    width: 110px;
    height: 110px;
    background-image: url('images/farm_btn.png'); /* Измените путь к вашему изображению */
}


.balance-container {
    position: absolute;
    top: 10px; /* Положение контейнера для баланса */
    padding: 0 10px;
    left: 5px;
}

.side_HUD{
    margin-left: 20px;
    position: absolute;
    bottom: 200px;
    display: flex;
    flex-direction: column;
    width: 170px;
    height: 330px;
    left: 0px;
}

.claim-box{
    width: 170px;
    height: 135px;
    display: flex;
    justify-content: end;
    align-items: end;
}

.fone-claim-box{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 159px;
    height: 107px;
    background-repeat: no-repeat;
    background-image: url(images/claim_fone.png);
}

.title-claim-box{
    position: absolute;
    top: 10px;
    left: -6px;
    width: 170px;
    height: 45px;
    background-repeat: no-repeat;
    background-image: url(images/claim_tittle.png);
}

.field-claim-box{
    width: 135px;
    height: 40px;
    background-repeat: no-repeat;
    background-image: url(images/claim_field.png);
}

.btn-claim-box{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 100px;
    width: 150px;
    height: 50px;
    background-repeat: no-repeat;
    background-image: url(images/claim_btn.png);
}

#claim_balance, #claim_balance1{
    font-size: 18px;
    color: white;
    padding-top: 10px;
    text-align: center;
}

.info-box{
    width: 170px;
    height: 190px;
    display: flex;
    justify-content: end;
    align-items: end;
}

.fone-info-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 151px;
    height: 145px;
    background-repeat: no-repeat;
    background-image: url(images/finfo_fone.png);
}

.title-info-box{
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 103px;
    left: 0px;
    width: 147px;
    height: 57px;
    background-repeat: no-repeat;
    background-image: url(images/finfo_tittle.png);
}

.capacity-info-box{
    width: 130px;
    height: 40px;
    background-repeat: no-repeat;
    align-items: center;
    background-image: url(images/finfo_capacity.png);
}

.income-info-box{
    width: 130px;
    height: 40px;
    background-repeat: no-repeat;
    align-items: center;
    background-image: url(images/finfo_income.png);
}

.btn-info-box{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -11px;
    left: 25px;
    width: 150px;
    height: 50px;
    background-repeat: no-repeat;
    background-image: url(images/finfo_btn.png);
}

#capacity_farm{
    font-size: 15px;
    color: white;
    padding-top: 10px;
    text-align: center;
    margin-top: 6px;
}

#income_farm{
    font-size: 15px;
    color: white;
    padding-top: 10px;
    text-align: center;
    margin-top: 6px;
}

#flvl{
    font-size: 25px;
    color: white;
    padding-bottom: 5px;
    padding-left: 19px;

}

#upgrade-cost{
    padding-top: 10px;
    font-size: 18px;
    color: white;
    padding-right: 10px;
}

.claim-btn, .upgrade-btn{
    position: absolute;
    width: 100%;
    height: 100%;
}

.notification {
  position: fixed;
  bottom: 80px; /* чтобы не мешало кнопке */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(3, 149, 18, 0.7);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.notification_false {
  position: fixed;
  bottom: 80px; /* чтобы не мешало кнопке */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(201, 0, 0, 0.7);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.notification.show, .notification_false.show{
  opacity: 1;
  pointer-events: auto;
}


/* === Модальное окно улучшения фермы === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.modal-content button {
    padding: 8px 16px;
    margin: 5px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#confirm-upgrade {
    background-color: #28a745;
    color: white;
}

#cancel-upgrade {
    background-color: #dc3545;
    color: white;
}