/* rightrice index stylesheet */
/* rightriceindex.com */
ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
  
li {
    float: left;
}

ul li {
    padding: 0 10px;
}

.icons{
    float: right;
    display: block;
    color: #B149BF;
    text-align: center;
    text-decoration: none;
}

.iconsLeft{
    float: left;
    display: block;
    color: #F2E63D;
    text-align: justify;
    text-decoration: none;
}

.content {
    flex: 1;
    padding: 0 10px;
}

.footer{
    float: right;
    display: block;
    color: #41BF9B;
    text-align: center;
    text-decoration: none;
}
  
li a{
    display: block;
    color: #B149BF;
    text-align: center;
    padding: 16px;
    text-decoration: none;
}

li a:hover {
    background-color: #41BF9B;
    color: #F2E63D;
}

h1 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #F2E63D;
    text-align: center;
}

h2 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #41BF9B;
}

h3 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #B149BF;
}

.converterh3 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #B149BF;
    text-align: center;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #41BF9B;
    background-color: #011C26;
}

code {
    font-family: Consolas,"courier new";
    color: #B149BF;
    background-color: #012840;
    font-size: 100%;
    max-width: 500px; /* Limits the width to a maximum of 500px */
    font-size: 16px;
} 

footer {
    margin-top: auto;
    width: 100%;
    color: #F2E63D;
    text-align: center;
    padding: 5px 0;
}

#converter {
    background-color: #012840;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
}

input {
    width: 95%;
    max-width: 500px; /* Limits the width to a maximum of 500px */
    padding: 10px;
    margin: 10px auto;
    font-size: 16px;
}

button, p {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
}
button {
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 4px;
}
button:hover {
    opacity: 0.8;
}
#toggleButtons button {
    background-color: #007bff; /* Default color */
}
#toggleButtons button.active {
    background-color: #28a745; /* Active color */
}
#toggleButtons button.inactive {
    background-color: #6c757d; /* Inactive color */
}
#output {
    font-size: 18px;
}

/* ticker style */
.binary-box {
    display: inline-block;
    padding: 5px;
    margin: 2px;
    background-color: black;
    color: #F2E63D;
    font-family: monospace;
    font-size: 24px;
    border-radius: 3px;
}
/* node background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #020c1b; /* Dark cyber blue */
    z-index: -1;
}
/* updates template */
.update-log {
    background: rgba(68, 80, 170, 0.505);
    padding: 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    color: #00ffcc;
    font-family: monospace;
    max-width: 600px;
    margin: 20px auto;
    margin-top: 80px;
    text-align: left;
}

.update-log h2 {
    text-align: center;
    border-bottom: 1px solid #00ffcc;
    padding-bottom: 10px;
}

.updates {
    max-height: 250px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.update {
    padding: 10px 0;
    border-bottom: 1px dashed #00ffcc;
}

.update:last-child {
    border-bottom: none;
}

.update-date {
    color: #ffcc00;
    font-weight: bold;
}

#toggleUpdates {
    background: none;
    color: #B149BF;
    border: 1px solid #B149BF;
    padding: 5px 10px;
    cursor: pointer;
    display: block;
    margin: 10px auto 0;
    font-family: monospace;
}

#toggleUpdates:hover {
    background: #B149BF;
    color: black;
}
/* code.html code styles */
.code-container {
    background: rgba(68, 80, 170, 0.005);
    padding: 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    color: #00ffcc;
    font-family: monospace;
    max-width: 700px;
    margin: 20px auto;
    margin-top: 80px;
    text-align: left;
}

.code-container h2 {
    text-align: center;
    color: #ffcc00;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project {
    background: rgba(68, 80, 170, 0.125);
    padding: 15px;
    border-left: 4px solid #00ffcc;
    position: relative;
    transition: 0.3s;
    font-family: 'Courier New', Courier, monospace;
}

.project:hover {
    animation: glitch 0.2s steps(2, end);
}

.command {
    color: #ffcc00;
    font-weight: bold;
    display: block;
}

.project p {
    margin: 5px 0;
    color: #B149BF;
}

.project-link {
    color: #00ffcc;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

/* Glitch effect */
@keyframes glitch {
    0% { transform: skew(1deg, 0.5deg); }
    50% { transform: skew(-1deg, -0.5deg); }
    100% { transform: skew(0deg, 0deg); }
}
/* how styles */
.how-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}
.how-title {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}
.category {
    background: rgba(68, 80, 170, 0.505);
    padding: 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    color: #00ffcc;
    font-family: monospace;
    width: calc(50% - 10px);
    box-sizing: border-box;
    min-height: fit-content;
}
.category-title {
    text-align: center;
    color: #ffcc00;
}
.tutorial-title {
    cursor: pointer;
    display: block;
    font-weight: bold;
    color: #B149BF;
    margin-top: 10px;
}
.tutorial-content {
    display: none;
    padding-top: 10px;
    overflow: visible;
}
.command-container {
    display: flex;
    align-items: center;
    gap: 5px;
}
.command-example {
    white-space: pre-wrap;
    word-wrap: break-word;
    display: block;
    max-width: calc(100% - 50px);
    font-family: monospace;
    background: rgba(68, 80, 170, 0.705);
    color: #00ffcc;
    padding: 5px;
    border-radius: 4px;
    flex-grow: 1;
}
.copy-button {
    background: #ffcc00;
    color: black;
    border: none;
    width: 40px;
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}

