/* Tester styles start */
body {
    font-family: 'Inter', sans-serif;
    padding: 0px;
    margin: 0px;

    background: linear-gradient(
            0deg,
            rgb(193, 202, 212) 0%,
            rgba(234, 229, 253, 0) 25%
    );
    height: 100vh;
}

.ast-gamepad-container {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    margin-top: 0px;
    margin-bottom: 5px;
    font-size: 3.5em;
}

.center {
    text-align: center;
}

.center.support-message {
    margin-top: 40px;
    margin-bottom: 40px;
}

.controller-center {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.controller-status {
    font-weight: bold;
    text-align: center;
}

#controller-connected {
    color: green;
    margin-bottom: 40px;
}

#controller-connected-area {
    display: none;
    width: 100%;
}

#controller-not-connected-area {
    color: darkred;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.controller-display-area {
    display: flex;
    width: 100%;
    margin-bottom: 40px;
}

#rumble-on-button-press-area {
    margin-bottom: 10px;
    text-align: center;
}

.loader {
    display: inline-block;
    border: 8px solid #484848;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    border-bottom: 8px solid #3498db;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
}

.button {
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: rgb(223, 222, 222);
    margin-right: 10px;
    margin-bottom: 10px;
}

.button > svg {
    position: relative;
    top: 0;
    left: 0;
}

.button-text-area {
    position: relative;
    top: -35px;
    left: 12px;
    width: 50%;
    height: 50%;
}

.button-text-area .button-name {
    color: gray;
}

.button-text-area .button-value {
    color: gray;
}

.button-text-area .button-value.active-value {
    color: red;
}

.red-text {
    color: rgb(231, 24, 24);
}

/* controller */

.selected-button {
    fill: rgb(231, 24, 24);
}

/* axes */

#axes {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    margin-top: 30px;
}

.axis {
    width: 110px;
    height: 110px;
    background: rgb(223, 222, 222);
    margin-right: 20px;
}

.axis-text-area {
    position: relative;
    top: 25%;
    left: 25%;
}

.axis-name {
    color: grey;
    font-weight: bolder;
}

.axis-value {
    color: rgb(126, 54, 54);
}

a {
    color: red;
}

#axes-circles {
    max-width: 500px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 30px;
}

/* Tester styles end */

/* Calibrator additional styles start */

.stick-center-calibration {
    display: none;
    border: 1px solid gray;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 95%;
    font-size: 80%;
    margin-left: auto;
    margin-right: auto;
}

.stick-center-calibration__dialog-content-header {
    display: flex;
    justify-content: space-between;
}

#calibNext {
    margin-top: 1rem;
}

#rangeModal {
    display: none;
    border: 1px solid gray;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 50%;
    font-size: 80%;
    margin-left: auto;
    margin-right: auto;
}

#ds-g-id-1 {
    align-self: center;
}

#offlinebar .ds-i18n {
    align-self: center;
}

#onlinebar .hstack.gap-2 {
    align-self: center;
}

/* Calibrator additional styles end */