/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff; /* #004182; */
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
    font-size: 20px;
    margin: 0;
}

.navbar .logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #0073b1;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 10%;
}

.menu li {
    margin: 0 15px;
    position: relative;
}

.menu li a {
    text-decoration: none;
    font-size: 16px;
}

.menu li .submenu {
    max-width:400px;
    min-width:150px;
    height: inherit; /*250px;*/
    width: 200px;
    opacity:.85;
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    color: #000;
    list-style: none;
    padding: 10px 0;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}
.menu li .submenu li {
    padding: 5px 20px;
}

.menu li .submenu li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.menu li .submenu li a:hover {
    background-color: #f0f0f0;
    color: blue;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: white;
    color: #000;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

.mobile-menu {
    display: none;
    position: sticky;
    opacity:.85;
    overflow:auto;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    width: 200px;
    padding: 10px 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    padding: 10px 20px;
}

.mobile-menu ul li a {
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

.mobile-menu ul li a:hover {
    background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1080px) {
    .menu {
        display: none;
    }

    .hamburger {
        display: block;
        size: 24px;
        font-size: 24px;
    }

    .mobile-menu {
        display: none;
    }

    .leftside {
        display: none;
    }

    .rightside {
        display: none;
    }

    .middleCommon {
        width: 100% !important; /* Use !important to override any other CSS */
        max-width: 100% !important;
        float: none;
        font-size: 28px;
        padding: 10px; 
        clear: both;
        margin: 0 !important;
        display: block;
        box-sizing: border-box;
        left: 0;
        right: 0;
        position: relative;
    }

    .wrapper {
        overflow: hidden;
        display: block;
        width: 100%;
        font-size: 28px;
    }

    .wrapper .p {
        font-size: 28px;
    }   

    .word-of-the-day {
        width: 90%;
    }
    
    .container {
        width: 100%;
        font-size: 32px;
    }

    .container .content-block {
        flex-direction: column;
        text-align: center;
        font-size: 32px;
    }

    .container .content-block .imageCentered img {
        width: 100%;
        max-width: 98%;
        height: auto;
        border-radius: 5px;
        transition: transform 0.2s ease;
    }

    .appinfo {
        display: none;
    }

    /* Improved typography for mobile devices */
    body {
        font-size: 20px; /* Base font size for mobile */
    }
    
    /* Quote specific improvements */
    #contentPage h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    #contentPage h2 {
        font-size: 30px;
        line-height: 1.4;
    }
    
    #contentPage h4 {
        font-size: 28px;
        margin: 15px 0;
    }
    
    #contentPage p {
        font-size: 28px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* Fix for quotes display */
    #contentPage .quote_info {
        font-size: 28px;
    }
    
    #contentPage blockquote, 
    #contentPage .desc, 
    #contentPage div[style*="color:blue"] {
        font-size: 28px !important;
        line-height: 1.5 !important;
    }
    
    /* Translation area improvements */
    #translation-area {
        padding: 28px !important;
    }
    
    #translation-area h4 {
        font-size: 28px !important;
    }
    
    #translation-area p {
        font-size: 28px !important;
    }
    
    /* Button and form control sizing */
    select, input, button {
        font-size: 28px !important; /* Prevent zoom on focus in iOS */
        height: auto !important;
        padding: 10px !important;
    }
    
    /* Improve image display */
    .imageCentered img {
        max-width: 100%;
        width: 90%;
        height: auto;
    }
    
    /* Comments section */
    details {
        font-size: 28px;
    }
}

/* Add an additional breakpoint for smaller phones */
@media (max-width: 480px) {
    #contentPage h2 {
        font-size: 22px;
    }
    
    #contentPage blockquote, 
    #contentPage .desc, 
    #contentPage div[style*="color:blue"] {
        font-size: 20px !important;
    }
    
    .button {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}

/* Overlay for mobile */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}


/* Main Content */
.content {
    padding: 20px;
    text-align: center;
}

.content img {
    width: 80%;
    max-width: 500px;
    margin-bottom: 20px;
    cursor: pointer;
}

