/* CSS Document */

body {
    margin: 15px;
    font-family: Arial, Verdana, Helvetica, sans-serif;
    font-size: 14px;
    background-color: #f8f8f8;
}

img {
    display: block;
}

h2 {
    color: #c03100;
    border-bottom: 2px solid #bfbfbf;
    font-size: 1.3em;
}

h4 {
    margin: 25px 0 5px 0;
}

#shadow {
    position: relative;
    top: 0;
    left: 0;
    background: url(../img/shadow_r.gif) repeat-y right;
}

#canvas {
    position: relative;
    top: -6px;
    left: -6px;
    border: 1px solid #666;
}

#corner_ro {
    position: absolute;
    right: 0;
    top: 0;
}

#corner_lu {
    position: absolute;
    left: 0;
    bottom: 0;
}

#corner_ru {
    position: absolute;
    right: 0;
    bottom: 0;
}

#shadow_u {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
}

#header {
    background: url(../img/bg.gif) repeat-x;
    position: relative;
    top: 0;
    left: 0;
}

#title {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 50px;
    color: #000;
    height: 45px;
    margin-right: 20px;
    margin-bottom: 22px;
}

#t_shadow {
    position: absolute;
    top: 3px;
    left: 3px;
    color: #ccc;
}

#t_main {
    position: absolute;
    top: 0;
    left: 0;
}

#topnav {
    list-style: none;
    float: right;
    margin: 3px 0 0 0;
    padding: 0;
}

#topnav li {
    display: inline;
    padding: 0 15px 0 5px;
}

#topnav li a:link,
#topnav li a:visited {
    color: #666;
    text-decoration: none;
}

#topnav li a:hover {
    color: #c03100;
    text-decoration: underline;
}

#content {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#sidebar {
    float: left;
    width: 180px;
    padding: 19px 0 10px 25px;
    margin-top: 1rem;
}

#sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sidebar ul li {
    padding: 1px 0 1px 0;
}

#sidebar ul li a:link,
#sidebar ul li a:visited {
    background: url(../img/icon.gif) #fff left center no-repeat;
    padding-left: 30px;
    display: block;
    text-decoration: none;
    color: #666;
}

#sidebar ul li a:hover {
    background-color: #EEE;
    color: #c03100;
}

#sidebar ul li ul {
    margin-left: 8px;
}

#sidebar ul li ul li a:link,
#sidebar ul li ul li a:visited {
    background: url(../img/icon_g.gif) #fff left center no-repeat;
    padding-left: 30px;
    display: block;
    text-decoration: none;
    color: #666;
}

#sidebar ul li ul li a:hover {
    background-color: #EEE;
    color: #c03100;
}

#sidebar ul li.current_page_item a,
#sidebar ul li ul li.current_page_item a {
    background-color: #eee;
}


#main {
    margin-left: 220px;
    padding: 0 10px 20px 20px;

}

#main p {
    line-height: 1.35em;
}

#main h2 {
    border: none;
}

#main ul li {
    padding-top: 2px;
    padding-bottom: 3px;
}

#main ul li ul li {
    padding: 0;
}

#main a:link,
#main a:visited {
    color: #c03100;
    text-decoration: underline;
}

#main a:hover {
    text-decoration: none;
}



#footer {
    clear: both;
    height: 100px;
    background-color: #bfbfbf;
}

.red {
    color: #c03100;
}

.teaser {
    font-weight: bold;
}

.imgad {
    width: 300px;
    margin: 10px auto 25px auto;
    position: relative;
    /*left: -80px;*/
}

.googleads {
    float: right;
    margin: 10px 0 25px 10px;
    padding-left: 10px;
}

.download-box {
    font-size: xxx-large;
    font-weight: bold;
}

.innerdownloadtable {
    background-color: white;
}

.gd3 {
    max-width: fit-content;
}

.lineads {
    margin: 10px 0 25px 0;
}

/*.imgad h6,
.googleads h6	{margin: 0; padding: 0; font-size: 0.75em; text-align: right; font-weight: normal;}*/
p.nomp {
    margin: 0;
    padding: 0;
    float: right;
}

#footer a:link,
#footer a:visited {
    color: #666;
    text-decoration: none;
}

