
body{
    overflow:hidden
    }

#app {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    margin: 0 auto;
}

#mainboard {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    z-index:2
}

#board {
    width: calc(100% - 100px);
    /*height: calc(100vh - 100px);*/
    height: 'auto';
    position: relative;
    /*background: #B2D3ED;*/
    /*margin-top:100px*/
}

#bottom-step-container {
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index:2
}

.bottom-step {
    position: absolute;
    bottom: 0;
    z-index: 8;
    border-radius: 7px;
}

#top-step-container {
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 1
}

.top-step {

    position: absolute;
    top: 0
}

#left-step-container {
    height: 100%;
    position: absolute;
    left: 0;
    z-index:1
}

.left-step {
   
    position: absolute;
    left: 0;
}

#right-step-container {
    height: 100%;
    position: absolute;
    right: 0;
}

.right-step {
   
    position: absolute;
    right: 0;
}

.top-left-step {
 
    position: absolute;
    top: 0;
    left: 0;
    z-index:19
}

.top-right-step {
  
    position: absolute;
    top: 0;
    right: 0;
}

.bottom-left-step {

    position: absolute;
    bottom: 0;
    left: 0;
    z-index:20;
    border-radius:15px;
}

.bottom-right-step {
    position: absolute;
    bottom: 0;
    right: 0;
}

/*bottom*/
.bottom-step-bottom {
    height: 11px;
    width: calc(100% - 8px);
    display: block;
    position: absolute;
    left: 3px;
    bottom: -8px;
    transform: rotate(0) skewX(-45deg);
    border-radius: 4px;
    z-index: 1;
}

.bottom-step-bottom-left {
    width: 16px;
    height: 18px;
    display: block;
    position: absolute;
    bottom: -8px;
    left: -6px;
    z-index: 2;
    border-radius: 12px;
}

.bottom-step-bottom-main {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% - 2px);
    z-index: 5;
    border-radius: 7px;
    height: calc(100% - 2px);
    top: 1px;
    left: 1px;
}

.bottom-step-bottom-main-wrapper {
    
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 4;
    border-radius: 7px;
        
}


/*top*/
.top-step-top {
    height: 11px;
    width: calc(100% - 8px);
    display: block;
    position: absolute;
    left: 3px;
    bottom: -8px;
    transform: rotate(0) skewX(-45deg);
    border-radius: 4px;
    z-index: 1;
}

.top-step-top-left {
    width: 16px;
    height: 18px;
    display: block;
    position: absolute;
    bottom: -8px;
    left: -6px;
    z-index: 2;
    border-radius: 12px;
}

.top-step-top-main {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% - 2px);
    z-index: 5;
    border-radius: 7px;
    height: calc(100% - 2px);
    top: 1px;
    left: 1px;
}

.top-step-top-main-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 4;
    border-radius: 7px;
}

/*left*/
.left-step-left {
    width: 11px;
    height: calc(100% - 10px);
    display: block;
    position: absolute;
    left: -7px;
    top: 5px;
    transform: rotate(0) skewY(-45deg);
    border-radius: 4px;
    z-index: 1
}

.left-step-left-left {
    width: 18px;
    height: 16px;
    display: block;
    position: absolute;
    bottom: -4px;
    left: -7px;
    z-index: 2;
    border-radius: 12px;
}

.left-step-left-main {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% - 2px);
    z-index: 5;
    border-radius: 7px;
    height: calc(100% - 2px);
    top: 1px;
    left: 1px;
}

.left-step-left-main-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 4;
    border-radius: 7px;
}

/*right*/
.right-step-right {
    width: 11px;
    height: calc(100% - 10px);
    display: block;
    position: absolute;
    left: -7px;
    top: 5px;
    transform: rotate(0) skewY(-45deg);
    border-radius: 4px;
    z-index: 1
}

.right-step-right-left {
    width: 18px;
    height: 16px;
    display: block;
    position: absolute;
    bottom: -4px;
    left: -7px;
    z-index: 2;
    border-radius: 12px;
}

.right-step-right-main {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% - 2px);
    z-index: 5;
    border-radius: 7px;
    height: calc(100% - 2px);
    top: 1px;
    left: 1px;
}

.right-step-right-main-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 4;
    border-radius: 7px;
}




.bottom-left-step-square,
.top-left-step-square,
.top-right-step-square,
.bottom-right-step-square {
    background: #b3b3b3;
    display: block;
    position: absolute;
    z-index: 2;
    top: 8px;
    bottom: 0px;
    left: -9px;
    width: 100%;
    height: 100%;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
}

.bottom-left-step-square-main,
.top-left-step-square-main,
.top-right-step-square-main,
.bottom-right-step-square-main {
    position: absolute;
    top: 1px;
    bottom: 0;
    left: 1px;
    z-index: 5;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
}

.bottom-left-step-square-main-wrapper,
.top-left-step-square-main-wrapper,
.top-right-step-square-main-wrapper,
.bottom-right-step-square-main-wrapper {
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
}

.stepIcon {
    display: flex;
    text-align: center;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position:relative
}

    .stepIcon img {
        width:80%
        /*width:50%;*/
    }

    .stepIcon .stepText {
        
    position: absolute;
    top: calc(100% + 20px);
        
        padding: 0 10px;
    }

.stepText {
    opacity: 0
}

.stepIcon:hover .stepText {
    opacity: 1;
        color:#fff !important;
        font-weight:bold
}

