/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Nov 02 2025 | 15:20:52 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* align-items: center;*/
    padding: 20px;
}*/

h1 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#container {
	
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
	padding:20px 0px 0px 30px;
    gap: 20px;
    width: 100%;
	 border-radius: 10px;
    /*max-width: 1400px;*/
}

#jxgbox_candidat1 {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-width: 500px;
    height: 500px;
}

#jxgbox_candidat2 {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-width: 500px;
    height: 500px;
}

#sidebarGauche {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#sidebarDroit {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.panel {
    text-align: center;
    background: gainsboro; /* white; */
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.panelHisto {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /*background: gainsboro;; /* white;*/
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
.panel h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 20px;
}

.event-btn {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.event-btn:active {
    transform: translateY(0);
}

.event-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.event-icon {
    font-size: 20px;
}

#current-state-1 {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
}
#current-state-2 {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
}

#history {
    display:flex;
    flex-direction: row;
    min-height: 150px;
    min-width: 900px;
    margin :10px;
    overflow-x: auto;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 10px;
}

.history-item {
    padding: 8px;
    margin: 5px 0;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 3px;
    font-size: 14px;
}

.history-item .time {
    color: #999;
    font-size: 12px;
}

#reset-btn {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 10px;
}

#reset-btn:hover {
    background: #c0392b;
}

.state-description {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.info-text {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}
.fighter {
    /*position: absolute;*/
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

.fighter:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.fighter.fighting {
    z-index: 100;
    pointer-events: none;
}       
.box {
    text-align:center;
    width:70px;
    height:150px;display:flex;flex-direction:column;justify-content:space-around;
    border: 0px solid #e0e0e0;
} 
.droplist {
    position: relative;
    width: 240px;
    /*margin-bottom: 10px; */
	margin : 5px 5px 5px 20px;
}

.droplist-header {
    background: rgb(95, 204, 110); /*#f8f9fa;*/
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 15px;
}

.droplist-header:hover {
    border-color: #667eea;
    background: #f0f0f0;
}

.droplist-header.active {
    border-color: #667eea;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.droplist-header-content {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.droplist-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #667eea;
    transition: transform 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.droplist-arrow.rotate {
    transform: rotate(180deg);
}

.droplist-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background:lightblue; /*  white;*/
    /*border: 4px solid #667eea;*/
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.droplist-list.open {
    max-height: 250px;
    overflow-y: auto;
}
.droplist-groupe {
    padding: 10px 15px;
    font-size: 14px;
    background-color: #ffb6c1;
    color: #f00707;
    border-bottom: 1px solid #f0f0f0;
    min-height: 25px;
    display: flex;
    align-items: center;
}

.droplist-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.droplist-item:last-child {
    border-bottom: none;
}

.droplist-item:hover {
    background: #f8f9ff;
}

.droplist-item.selected {
    background: #667eea;
    color: white;
}

