html {
    font-size: 16px;
}
  
* {
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
    position: relative;
    background-color: #0e0e0e;
    margin-block-end: 0.5rem;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.logo {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-name {
    background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3em 0.3em;
    margin-right: 0.3em;
    border-radius: 3px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-block-end: 5px;
}

.brand-name:hover {
    background: rgba(255, 255, 255, 0.15);
}

#mobile-icon {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

#mobile-icon:hover + .top-nav,
.top-nav:hover {
    height: 100vh;
}

.top-nav {
    background-color: #0e0e0e;
    position: absolute;
    top: 80%;
    right: 0;
    padding-top: 0.1rem;
    z-index: 2;
    width: 55%;
    overflow-y: auto;
    height: 0;
    transition: height 0.5s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.nav-menu li {
    border-radius: 0.5rem;
    padding: 0 0.2em;
}

.nav-menu li a,
button {
    text-decoration: none;
    display: block;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    padding: 0.9rem 1rem;
    color: #e0e0e0;
}

.nav-menu li button {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-menu li a:hover,
.nav-menu li button:hover {
    background-color: #1e1e1e;
}

#caret {
    width: 1rem;
    height: 1rem;
}

.nav-menu2 {
    width: 95%;
    margin-left: auto;
    overflow-y: auto;
    height: 0;
    transition: height 0.3s ease;
}

.nav-menu2 li {
    padding: 0 0.2em;
}

.nav-menu2 li a {
    font-size: 1.1rem;
}

.lang:hover + .nav-menu2,
.nav-menu2:hover {
    height: auto;
}

.nav-menu2-parent:hover .lang,
.nav-menu2:hover + .lang {
    background-color: #1e1e1e;
}

@media (min-width: 800px) {
    #mobile-icon {
        width: 0;
        height: 0;
    }

    .top-nav {
        position: relative;
        width: auto;
        height: auto;
        transition: none;
        padding-top: 0;
        overflow: visible;
    }

    .nav-menu {
        flex-direction: row;
        align-items: center;
    }

    .nav-menu2 {
        position: absolute;
        top: 100%;
        right: 0;
        width: 55%;
        min-width: 240px;
        background-color: #0e0e0e;
    }

    .lang:hover + .nav-menu2,
    .nav-menu2:hover {
        height: 80vh;
    }

    #mobile-icon:hover + .top-nav,
    .top-nav:hover {
        height: auto;
    }
}

footer {
    width: 100%;
    background-color: #0e0e0e;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-block-start: 1rem;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.3);
}
  
.footer-left {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem;
    margin-block-end: 1rem;
    border-radius: 0.5em;
}
  
.footer-left:hover {
    background-color: #1e1e1e;
}
    
footer nav {
    display: flex;
    align-items: center;
    padding: 0;
}
  
footer nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0 0 0.5rem 0;
    padding: 0;
}
  
footer nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1.1rem;
    padding: 0.5em;
    margin-left: 0.2em;
    border-radius: 0.5em;
}
  
footer nav ul li a:hover {
    background-color: #1e1e1e;
}
  
@media (min-width: 500px) {
    footer {
        flex-direction: row;
    }

    .footer-left {
        margin-block-end: 0;
    }

    footer nav ul {
        margin-block-end: 0;
    }
}

main {
    position: relative;
    min-height: 75vh;
    margin-block: 2rem;
}

p, ol, ul {
    color: #cccccc;
}

h1 {
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
    margin: 1rem auto 0.5rem auto;
    color: #e0e0e0;
}

.top-para {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    padding: 0 0.5em;
    color: #cccccc;
}

@media (min-width: 600px) {
    h1, .top-para {
        width: 70%;
        margin: 0.5em auto 0.2em auto;
        text-align: center;
        margin-left: 0;
    }
}

@media (min-width: 900px) {
    h1, .top-para {
        width: 60%;
        margin: 0.5em auto 0.2em auto;
        text-align: center;
    }

    h1{
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .top-para {
        font-size: 1.125rem;
        line-height: 1.7;
    }
}

.resize-app {
    margin: auto;
    width: 96%;
    margin-block: 2rem;
}

.top-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-btn {
    cursor: pointer;
    border: none;
    background-color: red;
    color: white;
    border-radius: 0.4em;
    font-size: 1.2rem;
    padding: 0.2em 0.8em;
    font-weight: 500;
}

.app-btn:hover {
    background-color: rgb(242, 107, 107);
}

.brand-clr {
    background-color: #4e68da;
}

.brand-clr:hover {
    background-color: #6378d9;
}

.hidden-element {
    font-size: 0rem;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 0;
    line-height: 0;
}

.drop-zone {
    height: 250px;
    border: 2px dashed #cccccc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #cccccc;
    cursor: pointer;
    margin: 15px auto;
    transition: background-color 0.3s;
    width: 100%;
    position: relative;
    background-color: #1e1e1e;
}

.solid-border {
    border: 2px solid #cccccc;
}

#previewImage {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

#newSizeText {
    position: absolute;
    bottom: 5px;
    right: 5px;
    padding: 5px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s;
    background-color: #1a1b1c;
    border: 1px dashed #e0e0e0;
    color: #e0e0e0;
}

#newSizeText.visible {
    opacity: 1;
}

.dimensions {
    border: 1px solid #e0e0e0;
    background-color: #121212;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 99%;
    margin: 1em auto 0;
    color: #e0e0e0;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-block-end: 1em;
}

.input-group div {
    flex: 1;
}

.bottom-label {
    margin-block-end: 5px;
    display: block;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1em;
    background-color: #0e0e0e;
    color: #cccccc;
}

