* {
    padding: 0;
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    background-color: #111;
    display: flex;
    height: 100vh;

}

#game {
    width: 70%; 

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

#board {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60%;
    aspect-ratio: 1 / 1;
}

#controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    position: absolute;
    left: auto;
    bottom: -15px;
}

#controls button {
    font-size: 18px;
    font-family: 'Segoe UI', Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    color: #fff;
    background-color: #444;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#controls button:hover, #controls button:focus {
    background-color: #666;
    color: #ffe082;
    transform: translateY(-1px) scale(1.04);
}

#evaluation {
    background-color: white;
    position: relative;

    width: 5%;
    aspect-ratio: 5 / 85;
    
    margin-right: 8%;
}

#progress {
    background-color: black;
    height: 50%;
    transition: height 0.3s ease-in-out;
}

#score {
    position: absolute;
    top: calc(100% + 10px);
    margin-left: calc(50% - 50px);

    font-weight: bold;
}

#score div {
    position: absolute;
    width: 100px;
    text-align: center;
}

#myBoard {
    width: 85%;
}

#info {
    background-color: #1a1a1a;
    width: 30%; 
    padding: 5% 7%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;

    overflow: hidden;
}

#elo-selector {
    text-align: right;
    font-weight: bold;
}

#elo-dropdown {
    background-color: #333;
    margin-left: 10px;

    font-size: 15px;
}


#top-box {
    background-color: #222;
    height: 25%;
    margin-top: 35px;

    border-radius: 8px;
    padding: 15px;
}

#bottom-box {
    height: 25%;
    max-width: 100%;
    margin-top: 35px;

    background-color: #222;
    border-radius: 8px;
    padding: 15px;
}

#engine-text, #model-text {
    padding-top: 25px;
    padding-bottom: 10px;

    font-size: 20px;
    font-weight: bold;
}

#stockfish {
    height: 30%;
}

.branch {
    background-color: #333;
    margin: 8px 0;
    padding: 5px;

    border-radius: 5px;
    font-size: 16px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.branch .eval {
    display: inline-block;
    width: 55px;
    margin-right: 10px;
    padding: 3px 0px;

    border: 0px;
    border-radius: 5px;

    text-align: center;
    font-weight: bold;
}

.branch .white {
    background-color: #f0f0f0;
    color: #000;
}

.branch .black {
    background-color: #111;
    color: white;
}

.text {
    font-size: 20px;
    color: white;
}

#history-box {
    height: 30%;
    max-width: 100%;
    margin-top: 25px;
    background-color: #222;
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
}

#history-text {
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}
