
#runecalc-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.wide-input {
    width: 100%;
    margin-bottom: 15px;
}

.conversion-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#conversion-type {
    flex: 1;
    max-width: 300px;
}

.results-area {
    margin: 20px 0;
}

.result-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.copy-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-right: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.copy-button:hover {
    opacity: 1;
}

.copy-button svg {
    fill: currentColor;
}

.text-label {
    font-weight: bold;
}

.result-label {
    width: 120px;
    font-weight: bold;
}

.result-content {
    flex: 1;
    min-height: 24px;
}

.rune-result-content {
    flex: 1;
    min-height: 24px;
    word-wrap: anywhere !important;
    overflow-wrap: anywhere !important;
}

.special-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.rune-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 20px;
}

.rune-button {
    font-size: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Makes rune buttons perfectly circular */
}

#load-button {
    min-width: 80px;
}

/* Ensure the select dropdown matches the button style */
#conversion-type {
    border-radius: 8px;
    padding: 5px 10px;
    border: 1px solid #ccc;
}

.button {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px; /* Adds rounded corners to all buttons */
    border: 1px solid #ccc;
    transition: all 0.2s ease;
}

.button:hover {
    border-color: #999;
}

#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #213350; /* green background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

.number-indicator {
    display: inline-block;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
}

.number-indicator.prime {
    color: #fff;
    background-color: #337337;
}

.number-indicator.emirp {
    color: #fff;
    background-color: #935b33;
}

.number-indicator.circular {
    color: #fff;
    background-color: #005278;
}

.number-indicator.fibonacci {
    color: #fff;
    background-color: #57151e;
}

.number-indicator.lucas {
    color: #fff;
    background-color: #091347;
}

.number-indicator.reversable {
    color: #fff;
    background-color: #3f0060;
}

.ioc-text {
    display: inline-block;
    font-size: 12px;
    color: #d43a3a;
}

.reverse-options {
    margin-bottom: 10px;
}

.reverse-options label {
    margin-right: 15px;
}

/* Tab Navigation */
.tabs-navigation {
    display: flex;
    margin: 20px 0 0;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.tab-button.active {
    background-color: #d43a3a;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

/* Tab Content */
.tab-content {
    border: 1px solid #ccc;
    border-top: none;
    padding: 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* GP View specific styles */
.gp-view-content {
    min-height: 300px;
}

/* GP View specific styles */
.gp-lines-container {
    width: 100%;
}

.gp-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.gp-word-box {
    padding: 8px 12px;
    margin: 0 8px 8px 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gp-word-value {
    font-size: 12px;
    margin-top: 4px;
    font-weight: bold;
}

.gp-word-text {
    word-break: break-word;
}

/* Word box color coding */
.gp-word-nonprime {
    color: #000;
    background-color: #8a8a8a;
}

.gp-word-prime {
    color: #000;
    background-color: #73ff7a; /* Green */
}

.gp-word-emirp {
    color: #000;
    background-color: #ff995a; /* Orange */
}

.gp-word-circular-prime {
    color: #000;
    background-color: #008fd8; /* Green */
}

.gp-word-semi-prime {
    color: #000;
    background-color: #9e71ff; /* Green */
}

.gp-line-sum-nonprime {
    color: #000;
    margin-left: auto;
    font-weight: bold;
    padding: 8px 15px;
    background-color: #8a8a8a;
    border-radius: 4px;
}

.gp-line-sum-prime {
    color: #000;
    margin-left: auto;
    font-weight: bold;
    padding: 8px 15px;
    background-color: #73ff7a;
    border-radius: 4px;
}

.gp-line-sum-emirp {
    color: #000;
    margin-left: auto;
    font-weight: bold;
    padding: 8px 15px;
    background-color: #ff995a;
    border-radius: 4px;
}

.gp-line-sum-circular-prime {
    color: #000;
    margin-left: auto;
    font-weight: bold;
    padding: 8px 15px;
    background-color: #008fd8;
    border-radius: 4px;
}

.gp-line-sum-semi-prime {
    color: #000;
    margin-left: auto;
    font-weight: bold;
    padding: 8px 15px;
    background-color: #9e71ff;
    border-radius: 4px;
}

/* Expandable sections */
.expandable-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.expandable-header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.expandable-header span {
    font-weight: bold;
}

.expand-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.expandable-content {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease-in-out;
}

.expandable-content.collapsed {
    max-height: 0;
    padding: 0 15px;
    overflow: hidden;
}