.content a {
    display: block;
    margin: 10px 0;
    font-size: 18px;
    color: #0073b1;
}

.topLogo {
    float: left;
    height: 50px;
    width: 100px; /* double the height */
    padding-left:5%;
}

.topHome {
    float: left;
    height: 30px;
    width: auto;
    padding-left:5%;
}



/* Page Containers */

/* General Reset */
body, html, ul, li, p, div, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

/* Wrapper */
.wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Left Side */
.leftside {
    width: 18%;
    float: left;
    padding: 10px;
    padding-left: 2%;
    box-sizing: border-box;
}

/* Middle Section */
.middleCommon {
    width: 60%;
    float: left;
    padding: 20px;
    box-sizing: border-box;
}

/* Right Side */
.rightside {
    width: 18%;
    float: right;
    padding: 10px;
    padding-left: 2%;
    box-sizing: border-box;
}

.rightside img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.rightside img:hover {
    transform: scale(1.05);
}

/* Page Bottom */
.pageBottom {
    clear: both;
    padding: 20px;
    margin-left: 10%;
    margin-right: 10%;
    background-color: #f9f9f9;
    box-sizing: border-box;
    height: 300px;
    position: relative;
}

/* Word of the Day */
.word-of-the-day {
    width: 60%;
    margin: 0 auto;
    text-align: center;
    color: white;
}

/* Footer */
.footer {
    margin-top: 20px;
    text-align: center;
    color: azure;
    background-color: #ffffff;
}

.footer-text p {
    color: blue;
    font-size: 14px;
}

/* Company Info */
.company-info {
    width: 20%;
    margin: 0 auto;
    padding: 50px 0;
    text-align: left;
}

.company-info ul {
    padding: 10px 0;
}

.company-info ul li {
    padding: 5px 0;
}

.company-info ul li a {
    color: #0073b1;
    font-weight: bold;
}

/* Ad Section */
.ad-section {
    margin-top: 20px;
    padding-left: 2%;
}

/* Clearfix for Floats */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Container for all blocks */
.container {
    width: 100%;
    margin: 0 auto;
}

/* Content Block */
.content-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.content-block:hover {
    transform: scale(1.02);
}

/* Text Section */
.appinfo {
    flex: 1;
    text-align: left;
    font-size: 16px;
    padding: 10px;
}

.appinfo h2 {
    font-size: 20px;
    color: #0073b1;
    margin-bottom: 10px;
}

.appinfo h3 {
    font-size: 16px;
    color: #333;
}

/* Image Section */
.imageCentered {
    flex: 1;
    text-align: center;
}

.imageCentered img {
    width: 90%;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.imageCentered img:hover {
    transform: scale(1.05);
}

.imageAvatar {
    flex: 1;
    text-align: center;
}

.imageAvatar img {
    width: 50px;
    max-width: 50px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.imageAvatar img:hover {
    transform: scale(1.05);
}



/* Bottom left text */
.imageTextBottomLeft {
  position: absolute;
  font-size: 24px;
  bottom: 8px;
  left: 16px;
}

/* Top left text */
.imageTextTopLeft {
  position: absolute;
  font-size: 24px;
  top: 8px;
  left: 16px;
}

/* Top right text */
.imageTextTopRight {
  position: absolute;
  font-size: 24px;
  top: 8px;
  right: 16px;
}

/* Bottom right text */
.imageTextBottomRight {
  position: absolute;
  font-size: 24px;
  bottom: 8px;
  right: 16px;
}

/* Centered text */
.imageTextCentered {
  position: absolute;
  font-size: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.notice_form
{
    max-width:400px;
    min-width:150px;
    height:400px;
    width: 350px;
    opacity:.75;
    display:none;
    overflow:auto;
    position:absolute;
    left:75%;
    top:60px;
    margin-left:-202px;
    font-family:sans-serif;
    padding:10px 50px;
    border:2px solid gray;
    border-radius: 8px;
    background-color:#eee
}

.notification_form {
    display: none;
    position: sticky;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    width: 200px;
    padding: 10px 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}
