body {
    margin: 0;
    padding: 0;
    background-color: #171717;
   
    display: flex;
    flex-direction: column;
    transform-origin: top;
}

header {
    padding: 5px;
    text-align: center;
}
header h1 {
    margin: 0;
    color: #DA0037;
    font-family: 'Chasing Rabbits', sans-serif;
    font-size: 48px;
}
header h2 {
    margin: 0;
    color: #EDEDED;
    font-family: 'Chasing Rabbits', sans-serif;
    font-size: 32px;
    margin-bottom: 12px;
}


nav {
    background-color: #444444;
    height: 48px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    transform: translateY(-25%);
}
.logo-link {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}
.logo {
    height: 96px;
    display: block;
}
.nav-links {
    display: flex;
    gap: 100px;
}
.nav-link {
    color: #EDEDED;
    text-decoration: none;
    font-family: 'Chasing Rabbits', sans-serif;
    font-size: 24px;
}
.nav-link:hover {
    text-decoration: none;
    color: #DA0037;
}


.content-area {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(100, 1fr);
    grid-template-rows: repeat(100, 1fr);
    gap: 4px;
    padding: 4px;

    transform: scale(0.85);
    transform-origin: top;
}
.update-area {
    grid-area: 1 / 1 / 100 / 50;
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 10px;
    padding: 10px;
    overflow-y: visible;
}
.branch-area {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    height: 100%;
}
.branch-title {
    color: #EDEDED;
    border: 4px solid #EDEDED;

    margin: 32px 12px;
    padding: 4px;
    border-radius: 4px;

    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: medium;
}
.branch-button {
    background-color: #171717;
    border: 2px solid #EDEDED;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 100%;
    width: 100%;
    font-size: small;
}

.equipment-area {
    display: grid;
    grid-area: 1 / 51 / 69 / 100;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}
.equipment-slot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 5px;
}
.description-button{
    transform: translateX(-25%);
} 
.clear-button{
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.toggle-button {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.toggle-button.active {
    background-color: #4CAF50;
}
.toggle-button::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 5px;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}
.toggle-button.active::before {
    transform: translateX(30px);
}
.element-slot-1 {

    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
}
.element-slot-2 {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}
.equipment-element-1 {
    width: 100%;
    height: calc(100%);
    border: 1px solid #EDEDED;
    background-color: #222222;
    cursor: pointer;
    color: #EDEDED;
}
.equipment-element-21, .equipment-element-22 {
    width: 100%;
    height: calc(100% / 50 * 33);
    border: 1px solid #EDEDED;
    background-color: #222222;

    cursor: pointer;
    color: #EDEDED;
}    
.equipment-element-21 {
    transform: translateY(50%);
}         
.hexa_slot {
    display: grid;
    gap: 10px;
    padding: 5px;

    align-items: center;
    justify-content: center;
}           
.gear_hexas {
    width: 100%;
    height: auto;
}        
.stat-table-area {
    border: 2px solid #EDEDED;
    display: grid;
    grid-area: 70 / 51 / 100 / 100;
    grid-template-rows: repeat(4, 1fr);
    transform: translateY(-2%);
}
.table-row {
    width: 100%;
    height: calc(100%);
    border: 1px solid #EDEDED;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.table-title {
    color: #EDEDED;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #EDEDED;

    margin: 4px 2px;
    padding: 4px;
}
 .table-box {
    border-right: 1px solid #EDEDED;
    background-color: rgba(237, 237, 237, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    color: #EDEDED;
    font-size: medium;
    text-align: center;
    padding: 5px;
    line-height: 1.2;
}      
.defStat{
    color: #4caf50;
}        
.attStat{
    color: #e53935;
}          
.mobilityStat{
    color: #ff9800;
}        
.cDStat{
    color: #42a5f5;
}        
.xalStat{
    color: #ededed;
    font-size: large;
}