@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Inter:wght@300;400;600&display=swap');

/* ===== Alapvető stílusok ===== */
html, body {
    background: linear-gradient(to bottom right, rgb(238, 242, 255), rgb(250, 245, 255));
    height: 100%;
    margin: 0;
    font-family: 'Poppins', 'Inter', sans-serif; /* Modern betűtípus */
}

body {
    min-height: 100vh;
    display: flex;           
    flex-direction: column; 
    
}

/* ===== Fejléc és logó ===== */
header {
    background: linear-gradient(to right, rgb(224, 231, 255), rgb(233, 225, 255));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.foxlogo {
    margin: 2px 30px 0 40px;
}

/* ===== Címek és bevezető szövegek ===== */
.title {
    color: #222; 
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-top: 20px; 
}

.headerMenu {
    color: #222; 
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 20px;
    position: relative;
}

.menuButton{
    border-radius: 15px;
    border-style: 1px;
    border-width: thin;
    box-shadow: 1px 1px 1px #b8a88c;
    padding: 3px;
}

.intro {
    text-align: justify;
    font-size: 0.9rem;
}

.introp{
    font-weight: 600;
}

.dolt {
    font-style: italic;
}

/* ===== Fő konténer ===== */
.maincontainer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Három egyenlő szélességű oszlop */
    justify-content: space-between; /* Két szélső a szélére, középső középre */
    height: 100vh;
    padding: 10px;
    gap: 20px; /* Távolság a div-ek között */
}

/* Egyenlő méretű szekciók */
.sectionLeft,  .sectionRight {
    min-width: 250px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px; /* Ha üres, akkor se essen össze */
}

.sectionLeft{
    padding-top: 50px;
    padding-left: 30px;
}

.speakerDiv{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 0px;
    left: 0;
}

.indexVoiceDiv{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    top: -20px;
    left: 0;
}

.speaker-btn{

    border: 2px solid;
    border-radius: 5px;
    border-color: #007bff;
    height: 40px;
    width: 40px;
}

/* Mobilon egymás alá kerülnek */
@media (max-width: 768px) {
    .maincontainer {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
        padding: 10px;
    }
    
    .sectionMiddle, .sectionLeft, .sectionRight {
        max-width: 100%;
    }
}

/* ===== Tartalomblokk ===== */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;  
    background: linear-gradient(to bottom right, rgb(238, 242, 255), rgb(250, 245, 255));
    width: 40%;
}

/* ===== Gombok ===== */
.start, .answeraButton1, .answeraButton2 {
    text-align: center;
    padding: 8px 8px;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Poppins', 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 124, 182, 0.3);
    margin: 5px;
    width: 120px;
    box-sizing: border-box;
}

.start {
    padding: 12px 24px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    margin-bottom: 20px;
    text-align: center;
}

.start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.start:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

.answeraButton1, .answeraButton2 {
    background: linear-gradient(145deg, #2c7cb6, #216191);
}

.answeraButton1:hover, .answeraButton2:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #245f91, #1a4a75);
    box-shadow: 0 6px 20px rgba(26, 74, 117, 0.4);
}

.answeraButton2 {
    margin-left: 10px;
}

/* ===== Megoldás kiválasztása ===== */
.solutionBox {
    margin-top: 20px;
    flex-direction: column;
}

.solutionBox input[type="radio"] {
    display: none;
}

.solutionBox label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    color: #4a4e69;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 0.3px solid;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(8px);
    margin-bottom: 10px;
}

.solutionBox label:hover {
    transform: translateY(-2px);
    background-color: #333;
    color: white;
    border-color: #333;
}

.solutionBox input[type="radio"]:checked + label {
    background: #6d28d9;
    color: white;
    border: 1px solid #4c1d95;
    box-shadow: 0px 4px 10px rgba(109, 40, 217, 0.4);
}

/* ===== Lábjegyzet ===== */
footer {
    background: linear-gradient(to right, rgb(224, 231, 255), rgb(233, 225, 255));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    flex-shrink: 0;
    text-align: center;
}