select {
    appearance: none;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.9em;
    height: 38px;
    width: 100%;
    background-color: #0e0e0e;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>');
    color: #cccccc;
}

select:hover {
    border-color: #6378d9;
}

select:focus {
    border-color: #4e68da;
    outline: none;
}

input[type="checkbox"] {
    margin-right: 10px;

    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.export-div {
    margin-block-start: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.export-div label {
    margin-right: 1em;
    white-space: nowrap;
}

.bottom-btn-container {
    display: flex;
    justify-content: space-around;
}

.bottom-btn {
    margin-block-start: 20px;
    background-color: #4e68da;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 0.4em;
    font-size: 1em;
    width: 45%;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.bottom-btn:hover {
    background-color: #6378d9;
}

.resize-message {
    display: none;
    margin: 10px auto 0;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    color: #cccccc;
}

@media (min-width: 600px) {
    .resize-app {
        width: 70%;
        margin: 0.5em;
        margin-block: 2rem;
    }
}

@media (min-width: 900px) {
    .resize-app {
        width: 64%;
        margin: auto;
        margin-block: 3rem;
    }
}

.resize-app-article {
    margin: auto;
    width: 96%;
    margin-block-start: 1em;
    width: 95%;
}

.resize-app-article section {
    margin-block: 2rem;
}

.resize-app-article section:nth-child(odd) {
    background-color: #121212;
    padding: 1em;
    border-radius: 1em;
    overflow-x: auto;
}

.resize-app-article section:nth-child(even) {
    background-color: #1e1e1e;
    padding: 1em;
    border-radius: 1em;
    overflow-x: auto;
}

.resize-app-article p {
    font-size: 1rem;
    line-height: 1.6;
    margin-block-end: 1rem;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: center;
    color: #e0e0e0;
    margin-block-end: 1rem;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 2rem 0 0.5rem 0;
    color: #e0e0e0;
}

#faq h3 + p {
    padding-block-end: 1rem;
    border-bottom: 2px dashed #cccccc;
    margin-block-end: 1.5rem;
}

section ol, section ul {
    width: 90%;
    margin: auto;
    margin-block: 1rem;
}

section li {
    font-size: 1rem;
    line-height: 1.6;
    margin-block: 0.5rem;
}

@media (min-width: 600px) {
    .resize-app-article {
        width: 70%;
        margin: 0.5em;
        margin-block-start: 2rem;
    }
}

@media (min-width: 900px) {
    section ol, section ul {
        margin-block: 1.25rem;
    }
    
    #faq h3 + p {
        padding-block-end: 1.5rem;
        margin-block-end: 2.5rem;
    }

    .resize-app-article {
        width: 64%;
        margin: auto;
        margin-block-start: 2rem;
    }

    .resize-app-article section {
        margin-block: 3rem;
    }

    h2{
        font-size: 2rem;
        line-height: 1.3;
        margin-block-end: 1.5rem;
    }

    h3{
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .resize-app-article p, section li  {
        font-size: 1.125rem;
        line-height: 1.7;
    }
}

table {
    border: 1px solid #cccccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-size: 1rem;
    margin: auto;
    table-layout: auto;
    color: #cccccc;
}

thead {
    background-color: #333;
    color: #e0e0e0;
}

th, td {
    padding: 0.2em 0.2em;
    text-align: left;
    border: 1px solid #e0e0e0;
}

th {
    text-align: center;
}

td:nth-child(4) {
    word-wrap: break-word;
    white-space: normal;
}

@media (min-width: 500px) {
    th, td {
        padding: 0.5em;
    }
}

@media (min-width: 900px) {
    table {
        font-size: 1.125rem;
    }
}

.top-ad-container{
    width: 95%;
    height: 95px;
    margin: auto; 
    display: flex;
    justify-content: center;
}

.horizontal-ad-container{  
    width: 98%;
    height: 95px;
    margin: auto;
    margin-block-end: 0.38rem;
    margin-block-start: 0.48rem;
    display: flex;
    justify-content: center;
    overflow: auto;  
    /*overflow: auto; - This will not allow the leaderboard ad 728x90 to stick */
}

.vertical-ad-container{
    position: absolute;
    height: 99%;
    width: 17%;
    top: 0.8rem;
    left: 0.1rem;
    display: none;
    justify-content: center;
}

.vertical-ad-right{
    left: auto;
    right: 0.1rem;
}

.sticky-sidebar-ad{
    position: sticky;
    top: 0.5rem;
    max-height: 620px;
}

@media (min-width: 600px) {
    .horizontal-ad-container {
        width: 70%;
        margin: .5rem;
    }
  
    .vertical-ad-right{
        display: flex;
        width: 27%;
    }
}

@media (min-width: 900px) {
    .top-ad-container{
        height: 95px;
    }

    .horizontal-ad-container {
        width: 64%; 
        margin: auto;
        margin-block-start: 0.48rem;
    }

    .vertical-ad-container {
        display: flex;
        width: 17%;
    }
}

.features-section {
  width: 96%;
  max-width: 1200px;
  margin: 3rem auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
}

.feature-card {
  background-color: #1e1e1e;
  padding: 1.2rem 0.8rem;
  border-radius: 0.8rem;
  text-align: center;
  color: white;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.8em;
}

/* .feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: white;
} */

.feature-card h3 {
    font-size: 1.1rem;
    margin-block-end: 0.5em;  
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-section {
        width: 70%;
        margin-left: 0.5rem;
    }
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-section {
        width: 64%;
        margin-left: auto;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }
}