/* Simplified styles for WIRLERNENDEUTSCH */
/* Licensed to Rainer-Maria HANKEL */

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #222222;
    background: linear-gradient(180deg, rgba(106, 221, 33, 0.01) 0%, rgba(255,255,255,1) 100%);
}

/* Hide background images on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        background: linear-gradient(180deg, rgba(106, 221, 33, 0.01) 0%, rgba(255,255,255,1) 100%) !important;
    }
    
    .collège, .lycée {
        background: linear-gradient(180deg, rgba(106, 221, 33, 0.19) 0%, rgba(255,255,255,1) 100%) !important;
    }
}

/* Show background images on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    body {
        background: linear-gradient(180deg, rgba(106, 221, 33, 0.01) 0%, rgba(255,255,255,1) 100%), 
                    url(../../files/backgrounds/Brandenburger_Tor_abends.jpg) no-repeat center center fixed;
        background-size: cover;
    }
    
    .collège {
        background: linear-gradient(180deg, rgba(106, 221, 33, 0.19) 0%, rgba(255,255,255,1) 100%), 
                    url(../../files/backgrounds/Freiburg_Panorama.png) no-repeat center center fixed !important;
        background-size: cover;
    }
    
    .lycée {
        background: linear-gradient(to bottom, rgba(245, 246, 252, 0.52), rgba(29, 16, 16, 0.75)), 
                    url(../../files/backgrounds/1280px-Berlin_reichstag_west_panorama) no-repeat center center fixed !important;
        background-size: cover;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.ce_text	{
    margin:
}

/* ===== LAYOUT ===== */
#wrapper {
    width: 1000px;
    margin: 0 auto;
}

#main, #left, #right {
    float: left;
    position: relative;
}

#main {
    width: 100%;
}

/* ===== NAVIGATION ===== */
nav ul {
    padding: 0;
    list-style: none;
    margin-top: 11px;
}

nav li {
    padding: 10px 20px;
    font-size: 2.5rem;
    background: #666666;
    display: block;
    border-radius: 5px;
    margin-bottom: 1px;
    list-style-type: none;
}

nav li.active {
    background-color: #aa4444;
}

nav li.trail {
    background-color: #bb6666;
}

nav li:hover {
    opacity: 0.8;
}

nav a, nav strong {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 12px 0;
}


/* ===== CONTENT STYLES ===== */
.mod_article {
    background-color: #cccccc;
    border-radius: 20px;
    padding: 10px;
    clear: both;
}

.block {
    overflow: hidden;
    background-color: #dddddd;
    opacity: 0.8;
    border-radius: 20px;
    padding: 10px;
}

.block:hover {
    opacity: 1.0;
}

.grayBg {
    background-color: white;
    padding: 20px;
    opacity: 0.8;
    color: #222222;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 24px;
    font-weight: bold;
    padding: 0 0 20px 0;
    margin: 0;
}

