.roboto-mono-uniquifier{
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
body {
    margin: 0;
    overflow: hidden;
    background: #0a0a0f;
    user-select: none;
    -webkit-user-select: none;
      font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color:white;
}

#hotbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1vh;
    display: flex;
    gap: 1.5vh;
    padding: 1.5vh 2vh 3vh 2vh;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1vh;
    backdrop-filter: blur(4px);
    pointer-events: auto;
    z-index: 100;
}
#controls {
    position: absolute;
    right: 0%;
    bottom: 1vh;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 1vh;
    backdrop-filter: blur(4px);
    pointer-events: auto;
    font-size:0.7em;
    padding:1em;
}
.proton{
    position:absolute;
    width:10vh;
    height:10vh;
    text-align:center;
    align-content:center;
    font-size:3vh;
    color:rgb(53, 0, 0);
    background-image:radial-gradient(circle,rgba(255, 0, 0, 1) 0%, rgba(122, 121, 121, 0) 50%);
}
.neutron{
    position:absolute;
    width:10vh;
    height:10vh;
    text-align:center;
    align-content:center;
    font-size:3vh;
    color:rgb(26, 26, 26);
    background-image:radial-gradient(circle,rgb(128,128,128) 0%, rgba(122, 121, 121, 0) 50%);
}.electron{
    position:absolute;
    width:7.5vh;
    height:7.5vh;
    text-align:center;
    align-content:center;
    font-size:3vh;
    color:rgb(0, 0, 53);
    background-image:radial-gradient(circle,rgb(0, 106, 255) 0%, rgba(122, 121, 121, 0) 50%);
}
.decorative-proton{
    width: 5vh;
    height: 5vh;
    text-align:center;
    align-content:center;
    font-size: 2vh;
    color:rgb(53,0,0);
    background-image:radial-gradient(circle,rgba(255, 0, 0) 0%, rgba(122, 121, 121, 0) 50%);
}/*these are the exact same but used in the hotbar*/
.decorative-electron{
    width: 5vh;
    height: 5vh;
    text-align:center;
    align-content:center;
    font-size: 2vh;
    color:rgb(0,0,53);
    background-image:radial-gradient(circle,rgba(0, 106, 255) 0%, rgba(122, 121, 121, 0) 50%);
}.decorative-neutron{
    width: 5vh;
    height: 5vh;
    text-align:center;
    align-content:center;
    font-size: 2vh;
    color:rgba(128, 128, 128);
    background-image:radial-gradient(circle,rgba(128, 128, 128) 0%, rgba(122, 121, 121, 0) 50%);
}

.hotbar-item {
    width: 6vh;
    height: 6vh;
    border-radius: 0.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    -webkit-user-select: none;
    position: relative;
}
.hotbar-item:hover span {
    color: rgb(191, 165, 165);
}
.hotbar-item.selected span{
    color: rgb(86 255 39) !important;
}
.hotbar-item > span {
    position: absolute;
    bottom: -2vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2vh;
    color: white;
    white-space: nowrap;
}

.hotbar-separator {
    width: 2px;
    height: 5vh;
    background: rgba(255,255,255,0.3);
    margin: 0 0.5vh;
    align-self: center;
}

.decorative-barmagnet {
    width: 4.5vh;
    height: 1.8vh;
    display: flex;
    border-radius: 3px;
    overflow: hidden;
    font-size: 1vh;
    font-weight: bold;
}
.decorative-barmagnet .pole-n {
    flex: 1;
    background: linear-gradient(to right, #ff4444, #cc0000);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.decorative-barmagnet .pole-s {
    flex: 1;
    background: linear-gradient(to right, #0066cc, #4488ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decorative-horseshoe {
    width: 3vh;
    height: 2.5vh;
    box-sizing: border-box;
    background: transparent;
    border-style: solid;
    border-width: 0.8vh;
    border-color: #ff4444 #4488ff #4488ff #ff4444;
    border-radius: 999px 999px 0 0;
    border-bottom: none;
}

.decorative-electricplate {
    width: 3.5vh;
    height: 2.2vh;
    background: linear-gradient(to bottom, #444 0%, #666 50%, #444 100%);
    border: 2px solid #ffcc00;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}

/* Plate objects in world */
.plate {
    position: absolute;
    pointer-events: none;
}

.particle,
.plate {
    z-index: 1;
}

.plate-barmagnet {
    display: flex;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.plate-barmagnet .pole-n {
    flex: 1;
    background: linear-gradient(to right, #ff4444, #cc0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.plate-barmagnet .pole-s {
    flex: 1;
    background: linear-gradient(to right, #0066cc, #4488ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.plate-horseshoe {
    box-sizing: border-box;
    background: transparent;
    border-style: solid;
    border-color: #ff4444 #4488ff #4488ff #ff4444;
    border-radius: 999px 999px 0 0;
    border-bottom: none;
    box-shadow: 0 0 15px rgba(255,100,100,0.4), 0 0 15px rgba(100,100,255,0.4);
}

.plate-electricplate {
    background: linear-gradient(to bottom, #333 0%, #666 50%, #333 100%);
    border: 2px solid #ffcc00;
    box-shadow: 0 0 15px rgba(255,204,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.plate-electricplate .field-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
}
.plate-electricplate .field-arrow path {
    stroke: #ffcc00;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(255,204,0,0.6));
}
.plate-electricplate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffcc00, transparent);
}

.plate-preview {
    opacity: 0.5;
}

.hide{
    display:none;
}

#launchPower {
    width: 100px;
    vertical-align: middle;
    margin: 0 0.5em;
}

#launchPowerValue {
    display: inline-block;
    width: 2em;
}

#world {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

#trailCanvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
