body {
    background-color: #e4e5f3;
}
canvas {
    display: block;
    margin: 0 auto;
}

.bloch-sphere-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.home-button {
    position: absolute;
    top: 1%;
    left: 1%;
    z-index: 1;
}

.back-button {
    position: absolute;
    top: 7%;
    left: 1%;
    z-index: 1;
}

.home-button, .back-button, .instructions-button, .login-button {
    background-color: #b9dde4;
    border-color: #417B85;
}

.instructions-button {
    position: absolute;
    top: 13%;
    left: 1%;
    z-index: 1;
}

.next-level-button {
    position: absolute;
    bottom: 5%;
    right: 1%;
    visibility: hidden;
}

.marker-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    display: none;
}

.gate-options {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate {
    position: relative;
    width: 50px;
    height: 50px;
    border: 1.5px solid #901FC9;
    text-align: center;
    line-height: 50px;
    cursor: grab;
    margin: 10px;
    background-color: #e0acfb;
    font-weight: bold;
    font-family: monospace;
    font-size: large;
    border-radius: 5px;
}

.cx-gate {
    background-color: #2e2d2d !important;
    color: white;
}

.gate .gate-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: normal;
    text-align: left;
    width: 300px;
    z-index: 1;
}

.gate:hover .gate-tooltip {
    visibility: visible;
}

.gate.dragging .gate-tooltip {
    visibility: hidden !important;
}


.circuit-row {
    position: relative;
    width: 100%;
    height: 80px;
    font-family: monospace;
    font-weight: bold;
    white-space: nowrap;
}

.slots-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
}

.slot-q0, .slot-q1 {
    width: 60px;
    height: 60px;
    border: 2px dashed #454343;
    background-color: #e4e5f3;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slot-q0.correct, .slot-q1.correct {
    background-color: #dfffdc;
}

.slot-q0 .gate, .slot-q1 .gate {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border: 1.5px solid #901FC9;
    background-color: #e0acfb;
    border-radius: 5px;
    font-weight: bold;
    font-size: large;
    cursor: pointer;
}


.slot-q0 .gate.correct, .slot-q1 .gate.correct {
    background-color: #16c783;
    border-color: #0b8f5d;
}

.side-text.left {
    position: absolute;
    top: 25%;
    right: calc(50% + 180px);
    text-align: left;
    margin-right: 120px;
    max-width: 180px;
}


.side-text.right {
    position: absolute;
    top: 25%;
    left: calc(50% + 180px);
    text-align: left;
    margin-left: 50px;
    max-width: 180px;
}

.next-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

button, .button {
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    font-size: large;
    border-radius: 5px;
    padding: 10px;
}


button:disabled {
    cursor: default;
}

.player-details {
    max-width: 90px;
    width: 90px;
    border: 2px solid #0457AA;
    text-align: center;
    line-height: 25px;
    background-color: #d2e6fb;
    font-weight: bold;
    font-family: monospace;
    font-size: large;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    position: absolute;
    right: 1%;
    z-index: 1;
}

.player-top {
    top: 1%;
}

.player-bottom {
    top: 6%;
}

.player-main-bottom {
    top: 10%;
}

.help-instructions, .reset-round {
    max-width: 500px;
    font-weight: bold;
    font-family: monospace;
    font-size: large;
    border-radius: 5px;
    margin-bottom: 25%;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
}

.x-button {
    padding: 2px 7px;
    text-align: center;
    justify-content: center;
    position: absolute;
    top: 3%;
    right: 1%;
    visibility: hidden;
}

.x-button-shown {
    visibility: visible !important;
}

.gates-and-circuits {
    position: absolute;
    bottom: 3%;
    width: 100%;
}

.quantum-circuits-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.logo-image {
    height: 16vh;
    position: absolute;
    right: 1%;
    z-index: 1;
    top: 1%;
}
