* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.title {
    font-size: 29px;
    line-height: 39px;
    font-weight: 300;
    margin: 0;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.flip-switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flip-switch-label {
    color: rgba(255, 255, 255, 0.87);
    font-size: 14px;
}

.flip-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.flip-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(25, 25, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: rgba(255, 255, 255, 0.87);
    transition: 0.3s;
    border-radius: 50%;
}

.flip-switch input:checked + .slider {
    background-color: rgba(25, 25, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.flip-switch input:checked + .slider:before {
    transform: translateX(26px);
}

.flip-switch:hover .slider {
    border: 1px solid rgba(76, 166, 255, 0.2);
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    width: 100%;
    align-items: flex-start;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 320px;
    min-height: 100vh;
    align-items: center;
    background-color: #000000;
    background-image: url("background.svg");
    background-repeat: no-repeat;
    background-size: contain;
    color: #999999;
}

.input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.output {
    flex: 1;
}

.input-form {
    width: auto;
    padding: 0.5rem;
    font-family: inherit;
    resize: vertical;
    background-color: rgba(25, 25, 28, 0.8);
    color: rgba(255, 255, 255, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}


#submitBtn {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.results-table {
    min-width: 700px;
    width: auto;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.87);
    white-space: nowrap;
}

.results-table th {
    background-color: rgba(25, 25, 28, 0.8);
    font-weight: bold;
}

.results-table td {
    background-color: rgba(25, 25, 28, 0.5);
}

.results-table td.greyed-out {
    color: rgba(153, 153, 153, 0.4);
}

.logo {
    margin-top: 45px;
    margin-left: 20%;
    align-self: flex-start;
}

.trade-hub-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trade-hub-selector label {
    color: rgba(255, 255, 255, 0.87);
    font-size: 16px;
}

.trade-hub-selector select {
    padding: 0.5rem;
    background-color: rgba(25, 25, 28, 0.8);
    color: rgba(255, 255, 255, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
}

#copyTableBtn {
    width:150px;
    padding: 10px 20px;
    background-color: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-left: 15px;
}

#copyTableBtn:hover:not(:disabled) {
    background-color: #357abd;
}

#copyTableBtn:active:not(:disabled) {
    transform: scale(0.98);
    background-color: #2a5f99;
}

#copyTableBtn:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

#copyTableBtn:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

#submitBtn {
    padding: 10px 20px;
    background-color: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#submitBtn:hover {
    background-color: #357abd;
}


#submitBtn:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

#copyTableBtn {
    width:150px;
    padding: 10px 20px;
    background-color: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-left: 15px;
}

#copyTableBtn:hover {
    background-color: #357abd;
}

#copyTableBtn:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

.toast {
    position: fixed;
    background-color: #2ecc71;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.extras-container{
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    text-align:right;
    font-size: 14px;
    padding: 10px 0;
}

.instructions-images p {
    padding: 10px 0;
}

footer {
    position: fixed;
    bottom: 15px;
    width: 100%;
    background-color: #000000;
    color: #999999;
    text-align: center;
}

footer a {
    color: chocolate;
    text-decoration: none;
}