:root {
    --background: #1a1a1a;
    --text: #ffffff;
    --border: #333333;
    --primary: #19daaf;
    --hover: #95f8df;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100% !important;
}

.img {
    width: 100% !important;
}

ul {
    margin-left: 2rem;
}

body {
    font-family: "Lato", sans-serif;
    background: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    /*background: rgba(255, 255, 255, 0.05);*/
    backdrop-filter: blur(10px);
    
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: #FFFFFF;
}


.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-mob{
    display:none;
}


.nav-link {
    color: var(--text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.main-content-title{
    text-align: center;            
}

.main-title{            
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
}
.main-title-m{            
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
}

.sub-title{
    color: #828ea0;
    font-size: 1.3rem;
    font-weight: 300;
}

.gradient-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 2rem 0;
    background: linear-gradient(50.81deg, #48c2ff 18.75%, #5d9eff 31.1%, #d860e2 43.98%, #fa6664 59.48%, #fea808 81.17%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-logo {
    font-size: 2rem;          
    background: linear-gradient(50.81deg, #48c2ff 18.75%, #5d9eff 31.1%, #d860e2 43.98%, #fa6664 59.48%, #fea808 81.17%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.six-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.grid-item{
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.sectionmargin{
    margin-top:4rem;
}

.darkgray{
    color: #828ea0;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 1rem;
}


.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.button {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.6rem 1.3rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5rem;
    transition: background 0.2s;
    font-weight: 700;
    font-size: 1rem;
}

.button:hover {
    background: #FFFFFF;
    color:#000000;
}

.button:disabled {
    background: var(--border);
    cursor: not-allowed;
}

.button-white{
    background: #FFFFFF;
    color: #000000;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5rem;
    transition: background 0.2s;
    font-weight: 700;
    font-size: 1rem;
}

.button-white:hover {
    background: #f5f7fd;
}        

.button-clear{
    background: #1a1a1a;
    color: #828ea0;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5rem;
    transition: background 0.2s;
    font-weight: 700;
    font-size: 1rem;
}

.button-clear:hover {
    background: #ffffff;
    color: #1a1a1a;
}  

.preview-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 4px;
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.conversion-table th, 
.conversion-table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: center;
}

.conversion-table th {
    background: rgba(255, 255, 255, 0.05);
}

.filename-input {
    width: 90%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.filename-input:focus {
    outline: none;
    border-color: var(--primary);
}

.buttons-container {
    margin-top: 1rem;
    text-align: right;
}

#output {
    margin-top: 2rem;
}

/* Article Styles*/

section {
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 300;
}
.article-intro{
    margin: 0 0 2rem 0;
    gap: 1rem;
    display: flex;
    flex-direction: column;

}

.article-reduction{
    background-color: #ffffff10;
    padding: 1.5rem;
    margin:1rem 0;
}

.article-try{
    display: grid;
    grid-template-columns: 3fr 1.5fr;
    background-color: #FFFFFF10;
    padding: 1.5rem;
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 300;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

/* comparison table*/
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    font-family: "Lato", sans-serif;
  }
  
  th, td {
    border: 1px solid #828ea0;
    padding: 12px;
    text-align: left;
  }
  
  th {          
    font-weight: 600;
  }
  
  tr:nth-child(even) {
    background-color: #828ea010;
  }
  
  .check {
    color: var(--primary);
    font-size: 24px;
  }
  
  .cross {
    color: #828ea0;
    font-size: 24px;
  }
  
  .center {
    text-align: center;
  }

/* Footer Styles */
.footer {
    
    color: #828ea0;
    padding: 4rem 2rem 1rem 2rem;
    margin: 0rem auto;
    font-weight: 300;
    max-width: 1000px;
}

.footer-content {
    
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 2rem;
}

.footerCopyright{
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #828ea020;
    margin-top: 3rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    font-size: 12px;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #FFFFFF;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}
.ourSites{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ourSitesBlock{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
a:-webkit-any-link {
    color: #828ea0 !important;
    cursor: pointer;
    text-decoration: none !important;
}

/*Media - Less than 768px*/

@media screen and (max-width: 768px) {
    .nav {
        padding: 1rem;
        display:none;
    }

    .nav-mob {
        padding: 1rem;
        display: flex !important;
        justify-content: space-between;       
    }

                

    .gradient-title {
        font-size: 2rem;
    }
    .main-title{
        font-size: 2rem;
    }
    .sub-title {
        font-size: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    /* Responsive table styles */
    .conversion-table {
        border: none;
        background: none;
    }

    .conversion-table thead {
        display: none; /* Hide table headers on mobile */
    }

    .conversion-table tbody tr {
        display: block;
        background: rgba(255, 255, 255, 0.02);
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid var(--border);
    }

    .conversion-table td {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 1rem;
        align-items: center;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid var(--border);
    }

    .conversion-table td:last-child {
        border-bottom: none;
    }

    /* Add labels for each cell */
    .conversion-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: rgba(255, 255, 255, 0.7);
    }

    .filename-input {
        width: 100%;
        box-sizing: border-box;
    }

    .buttons-container {
        text-align: center;
    }

    .button {
        /*width: 100%;*/
        margin: 0.5rem 0;
    }
    .six-grid{            
    grid-template-columns: 1fr 1fr;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Optimize for very small screens */
@media screen and (max-width: 400px) {
    .conversion-table td {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .preview-img {
        width: 100%;
        max-height: 150px;
        object-fit: contain;
    }
    .six-grid{            
    grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .mobile-menu {
        display: block;
    }
}