/* ===== Árnyékos doboz ===== */
.shadow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: whitesmoke;
    color: #222;
    font-size: 18px;
    box-shadow: 3px 3px 8px rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    line-height: 1.5;
    height: 30%;
    width: 60%;
    text-align: center;
    padding-top: 5px;
    transform-style: preserve-3d; 
}

/* ===== Példa mondatok ===== */
.exampleSentence {
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 0.8rem;
}

/* ===== Betöltési animáció ===== */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    position: relative;
}

.orbit {
    position: relative;
    width: 80px;
    height: 80px;
}

.orbit div {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    animation: orbitAnimation 1.5s linear infinite;
    transform-origin: 50% 50%;
}

.orbit div:nth-child(1) { top: 50%; left: 0%; animation-delay: 0s; }
.orbit div:nth-child(2) { top: 20%; left: 20%; animation-delay: 0.1s; }
.orbit div:nth-child(3) { top: 0%; left: 50%; animation-delay: 0.2s; }
/* ... további div-ek ... */

@keyframes orbitAnimation {
    0% { transform: scale(0.7) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.7) rotate(360deg); opacity: 0.6; }
}

#counter {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Kör alak */
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); 
    padding-top: 3px;
    background: #f7bac7; 
    transition: background 0.5s ease-in-out;
    opacity: 0.3;
}

#qCounter{
    font-size: 0.6rem;
}

.exampleSentece{
    font-style: italic;
    font-size: 0.8rem;
    font-family: 'Comic Sans MS', sans-serif;
}

.playDescription{
    padding-right: 200px;
}

#errorMe{
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.8rem;
    text-align: center;
}

#alert{
    padding-top: 10px;
    font-size: 1rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 900;
    color: red;
    text-align: center;
}

.foxMaster{
    display: flex;
    justify-content: center;
}

.languageDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 12px; /* Kisebb padding */
    background: rgba(75, 85, 99, 0.2); /* Lágyabb szürke háttér */
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px); /* Üveghatás */
}

nav {
    display: flex;
    gap: 10px; /* Kisebb távolság */
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 14px; /* Kisebb betűméret */
    font-weight: 600;
    color: #374151; /* Sötétszürke, kevésbé erős kontraszt */
    padding: 4px 8px; /* Kisebb padding */
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

.lang-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.03);
}

.flag {
    width: 18px; /* Kisebb zászló */
    height: auto;
    border-radius: 3px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== Mobilbarát stílusok ===== */
@media (max-width: 768px) {
    /* Általános testreszabás a kisebb képernyőkhöz */
    html, body {
        font-size: 14px;
    }
    header, footer {
        padding: 10px;
    }
    
    .maincontainer {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
        height: auto;
    }
    
    .container {
        width: 90%;
        padding: 10px;
    }
    
    .sectionLeft, .sectionRight {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Gombok átméretezése */
    .start, .answeraButton1, .answeraButton2 {
        width: 100%;
        margin: 5px 0;
        font-size: 14px;
    }
    
    
    .headerMenu {
        font-size: 18px;
    }
    
    /* Csökkentett jobb oldali padding */
    .playDescription {
        padding-right: 20px;
    }
    
    /* Mobilon átláthatóbb szövegméretek a megoldás kiválasztásánál */
    .solutionBox label {
        font-size: 12px;
        padding: 6px 12px;
    }

    #mobileAlign {
        padding-top: 0 !important;
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
      }

      .foxlogo {
        margin: 2px 90px 0 20px;
        height: 80px;

        
    }
    #englsihFox{
        height: 80px;
    }

    .indexVoiceDiv{
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        top: -10px;
        left: 0;
    }
        /* Zászlós nyelvváltó optimalizálása */
        .languageDiv {
            padding: 4px 5px;
            margin-left: 7px;
        }
    
        .lang-link {
            font-size: 12px;
            padding: 3px 5px;
        }
    
        .flag {
            width: 16px;
        }
}

