@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

body{
    height: 650px;
    display:  flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body {
    font-family: "Roboto Mono", sans-serif; 
    color: white;
    background-color: black;
    background: linear-gradient(to bottom, rgba(14, 14, 14), #000 99%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
    border: none;
  }


.description-container{
    width: 800px;
    padding: 20px;

    border: 1px solid white;
}

.sdg-title{
    font-weight: bold;
    font-size: x-large;
}

.chart-container {
    border: 1px solid white;
    width: 800px;
    overflow: hidden;
    position: relative;

    padding: 20px;
}

.chart-title{
    margin-bottom: 15px;
}

.chart {
    z-index: 1000000000000000000000000;
    height: 400px;
    overflow: hidden;
}

.zoom-rect {
    fill: none;
    pointer-events: all;
    cursor: move;
}

.axis path {
    stroke: #777;
}

.axis text {
    font-size: 12px;
}

.line {
    fill: none;
    stroke:#559FFF;
    stroke-width: 2px;
}

#red-line{
    stroke:red;
    stroke-width: 2px;
}

.grid line {
    stroke: lightgrey;
    stroke-opacity: 0.7;
    shape-rendering: crispEdges;
}

.grid path {
    stroke-width: 0;
}

.dot {
    fill: steelblue;
    stroke: white;
    stroke-width: 1.5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.tooltip, .tooltip4{
    position: absolute;
    left: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    pointer-events: none;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;

    z-index: 10000000000000000000000000000000000000000000000;
}



.buttons{
    border: 1px solid white;
    width: 800px;
    padding: 20px;

    display: flex;
    flex-direction: row;
    gap: 20px;

    align-items: center;
    justify-content: right;
}

.button:hover{
    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);

    transition: all 0.3s ease;
}

.left, .right{
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.right{
    justify-content: right;
}

.left{
    justify-content: left;
    font-size: small;
}

.right *, .left *{
    width: fit-content;
    padding: 5px;
    border: 1px solid #559FFF;
    border-radius: 5px;
    font-size: small;
    cursor:pointer;
}

.left input{
   width: 50px;
}

.clicked{
    background-color: #559FFF;
    color: white;

    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

.button3{
    border: 1px solid red;   
}

.button3:hover{
    background-color: red;
    color: white;

    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);

    transition: all 0.3s ease;
}

.clicked3{
    background-color: red;
    color: white;

    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

.box{
    height: 10px;
    width: 10px;
}

#chart3, #chart4{
    height: 400px;
    cursor:all-scroll;

    transition: all 0.63s ease;
}

.orange{
    background-color: #f9472f6e;
    border: 2px solid #F9452F;
}
.yellow{
    background-color: #FFE0346e;
    border: 2px solid rgba(255, 166, 0, 1);
}

.scale1a{
    width: 5px;
    height: 5px;
    background-color: #ffffcc;
    border: 2px solid #333;
}
.scale2b{
    background-color: #ffeda0;
    border: 2px solid #333;
    width: 5px;
    height: 5px;
}
.scale3c{
    background-color: #feb24c;
    border: 2px solid #333;
    width: 5px;
    height: 5px;
}
.scale4d{
    background-color: #f03b20;
    border: 2px solid #333;
    width: 5px;
    height: 5px;
}
.scale5e{
    background-color: #bd0026;
    border: 2px solid #333;
    width: 5px;
    height: 5px;
}

.health{
    font-size: small;
}

.legends{
    position: absolute;
    top: 80px;
    right: 44px;
    z-index: 1000000000000000;
    width: 150px;
    height: 150px;
    overflow-y: scroll;
    padding: 10px;

    border: 1px solid #333;

    display: flex;
    flex-direction: column;
    gap:10px;

    font-size: small;
}


#show-death{
    top: 260px;
    right: 44px;
    position: absolute;
    padding: 10px;
    width: 150px;
    font-size: x-small;
    border: 1px solid #333;

    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.clicked2{
    background-color: #333;
    color: white;
    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

.bound{
    border: 1px solid red;
}

.gas{
    border: 1px solid red;
    transition: all 0.5s ease-in-out;
}

.elect{
    border: 1px solid yellow;

    transition: all 0.5s ease-in-out;
}

.button-elect{
    background-color: yellow;
    color: black;
    border: none;
    transition: all 0.5s ease-in-out;
}

.button-gas{
    background-color: red;
    color: white;
    border: none;
    transition: all 0.5s ease-in-out;
}

.red-line{
    stroke:red;
    stroke-width: 2px;
}

.yellow-line{
    stroke:#FFE034;
    stroke-width: 2px;
}

.legends2{
    top:90px;
    right: 60px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.sd{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    font-size: x-small;
}

.button4{
    border: 1px solid #8be9fd;
}

.button4:hover{
    background-color: #8be9fd;
    color: black;
    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.button5{
    border: 1px solid #ff5555;
}

.node{
    cursor: grab;
}

.button5:hover{
    background-color: #ff5555;
    color: black;
    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.clicked4{
    background-color: #8be9fd;
    color: black;
    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

.clicked5{
    background-color: #ff5555;
    color: black;
    font-size: medium;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

#co2{
    border: 1px solid steelblue;
}

input[type="number"]{
    width: 60px;
}