#footer a:hover {
    color: #c03100;
    text-decoration: underline;
}

.wptable tr.alt {
    background-color: #F4F4EC;
}

#main .center,
#main table.awards,
#main table.contact,
form.pp,
#main #wptable {
    margin: auto;
}

#main table td {
    vertical-align: center;
}

#main table td img {
    border: none;
}


#main table.awardstable {
    width: min-content;
}

#main table.contact {

    max-width: 400px;
}

#main table.awards td {
    padding: 10px;
}

.awardstable td {
    min-width: 200px;
}

#main table.contact td {
    width: 300px;
    padding: 10px;
}

#main table.contact td.icon {
    text-align: center;
}

#main table.contact td.icon img {
    margin: auto;
}

#main table.newstab {
    border-bottom: 1px dashed #c03100;
    margin-bottom: 30px;
}

#main table.newstab td {
    padding: 3px;
}

#main table.newstab td p {
    margin: 0;
}


#main .downloadtable td {
    min-width: 0;
}

td.first {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    background-color: #eee;
}

td.first h3 {
    margin: 0;
    padding: 0;
    font-size: 1em;
    font-weight: bold;
}


img.daeleft {
    float: left;
    margin: 0 20px 20px 0;
    border: none;
}

hr.dont {
    clear: both;
    visibility: hidden;
    height: 0;
}

#logo {
    border: none;
}

#main table.allcent td {
    text-align: center;
    vertical-align: center;
}

#main table.allcent td a img {
    display: block;
    margin: auto;
}


.eacad {
    width: 320px;
    height: 100px;
}

@media(min-width: 500px) {
    .eacad {
        width: 468px;
        height: 60px;
    }
}

@media(min-width: 800px) {
    .eacad {
        width: 728px;
        height: 90px;
    }
}

.eacadvert {
    width: 160px;
}


div {
    clear: none !important
}

/* Mobile Menu Styles */
.mobile-only {
    display: none;
}

#mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 22px;
    right: 10px;
    z-index: 1001;
}

#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: #c03100;
    border-radius: 3px;
    z-index: 1;
}

/* Responsive Styles */
@media screen and (max-width: 800px) {
    #canvas {
        width: 100%;
        margin: 0;
        border: none;
        top: 0px;
        left: 0px;
    }

    #header {
        width: 100%;
        float: none;
        padding: 0;
        height: 168px;
        /* Ensure space for toggle */
    }

    #content,
    #footer {
        width: 100%;
        float: none;
        padding: 0;
    }

    #sidebar {
        display: none;
        /* Hidden by default */
        width: auto;
        float: none;
        padding: 20px;
        background-color: #f9f9f9;
        border-bottom: 1px solid #ccc;
        position: relative;
        /* Or absolute if overlay desired */
        z-index: 1000;
        margin-top: 0;
    }

    #sidebar.active {
        display: block;
    }

    #topnav {
        display: none;
        /* Hide topnav on mobile */
    }

    #logo {
        display: none;
        /* Hide disc.jpg on mobile */
    }

    #title {
        position: absolute;
        -webkit-transform: translate(-50%, 70%);
        transform: translate(-50%, 70%);
        display: block;
        max-width: 80%;
        left: 50%;
        height: 65px;
        /* Adjust size */
        height: auto;
        bottom: 30%;
        margin-bottom: 10px;
    }

    #shadow {
        background: none;
    }

    #shadow_u,
    #corner_ro,
    #corner_lu,
    #corner_ru {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
    }

    .mobile-only {
        display: block;
        list-style: none;
        padding: 0;
        margin-top: 20px;
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }

    .mobile-only li {
        padding: 5px 0;
    }

    .mobile-only li a {
        font-weight: bold;
        color: #c03100;
        text-decoration: none;
    }

    #sidebar ul li a:link,
    #sidebar ul li a:visited {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .download-box {
        font-size: x-large;
    }

    #main table.allcent td a img {
        max-width: 100px;
    }

    .awardstable td {
        min-width: auto;
    }

    .gd3 {
        width: 100px;
    }

    body {
        margin: 0px 15px 15px 15px;
        background-color: #f0f0f0;
    }

    #main {
        margin-left: 0px;
        padding: 0 10px 20px 10px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

.daequality img {
    max-width: none;
}