:root{
--menu-bg-color: #84af99;
/* --menu-color-primary: #71b173; */
--bamboo-color-primary: #4d9150;
--bamboo-color-secondary: #317034;
--whs:whitesmoke;
--border-menu-radius: 0.7rem;
--border-menu-btn-radius: 0.4rem;
--border-my: solid 0.2rem;
--border-btn-choose: rgb(255, 204, 0);

}

body {
    background-color: #84af99;
    /* max-width: 60rem; */
    zoom: 130%;
    padding-bottom: 4.8rem;
    padding-top: 3rem;
}

.title{
    width: fit-content;
    margin: 0.2rem;
    padding: 1rem;
}
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.game-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bamboo-container {
    position: relative;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    color: whitesmoke; 
    min-width: 30rem;
    min-height: 30.2rem;;

    border-bottom: solid 0.2rem var(--whs);
    border-radius: var(--border-menu-radius);

    background-image: url('BG_Bamboo_stick.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center; 
    
}
.player-stats{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: top;
    width: fit-content;
    min-width: 30rem;
    
    margin-top: 3rem !important;
    color: var(--whs);

    border-radius: var(--border-menu-radius);
    border-bottom: 0.2rem solid var(--whs);
}
.player-stats-item{
    display: flex;
    flex-direction: column;
    align-items: left;
    margin: 1rem !important; 
}

.search-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: top;
    width: fit-content;
    min-width: 30rem;
    min-height: 20rem;

    margin-top: 3rem !important;
    color: var(--whs);

    border-radius: var(--border-menu-radius);
    border-bottom: 0.2rem solid var(--whs);
}


.shadow{
    box-shadow: 2rem 2rem 4rem rgb(95, 95, 95);
}

#inventory-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    flex-direction: row;
}
.bamboo-inv{
    color: var(--whs);
    background-color: var(--bamboo-color-primary);
    border-color: var(--bamboo-color-secondary);
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    margin: 0.1rem;
    width: 5rem;
}
.bamboo-inv:hover{
    border: 2px solid var(--bamboo-color-secondary);
}

#crafted-sticks-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    flex-direction: row;
}
.crafted-stick {
    display: block;
    text-align: center;
    color: var(--whs);
    background-color: var(--bamboo-color-primary);
    border-color:  var(--bamboo-color-secondary);
    margin: 0.1rem;
    width: 5rem;
}
.crafted-stick:hover{
    border: 2px solid var(--bamboo-color-secondary);
}


.offcanvas.offcanvas-inv{
    background-color: var(--menu-bg-color);
    color: var(--whs);
    border-radius: var(--border-menu-radius);
    border-bottom: solid 0.2rem;

    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 500px;
}

.offcanvas-header{
    display: flex;
    justify-content:start;
    align-items: left;
    flex-direction: column;
    padding: 0.1rem;
    margin: 0.1rem;
}
.offcanvas-body{
    padding: 0.1rem;
    margin: 0.1rem;
}
.inventory-action-buttons{
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    flex-direction: row;
    align-items: center;
    margin: 0.1rem;
}

.navbar-menu{
    background-color: var(--menu-bg-color);
    color: var(--whs);
    /* height: fit-content; */
    /* max-height: 4rem; */
    width: fit-content;
    border-top-left-radius: var(--border-menu-radius);
    border-top-right-radius: var(--border-menu-radius);
    margin: 0 auto;
    /* border-top: solid 0.1rem var(--whs);
    border-bottom: none; */
    background: transparent;
}
.navbar-info{
    background-color: var(--menu-bg-color); 
    color: var(--whs);
    height: fit-content;
    width: fit-content;
    border-bottom: solid 0.1rem var(--whs);
    border-top: none;
    border-bottom-left-radius: var(--border-menu-radius);
    border-bottom-right-radius: var(--border-menu-radius);
    margin: 0 auto;
    font-size: fit-content;
}
    
.title {
    font-size: 5rem;
    font-style: italic;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color:var(--bamboo-color-primary); 
    text-shadow: 0 0 2rem #000400b4;
    background-color: var(--bamboo-color-secondary);
    border-bottom: 0.4rem solid var(--bamboo-color-primary);
    border-radius: 1rem;
}

