:root{
    --background-color: #00222e;
    --selected-background-color: #034861;
    --color: #fff;
    --border-color: #08aa59;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--background-color);
}

.top_bar {
    display: flex;
    justify-content: space-around;
    align-content: flex-start;
    position: fixed;

    z-index: 10;

    background-color: var(--border-color);
    color: var(--color);
    border-radius: 0% 0% 15% 15%;

    top: 0;
    width: 100%;
    padding-top: .25%;
    padding-bottom: .75%;
    padding-left: 1%;
    padding-right: 1%;
}

.top_bar_spacer{
    padding: 1.25%;
}

.equipment {
    display: flex;
    padding: .5% .5%;
    color: var(--color);

    align-content: flex-start;
    flex-direction: column;

    border-bottom: 4px solid var(--border-color);

}

.equipment_box{
    width: 100%;
    display: flex;
    justify-items: space-around;

    padding: .75% 0%;
}

.equipment_element{
    width: 48%;
    padding: 1% .75%;
    margin: 0% .5%;

    outline: 2px solid var(--border-color);
}


.equipment_title{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1% 1% .5% 2%;
    bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.equipment_section_name{
    font-size: 1.25em;
    font-weight: bold;
    pointer-events: none;
}



.equipment_data{
    padding: 1% 0% 0% 0%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    justify-content: flex-start;
}

.equipment_data_row{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 1% 0%;
    width: 100%;
}

.row_group {
    display: flex;
    flex-direction: row;
}

.equipment_data_row_inColumn{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 0%;
}




#item_attr {
    visibility: hidden;
    font-size: .9em;
}

#armor_val {
    visibility: hidden;
}

#weapon_val{
    visibility: hidden;
}

#cal_name_col{
    visibility: hidden;
}

#cal_atr_col{
    visibility: hidden;
}

#muzzle_col{
    visibility: hidden;
}
#optic_col{
    visibility: hidden;
}
#tactics_col{
    visibility: hidden;
}
#magazine_col{
    visibility: hidden;
}

#ammo{
    /*To counteract select*/
    font-size: .9em;
}



.analysis {
    display: flex;
    flex-direction: column;
    padding: .5% 0%;
    color: var(--color);

    border-top: 4px solid var(--border-color);
    border-bottom: 4px solid var(--border-color);
    width: 100%;
}

.analysis-stats-box{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: flex-start;

    padding: 1% .75%;
    margin: 0% .5%;
    outline: 2px solid var(--border-color);
    width: 97.5%;
}

.analysis-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0% 1% .5% 2%;
    bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.analysis-title-name{
    font-size: 1.25em;
    font-weight: bold;
    pointer-events: none;
}

.analysis-stats{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

.analysis-stat{
    display: flex;
    flex-direction: row;
    font-size: .8em;
    display: none;

    padding: .25% .5%;
    
}

.analysis-stat-name{
    display: flex;
}

.analysis-stat-data{
    display: flex;
}

.analysis-stats-box-box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%; /* Ensure container takes full width */
}

.analysis-stats-element{
    padding: 0% .25%;
}

.analysis-stat-dummy{
    display: flex;
    flex-direction: column;
    padding: 0% .25%;
}


.analysis-stats-damage-box{
    display: flex;
    flex-direction: row;
    justify-content: start;
    flex-wrap: nowrap;
    width: 100%; /* Ensure container takes full width */
}

.analysis-dps-chart{
    display: block;
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    width: 49%;
    box-sizing: border-box; /* Include border and padding in width/height */
}

canvas {
    display: block;  /* Prevent extra space below the canvas */
    width: 100%;  /* Override canvas default width */
    height: 100%; /* Override canvas default height */
}


select{
    background-color: var(--background-color);
    color: var(--color);
    font-size: .8em;
}


input[type="number"] {
    background-color: var(--background-color);
    color: var(--color);
    border-color: var(--border-color);
    border-style:groove;
    /* Tier 1 will be gray */
}

/*
input[type="text"] {
    background-color: var(--background-color);
    color: var(--color);
    border-color: var(--border-color);
    border-style:groove;
}
*/

select.atr_tier {
    visibility: hidden;
    color: gray;
}