.stepBackground {
    display: flex;
    text-align: center;
    height: 100%;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 0px;
}

    .stepBackground .stepText {
        position: absolute;
        top: calc(100% + 20px);
        padding: 0 10px;
    }

    .stepBackground:hover .stepText {
        opacity: 1;
        font-weight: bold;
        color:#fff !important
    }

    .left-step .stepIcon .stepText {
        right: calc(100% + 20px);
        padding: 10px 0;
        top: unset;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.left-step .stepBackground .stepText {
    right: calc(100% + 20px);
    padding: 10px 0;
    top: unset;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-step .stepBackground {
    border-radius:7px
}

.top-step .stepIcon .stepText {
    bottom: calc(100% + 10px);
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: unset;
}

.top-step .stepBackground .stepText,
.top-left-step .stepBackground .stepText,
.top-right-step .stepBackground .stepText {
    bottom: calc(100% + 10px);
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: unset;
}

.top-step .stepBackground {
    border-radius: 7px
}

.top-right-step .stepBackground .stepText, .top-right-step .stepBackground .stepText,
.bottom-left-step .stepBackground .stepText, .bottom-right-step .stepBackground .stepText {
    width: 100%;
}

.right-step .stepIcon .stepText {
    left: calc(100% + 10px);
    padding: 10px 0;
    top: unset;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-step .stepBackground .stepText {
    left: calc(100% + 20px);
    padding: 10px 0;
    top: unset;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stepText.active{
    opacity:1
}

#middleBoard{
    position:absolute
}

#middleBoardWraper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px;
    flex-direction: row;
}

#timeClock {
    flex: 3;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    flex-direction: column;
}

#timeClock i{
    font-size:60px
}

    #timeClock:before {
        content: "";
        position: absolute;
        right: 0;
        top: 5%;
        height: 90%;
        width: 1px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, /* transparent blue */ rgba(0, 0, 0, 0.7) 10%, /* blurred blue */ black 50%, /* center */ rgba(0, 0, 0, 0.7) 90%, /* blurred blue */ rgba(0, 0, 0, 0) 100% /* transparent */ );
        filter: blur(0.4px);
    }

#timer-display {
    font-size: 40px;
}

#contensBoard {
    flex: 7;
    height: 100%;
    flex-direction: column;
    display: flex
}

#message-container {
    position: relative;
    z-index: 1;
    font-size: 30px;
    text-align: center;
    width: 100%;
    flex-direction: column;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:5px 10px;
    overflow: auto
}

.boardMessageHTML{
    font-size:26px
}




#leftsideboard {
    display: flex;
    min-height:60%
}

    #leftsideboard .player-side {
        display: flex;
        flex-direction: column;
        /*gap: 3.6%;*/
        width: 100%;
        padding-right: 60px;
        gap:15px;
        justify-content: center
    }
        /*
        #leftsideboard .player-side::before,
        #leftsideboard .player-side::after {
            content: "";
            display: block;
            height: 3.6%;
        }
*/
#board-container {
    /*flex: 1 1 auto;*/
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

#boardtimeline {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-block;
    padding: 5px;
    /* background: rgba(255, 0, 0, 0.2); */
    transform: translate(-50%, -50%);
    z-index: -1;
    overflow:hidden
    /*border: 20px solid #125e7d;*/
}

    #boardtimeline > svg.border-timer {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    /* Smooth sweep each second */
    #boardtimeline .progress-path {
        transition: stroke-dasharray .6s linear, stroke-dashoffset .6s linear;
    }

    #boardtimeline .progress-arrow {
        transition: transform .6s linear;
    }

#progressbar-arrow {
    height: 20px;
    width: 20px;
    position: absolute;
    transition: left 0.6s linear, top 0.6s linear; /* smooth 200ms animation */

    z-index: 10;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 25px solid #ffd400; /* Arrow color */
    visibility: hidden;

}


    
/*
    .playerCurrentTurn .player-info .nickname-text,
    .playerCurrentTurn .player-cards-on-turn .card,
    .player-label .player-info .nickname-text,
    .player-label .player-cards-on-turn .card{
        transition: height 0.5s ease, width 0.5s ease;
    }
*/
.player-info .rank,
.player-info .nickname-text,
.player-cards-small .card,
.player-cards-on-turn .card {
    transition: all 0.5s ease; /* smooth height/width changes */
}



.player-label.playerCurrentTurn {
    flex-direction: column;
}

    .player-cards-on-turn {
        display: none;
        opacity: 0;
        transition: opacity 100.3s ease;
    }

.playerCurrentTurn .player-cards-on-turn {
    display: flex;
    opacity: 1;
    border-bottom: 2px solid;
    padding-bottom: 10px;
}

.player-cards-small {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.playerCurrentTurn .player-cards-small {
    opacity: 0;
    display: none;
}

.playerCurrentTurn .player-cards-on-turn .card img {
    display: block;
    opacity: 1;
}

.player-side .player-label.playerCurrentTurn {
    border:none
}

.player-side .player-label.playerCurrentTurn {
    margin-bottom: 40px;
    margin-top: 20px
}

    .player-side .player-label.playerCurrentTurn:first-child {
        margin-bottom: 40px;
        margin-top: 0px
    }

.playerCurrentTurn .nickname {
    align-items: start
}

.playerCurrentTurn .player-info{
    border:none
}