.command-notes {
    color: #ffcc00;
    background: rgba(68, 80, 170, 0.705);
    padding: 10px;
    border-left: 3px solid #ffcc00;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Subtle Glitch effect */
@keyframes subtle-glitch {
    0% { transform: skew(1deg, 0.5deg); }
    50% { transform: skew(-1deg, -0.5deg); }
    100% { transform: skew(0deg, 0deg); }
}
/* nifty tools styles */
/* */
/* asciiBin */
.asciiBin-container {
    background: rgba(68, 80, 170, 0.505);
    padding: 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    color: #00ffcc;
    font-family: monospace;
    text-align: center;
    width: 50%;
    margin: 20px auto;
}
.asciiBin-h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}
#toggleButtons button {
    background: #222;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin: 5px;
    transition: 0.3s;
}
#toggleButtons button:focus, #toggleButtons button.active {
background-color: #B149BF !important;
color: black !important;
border: 2px solid #ffcc00 !important;
} {
    background: #222;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin: 5px;
    transition: 0.3s;
} {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin: 5px;
}
#toggleButtons .active {
background-color: #00ffcc !important;
color: black !important;
border: 2px solid #00ffcc !important;
} {
    background: #00ffcc;
}
#inputField {
    background: black;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 5px;
    width: 80%;
    font-family: monospace;
    margin-top: 10px;
}
button.asciiBin-btn {
    background: #222;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
    transition: 0.3s;
}
button.asciiBin-btn:hover {
    background: #00ffcc;
    color: black;
    border: 2px solid #ffcc00;
} {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}
#output {
    color: #ffcc00;
    margin-top: 15px;
}
/* info */
.user-info-container {
    background: rgba(68, 80, 170, 0.505);
    padding: 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    color: #00ffcc;
    font-family: monospace;
    text-align: center;
    width: 50%;
    margin: 20px auto;
}
.user-info-container h3 {
    color: #ffcc00;
}
.user-info-container p {
    color: #00ffcc;
}
.hidden {
    display: none;
}
.show-more-btn {
    background: #00ffcc;
    color: black;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

/* periodic table styles */
.table-title {
    color: #F2E63D;
    margin: 20px;
    text-align: center;
}

.periodic-table {
    display: grid;
    grid-template-columns: repeat(18, 1fr); 
    gap: 5px;
    max-width: 90%;
    margin: auto;
    justify-content: center;
    align-items: center;
}

.element {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.element:hover {
    background-color: #00ffcc;
    color: black;
    transform: scale(1.1);
}

/* element families */
.metals { background-color: rgba(68, 80, 170, 0.7); }
.nonmetals { background-color: rgba(241, 196, 15, 0.7); }
.noble-gases { background-color: rgba(255, 87, 34, 0.7); }
.lanthanides { background-color: rgba(156, 39, 176, 0.7); }
.actinides { background-color: rgba(233, 30, 99, 0.7); }
.halogens { background-color: rgba(255, 0, 225, 0.7); }
.metalloids { background-color: rgba(114, 84, 31, 0.7); }
.alkali-metals { background-color: rgba(89, 31, 114, 0.7); }
.alkaline-earth-metals { background-color: rgba(31, 92, 114, 0.7); }
.transition-metals { background-color: rgba(114, 31, 31, 0.7); }

/* responsiveness...sorta */
@media screen and (max-width: 768px) {
    .element {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
}

/* Search Bar Styling */
.search-bar {
    background-color: #012840;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 10px;
    margin-top: 10px;
    width: 80%;
    font-size: 16px;
    border-radius: 5px;
}

/* Category Button Styling */
.category-container {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    padding: 10px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    background-color: #012840;
}

.category-button {
    background-color: #012840;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.category-button:hover {
    background-color: #00ffcc;
    color: black;
}

/* Periodic Table Grid */
.periodic-table {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 5px;
    max-width: 90%;
    margin: auto;
    justify-content: center;
    align-items: center;
}

/* Element Box Styling */
.element {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.element:hover {
    background-color: #00ffcc;
    color: black;
    transform: scale(1.1);
}

/* Modal Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.details-panel {
    background-color: #012840;
    color: #00ffcc;
    padding: 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 255, 204, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Close Button */
#close-details {
    background-color: #012840;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
}

#close-details:hover {
    background-color: #00ffcc;
    color: black;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #011C26;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #41BF9B, #B149BF);
    border-radius: 5px;
    border: 2px solid #011C26;
    box-shadow: 0 0 5px #41BF9B;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #B149BF, #41BF9B);
}