h6 {
    font-size: 14px;
    padding: 0;
    margin: 0;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.toggler {
    letter-spacing: 2px;
    font-weight: 200;
    border: none;
    padding: 10px 20px;
    color: white;
    background: linear-gradient(to right, #ff6a00, #ee0979);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: x-large;
    background-size: 400% 400%;
    animation: ButtonBg 10s ease infinite;
}

.toggler:hover {
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.24), 0 17px 50px rgba(0, 0, 0, 0.19);
}

/* ===== UTILITY CLASSES ===== */
.invisible {
    display: none;
}

.fullWidth {
    width: 100%;
    float: left;
}

/* Spacing utilities */
.m { margin: 3%; }
.mt { margin-top: 10%; }
.mb { margin-bottom: 10%; }
.p { padding: 3%; }
.pp { padding: 6%; }
.t { padding-top: 4%; }
.b { padding-bottom: 4%; }
.r { padding-right: 5%; }
.l { padding-left: 5%; }
.tt { padding-top: 10%; }
.bb { padding-bottom: 10%; }
.rr { padding-right: 10%; }
.ll { padding-left: 10%; }

.rad { border-radius: 20px; }
.full { min-height: 85vh; }
.left { text-align: left; width: 40%; }
.lfloat { float: left; }
.rfloat { float: right; }

/* ===== NO TRANSPARENCY/OPACITY ON TOUCHSCREENS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove all transparency effects */
    body {
        opacity: 1 !important;
        background: #ffffff !important;
    }
    
    .block {
        opacity: 1 !important;
        background-color: #ffffff !important;
        border: 2px solid #dddddd !important;
    }
    
    .grayBg {
        opacity: 1 !important;
        background-color: #f8f8f8 !important;
        border: 2px solid #eeeeee !important;
    }
    
    .mod_article {
        background-color: #e8e8e8 !important;
        opacity: 1 !important;
    }
    
    /* Remove hover effects that use opacity */
    nav li:hover {
        opacity: 1 !important;
        background: #777777 !important;
    }
    
    .block:hover {
        opacity: 1 !important;
        background-color: #ffffff !important;
    }
    
    /* Ensure all gradients are solid colors */
    .collège, .lycée {
        background: #f0f0f0 !important;
    }
    
    /* Remove any other transparency */
    * {
        opacity: 1 !important;
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
/* Increased font sizes for mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 18px !important;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 32px !important;
        padding: 0 0 25px 0;
    }
    
    h6 {
        font-size: 20px !important;
    }
    
    /* Improved contrast for better readability */
    .mod_article {
        background-color: #e0e0e0 !important;
        color: #000000 !important;
    }
    
    .block, .grayBg {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #333333 !important;
    }
    
    .button, .toggler {
        font-size: 20px !important;
        padding: 12px 24px !important;
        min-height: 50px;
    }
    
    /* Bigger navigation buttons in footer */
    footer nav li {
        font-size: 2.2rem !important;
        padding: 15px 25px !important;
        margin: 8px 0 !important;
    }
    
    footer nav a {
        padding: 15px 0 !important;
    }
    
    /* Improved touch targets */
    nav li, .button, .toggler {
        min-height: 50px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Specific styles for very small screens */
@media (max-width: 480px) {
    body {
        font-size: 20px !important;
    }
    
    h1 {
        font-size: 36px !important;
    }
    
    footer nav li {
        font-size: 2.5rem !important;
        padding: 20px 30px !important;
    }
    
    /* Even bigger footer navigation */
    footer .custom-select {
        width: 100% !important;
        margin: 15px 0 !important;
    }
    
    footer .select-selected {
        font-size: 20px !important;
        padding: 15px 20px !important;
    }
}

/* Enhanced contrast for mobile devices */
@media (hover: none) and (pointer: coarse) {
    body {
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    .mod_article {
        background-color: #f0f0f0 !important;
        color: #000000 !important;
        border: 2px solid #cccccc !important;
    }
    
    .block, .grayBg {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #333333 !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* High contrast navigation */
    nav li {
        background: #444444 !important;
        border: 2px solid #222222 !important;
    }
    
    nav li.active {
        background-color: #882222 !important;
        border: 2px solid #660000 !important;
    }
    
    nav li.trail {
        background-color: #aa4444 !important;
        border: 2px solid #882222 !important;
    }
}

/* ===== FOOTER SPECIFIC STYLES ===== */
footer {
    padding: 44px 0;
    background-color: #333333;
    color: white;
}

footer h6 {
    padding-left: 170px;
    font-size: 16px;
}

/* Footer navigation enhancements */
footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

footer nav li {
    font-size: 1.8rem;
    background: #4CAF50;
    border: 2px solid #3e8e41;
    transition: all 0.3s ease;
}

footer nav li:hover {
    background: #3e8e41;
    transform: scale(1.05);
}

footer nav a {
    padding: 15px 20px;
    font-weight: bold;
}

/* Mobile footer styles */
@media (max-width: 768px) {
    footer {
        padding: 30px 0;
        background-color: #222222 !important;
    }
    
    footer h6 {
        padding-left: 0;
        text-align: center;
        font-size: 18px;
    }
    
    footer nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    footer nav li {
        font-size: 2.5rem;
        padding: 20px;
        margin: 10px 0;
        background: #4CAF50 !important;
        opacity: 1 !important;
    }
    
    footer nav li:hover {
        opacity: 1 !important;
        background: #3e8e41 !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 800px) and (orientation: landscape) {
    nav li {
        font-size: 1.2rem;
    }
    nav, nav a, nav strong {
        padding: 0;
    }
}

@media (max-width: 500px) and (orientation: portrait) {
    nav li {
        font-size: 2rem;
    }
}

@media (max-width: 500px) and (orientation: landscape) {
    nav li {
        font-size: 1.5rem;
    }
}

/* Fallback for older browsers that don't support hover/pointer media queries */
@media (max-width: 1024px) {
    body {
        background: #ffffff !important;
        opacity: 1 !important;
    }
    
    .collège, .lycée {
        background: #f8f8f8 !important;
    }
    
    .block, .grayBg {
        opacity: 1 !important;
        background-color: #ffffff !important;
    }
    
    .mod_article {
        background-color: #e8e8e8 !important;
        opacity: 1 !important;
    }
}

/* ===== SPECIAL COMPONENTS ===== */
/* Timer */
#timer {
    margin: auto;
    width: 90%;
    font-size: 200px;
    text-align: center;
}

#result, #countdown {
    position: absolute;
    right: 20px;
}

#result {
    top: 20px;
}

#countdown {
    top: 40px;
}

/* Card flip effect */
.card {
    width: 33%;
    float: left;
    perspective: 500px;
}

.card img {
    height: 100px;
    display: block;
    margin: auto;
}

.content {
    height: 200px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 1s;
    transform-style: preserve-3d;
}

.card:hover .content {
    transform: rotateY(180deg);
    transition: transform 3.5s;
}

.front, .back {
    background: white;
    line-height: 100px;
    color: #03446A;
    font-size: 30px;
    text-align: center;
    border-radius: 5px;
    backface-visibility: hidden;
    position: fixed;
    width: 100%;
}

.back {
    background: #03446A;
    color: white;
    transform: rotateY(180deg);
}

/* Custom select */
.custom-select {
    position: relative;
    float: right;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 8px 16px;
    border: 1px solid transparent;
    cursor: pointer;
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #fff transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #fff transparent;
    top: 7px;
}

.select-items {
    position: absolute;
    background-color: #4CAF50;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

.select-items div {
    color: #ffffff;
    padding: 8px 16px;
    border: 1px solid transparent;
    cursor: pointer;
}

.select-items div:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.select-hide {
    display: none;
}

/* QR Code */
#qrcode {
    width: 300px;
    height: 300px;
    margin-top: 30px;
}

#qr img, #qr.block {
    opacity: 1;
}

#qr .image_container {
    margin: auto;
    width: 50%;
}	

#tools a {
    padding:  20px;
    font-size: 1.2rem;
    background: #666666;
    color:#eeeeee;
    display: block;
    border-radius: 5px;
    list-style-type: none;
}	
#input1, #output1 {
   height: 20em;
}	