select.atr_tier option[value="1"] {
    color: gray;
    /* Tier 1 will be gray */
}

select.atr_tier option[value="2"] {
    color: green;
    /* Tier 2 will be green */
}

select.atr_tier option[value="3"] {
    color: lightblue;
    /* Tier 3 will be blue */
}

select.atr_tier option[value="4"] {
    color: purple;
    /* Tier 4 will be purple */
}

select.atr_tier option[value="5"] {
    color: darkgoldenrod;
    /* Tier 5 will be gold */
}




/* Style for the popup overlay */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 11; /* On top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Style for the popup content */
.popup-content {
    display: none; /* flex if not hidden */
    flex-direction: column;
    justify-content: start;
    align-items: center;

    margin: 12.5% auto; /* Center the popup */

    z-index: 12; /* On top of popup */
    padding: 20px;
    width: 60%;
    max-width: 60%;

    background-color: var(--background-color);
    color: var(--color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-x {
    align-self: flex-end;
    cursor: pointer;
}

.popup-content-title{
    padding: 2% 5%;
    margin: 0% .5% 2%;

    outline: 2px solid var(--border-color);

    font-size: 1.4em;
    font-weight: bold;
}

.popup-content-row{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 1% 0%;
    width: 100%;
}

.popup-content-column{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 2% 1%;
    min-width: 20%;
    width: 40%;

}

.popup-content-column-title{
    padding: 2% 0%;
    margin: 0% .5% 2%;

    border-bottom: 1px solid var(--border-color);

    font-size: 1.2em;
    font-weight: bold;
}

select.popup-select{
    min-width: 20%;
    border-color: var(--border-color);
}

select.popup-select option:checked{
    /* does not work while it is selected */
    background-color: var(--selected-background-color);
    color: var(--color);
}


/* Style for the popup overlay */
.help {
    display: none; /* Block otherwise */
    position: fixed;
    z-index: 11; /* On top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Style for the popup content */
.help-content {
    display: none; /* flex otherwise */
    flex-direction: column;
    justify-content: start;
    align-items: center;

    margin: 15% auto; /* Center the popup */

    z-index: 12; /* On top of popup */
    padding: 20px;
    width: 60%;
    max-width: 60%;

    background-color: var(--background-color);
    color: var(--color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.help-content-title{
    padding: 2% 5%;
    margin: 0% .5% 2%;

    outline: 2px solid var(--border-color);

    font-size: 1.4em;
    font-weight: bold;
}

.help-x {
    align-self: flex-end;
    cursor: pointer;
}



/* Style for the popup overlay */
.about {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 11; /* On top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Style for the popup content */
.about-content {
    display: none; /*Flex if not hidden  */
    flex-direction: column;
    justify-content: start;
    align-items: center;

    margin: 5% auto; /* Center the popup */

    z-index: 12; /* On top of popup */
    padding: 20px;
    width: 80%;

    background-color: var(--background-color);
    color: var(--color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-content-title{
    padding: 2% 5%;
    margin: 0% .5% 2%;

    outline: 2px solid var(--border-color);

    font-size: 1.4em;
    font-weight: bold;
}

.about-x {
    align-self: flex-end;
    cursor: pointer;
}

.about-content-row{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 1% 0%;
    width: 100%;
}

.about-content-column{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 2% 1%;
    min-width: 20%;
    width: 40%;
}


.hidden {
    display: none;
}


.input-container-container{
    visibility: hidden;
    display: flex;

}

.input-container {
    position: relative;
    padding-right: 50px;
}

.input-container input {
    width: 65px;
    /* Adjust width as needed */
    padding-right: 18px;
    /* Space for percentage symbol */
    box-sizing: border-box;
}

.input-container .percent-symbol {
    font-size: 83%;
    position: absolute;
    Left: 48px;
    /* Adjust positioning as needed */
    top: 50%;
    transform: translateY(-50%);
    /* Center vertically */
    pointer-events: none;
    /* Prevent interaction with the symbol */
}

.input-container p {
    font-size: 83%;
    position: absolute;
    Left: 70px;
    top: 0%;
    transform: translateY(-50%);
    /* Center vertically */
    pointer-events: none;
    /* Prevent interaction with the symbol */

}