.bamboo {
    position: absolute;
    bottom: 30%;
    left: 50%;
    width: 0.5rem;
    background-image: url('bamboo.jpeg');
    background-repeat: repeat;
    background-size: contain;
    background-position: bottom;  
    display: flex;
    justify-self: center;
    justify-content: center;
    align-items: end;
    color: var(--whs);
    font-weight: bold;
}

.selected {
    border: 2px solid var(--border-btn-choose);
}
.selected:hover{
    border: 2px solid var(--border-btn-choose);
}
.used{
    border: 2px solid var(--whs);
}
.used:hover{
    border: 2px solid var(--whs);
}


.player-info-text {
    font-size: 1.4rem;
    -webkit-text-stroke: 0.05rem var(--whs);
    color: transparent;
    margin: 0.1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.menu-btn {
    display: block;
    min-width: 6rem;
    padding: 0.2rem;
    margin: 0.1rem;
    border-radius: var(--border-menu-btn-radius);
    text-align: center;
    color: var(--whs);
    border: none;
    border-bottom: solid 2px var(--whs);
    /* border-color: var(--whs); */
    background-color: var(--bamboo-color-primary);
}
.menu-btn:hover{
    border: 2px solid var(--whs)
}

.bold-btn {
    border-width: 2px;
    font-weight: bold; 
}

.hidden {
    display: none;
}

#search-results {
    margin-top: 1rem;
    text-align: center;
}

#enemy-info {
    margin-top: 1rem;
}

.game-version{
    margin-top: 2rem;
    text-align: center;
    font-weight: bold; 
    color: var(--whs);
}
.modal-version{
    background-color: #2e7d32e5;
    border: solid 0.1rem var(--whs);
    color: var(--whs);
}

.modal-content {
    background-color: var(--bamboo-color-secondary);
    color: var(--whs);
    border: solid 0.2rem var(--whs);
    border-radius: var(--border-menu-radius);
    padding: 1rem;
}

.verze-text{
    text-align: left;
}


.progress-bar {
    background-color: var(--bamboo-color-primary);
    color: var(--whs);
    font-weight: bold; 
    font-size: 0.7rem;
}
.progress{
    width: 10rem;
    max-height: 0.8rem;
}
.progress-bar-text{
    color: var(--whs);
    font-weight: bold; 
    font-size: 0.8rem;
}

/* Třídy pro spuštění animací */
.player-attack {
    animation: player-attack 0.3s ease-in-out;
}
.enemy-attack {
    animation: enemy-attack 0.3s ease-in-out;
}


.battle-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
}
.battle-buttons button {
    width: 45%;
}



  
/*gradient border with animation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
:root{
    --gradient-border: blue, yellow,red;
}
.gradient-border {
    border: var(--border-my) transparent;
    border-image-source: linear-gradient(0deg, var(--gradient-border));
    border-image-slice: 1;
    border-radius: var(--border-menu-radius);
    animation: rotate-border 10s linear infinite;
}

@keyframes rotate-border {
    0% {
        border-image-source: linear-gradient(0deg, var(--gradient-border));
    }
    10% {
        border-image-source: linear-gradient(36deg, var(--gradient-border));
    }
    20% {
        border-image-source: linear-gradient(72deg, var(--gradient-border));
    }
    30% {
        border-image-source: linear-gradient(108deg, var(--gradient-border));
    }
    40% {
        border-image-source: linear-gradient(144deg, var(--gradient-border));
    }
    50% {
        border-image-source: linear-gradient(180deg, var(--gradient-border));
    }
    60% {
        border-image-source: linear-gradient(216deg, var(--gradient-border));
    }
    70% {
        border-image-source: linear-gradient(252deg, var(--gradient-border));
    }
    80% {
        border-image-source: linear-gradient(288deg, var(--gradient-border));
    }
    90% {
        border-image-source: linear-gradient(324deg, var(--gradient-border));
    }
    100% {
        border-image-source: linear-gradient(360deg, var(--gradient-border));
    }
}

/* Animace útoku hráče */
@keyframes player-attack {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
        background-color: red;
    }
    100% {
        transform: translateX(0);
    }
}

/* Animace útoku nepřítele */
@keyframes enemy-attack {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
        background-color: red;
    }
    100% {
        transform: translateX(0);
    }
}

