@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'myfonts';
    src: url('Assets/Font/big_noodle_titling.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

:root{
    --primarycolor: #fff;

}

body {
    font-family: 'myfonts', sans-serif;
  }

/*upper*/

.upper {
    width: 1900px;
    height: 117px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.teamholder {
    position: relative;
    width: 635px;
    height: 88px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-shrink: 0;
}

.teamholder.left {
    background-image: url(Assets/Other/teamholder_left.png);
}

.teamholder.right {
    background-image: url(Assets/Other/teamholder_right.png);
}

.uppermid {
    flex: 1;
    height: 88px;
}

/* Team Name Box & Score Box inside Holders */
.teamholder .teamname-box {
    position: absolute;
    top: 0;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px !important;
    font-family: 'myfonts', sans-serif !important;
    color: #ffffff !important;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 10px;
    box-sizing: border-box;
    transform: translateY(9px);
}

.teamholder.left .teamname-box {
    left: 60px;
    width: 382px;
}

.teamholder.right .teamname-box {
    left: 193px;
    width: 382px;
}

.teamholder .score-box {
    position: absolute;
    top: 0;
    width: 84px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px !important;
    font-weight: bold;
    font-family: 'myfonts', sans-serif !important;
    color: #ffffff !important;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    visibility: visible !important;
    box-sizing: border-box;
}

.teamholder.left .score-box {
    left: 442px;
}

.teamholder.right .score-box {
    left: 109px;
}

.teamholder .name-box {
    font-family: 'myfonts', sans-serif !important;
    color: #ffffff !important;
}

/*Timer*/

.timer{
    width: 1900px;
    height: 10px;
    background-color: #ffffff;
    overflow: hidden;
    border: 1px solid;
    border-color: #ffffff;
}

#timer-bar {
    width: 1900px;
    height: 10px;
    background-color: #4b3a70;
    position: relative;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    transition: none;
    transition: 0.3s; 
}

.timerholder{
    width: 1900;
    height: 10;
    overflow: hidden;
}

/*uppermiddle*/

.uppermiddle{
    width: 1900px;
    height: 211px;
    display: flex;
}

.pickb1{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/b1.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickb2{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/b2.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
        position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickb3{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/b3.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickb4{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/b4.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickb5{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/b5.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournamentinfo{
    width: 300px;
    height: 211px;
    background-color: saddlebrown;
    border: 1px solid;
    border-color: #ffffff;
    position: relative;
}

.tournamentinfo img{
    position: absolute;
    bottom: -92px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
}

.pickr1{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/r1.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickr2{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/r2.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pickr3{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/r3.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pickr4{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/r4.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickr5{
    width: 160px;
    height: 211px;
    border: 1px solid;
    border-color: #ffffff;
    outline-offset: -2px;
    background-image: url(Assets/Other/r5.png);
    background-size: 100%;
    background-color: blanchedalmond;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*middle*/
.middle{
    width: 1900px;
    height: 27px;
    background-color: transparent;
    display: flex;
}

.nameholder{
    width: 160px;
    height: 27px;
    background-color: #322f42;
    border: 1px solid #ffffff;

    font-size: 20px;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
}

.shift-left-2px{
    position: relative;
    left: -2px;
}

.shift-right-2px{
    position: relative;
    left: 2px;
}

.shift-left-1px{
    position: relative;
    left: -1px;
}

.shift-right-1px{
    position: relative;
    left: 1px;
}

.midmiddle{

    width: 300px;
    height: 27px;
 
    border-left: 1px solid;
    border-right: 1px solid;
    border-color: #ffffff;
  
}

.timermid{
    display: none !important;
}

/*lower*/

.lower{
    width: 1900px;
    height: 120px !important;
    background-color: transparent !important;
    display: flex;
    align-items: flex-start;
}

.ban{
    width: 160px;
    height: 65px;
    background-color: transparent;
    border: 1px solid #ffffff;
    background-image: url(Assets/Other/ban.png);
    background-size: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
}



.noblur{
    width: 800px;
    position: relative;
    z-index: 2;
}

.noblur img{
    margin-top: -50px;
    filter: grayscale();
    scale: 1.1;
}

.blur{
    display: flex;
    filter: grayscale();
    z-index: 1;
    
    
}

.blur img{
    width: 170px;
    
  
    margin-top: -50px;
    margin-left: -90px;
    position: relative;
    z-index: 1;
    
    

}

.noblur1{
    width: 810px;
    position: relative;
    z-index: 2;
}

.noblur1 img{
    margin-top: -50px;
    filter: grayscale();
    scale: 1.1;
}

.blur1{
    display: flex;
    filter: grayscale();
    position: relative;
    z-index: 1;

    
}

.blur1 img{
    width: 170px;
    
    
    margin-top: -50px;
    margin-left: 10px;

}

.middleban{
    width: 300px;
    height: 120px !important; /* taller to fit all indicators inside */
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid;
    border-color: #ffffff;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5px;
    box-sizing: border-box;
    margin-top: -55px !important;
}

.arrowbox{
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 0 !important; /* reset original negative margin */
    height: 30px;
}

.arrowbox img{
    width: 75%;
    position: relative;
    top: 6px;
}

.phasebox{
    display: flex;
    justify-content: center; 
    align-items: center;
    letter-spacing: 1px;
    font-size: 7px;
    margin-top: 0 !important; /* reset original negative margin */
    color: #ffffff;
    height: 20px;
}


/*Hero*/
.image-container {
    display: flex;

}

.image-box{
    position: absolute;
    width: 100%;
    height: 100%;
}

.image-box img {
    width: 100%;
    opacity: 0;
    transform: translateY(150%);
    transition: transform 2s ease-in-out, opacity 2s;
    position: relative;
    z-index: 2;
    position: absolute;
}
.image-box.show img {
    transform: translateX(0%);
    opacity: 1;
    position: absolute;
}

.clone-image-box img {
   
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transition-delay: 2s;
}
/* Animasi untuk clone */
.clone-animate {
    transition-delay: 1s;
    animation: fadeInScale 1s ease-out forwards;
}
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*InputName*/

.name-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.name-box {
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-weight: bold;
}

/*phasing*/

.draft-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.box { 
    width: 1000px; 
    height: 4000px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 18px; 
    font-weight: bold;
    transition: 0.3s; 
    margin-left: -200px;
    margin-top: -100px;
    position: absolute;
}
    
.ban0 {display: flex; }
.pick { display: flex; }
.active-ban {
    background-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5), inset 0 0 6px rgba(255, 215, 0, 0.5) !important;
    color: white ;
    animation: blink-ban 0.8s infinite ease-in-out;
}
.active-pick {
    background-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.5) !important;
    color: white;
    animation: blink-pick 1.2s infinite ease-in-out;
}
@keyframes blink-ban {
    0% { transform: scale(1.1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.55; }
    100% { transform: scale(1.1); opacity: 0.2; }
}
@keyframes blink-pick {
    0% { transform: scale(1.1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.2; }
}

.audiob{
    margin-top: 100px;
}

.name-image-box{
    position: absolute;
    z-index: 1;
    scale: 0.25;
    margin-top: 100px;
}

/* ================== CENTERED TIMER BAR LAYOUT ================== */
.timer-bar-container {
    width: 220px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin: 8px auto;
    border-radius: 3px;
}

.timer-bar-container #timer-bar {
    width: 100% !important;
    height: 100% !important;
    background-color: #ffd700 !important;
    position: absolute !important;
    left: 0 !important;
    transform-origin: center !important;
    transform: scaleX(1);
    transition: none;
}

#timer {
    display: inline-block;
}

/* ================== CINZEL FONT OVERRIDES ================== */
.phasebox, .phasebox h2, #phase, .name-box {
    font-family: 'Cinzel', serif !important;
    color: #ffd700 !important;
}

.nameholder .name-box,
.teamholder .name-box,
.teamholder .teamname-box,
.teamholder .score-box {
    font-family: 'myfonts', sans-serif !important;
    color: #ffffff !important;
}