:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --padding-size: 10px;
    --Texture-Green-Light: url('/public/images/wwf/wwf_texture_green_light.png');
}


@font-face {
    font-family: 'WWF_Font';
    src:    url('/public/fonts/WWF_Font/WWF.woff2') format('woff2'),
            url('/public/fonts/WWFmég_Font/WWF.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url('/public/fonts/Open_Sans/OpenSans-Regular.ttf') format("truetype");
    font-display: swap;
}

body, html {
    overflow-x: hidden; /* Hide horizontal overflow */
}

*, ::after, ::before {
    box-sizing: border-box;
}

body {
    background-image: url('/public/images/wwf/wwf_background.png'); /* Replace with your actual file path */
    background-size: cover; /* Ensures the image covers the entire viewport */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents repeating */
    background-attachment: fixed; /* Keeps the background fixed when scrolling */

    margin: 0;
    padding: 0;


    color: #1f1f1f;
    font-family: 'WWF_Font', "Open Sans", sans-serif; /* Fallback to sans-serif */
    text-transform: uppercase; /* Converts text to uppercase */
    font-size: 20px;
    line-height: 25px;

}

a {
    color: #1f1f1f; /* Default link color */
}

a:visited {
    color: #1f1f1f; /* Color for visited links */
}

a:hover {
    color: #1f1f1f; /* Color when hovering */
}

a:active {
    color: #1f1f1f; /* Color when clicked */
}

h1 {font-size: 60px; line-height: normal;}
h2 {font-size: 48px; line-height: normal;}
h3 {font-size: 30px; line-height: normal;}


/* Ensure the header stays at the top */
header {
    position: fixed; /* Keeps it always visible */
    background: transparent; /* Change if you need a background */
    z-index: 9999; /* Ensures it stays above other elements */
}

/* Style the logo */
.logo img {
    height: 50px; /* Adjust the height as needed */
    width: auto; /* Keeps aspect ratio */
    display: block;
    margin: 15px 30px;
}

.button {
    display: inline-block;
    padding: 10px 20px; /* Adjust padding as needed */
    border: none;
    border-radius: 999px; /* Makes it rounded */
    background-image: url('/public/images/wwf/wwf_texture_green_dark.jpg'); /* Replace with your actual PNG */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f7f7f7; /* Adjust text color for contrast */
    font-family: 'WWF_Font', Roboto, sans-serif; /* Fallback to sans-serif */

    text-transform: uppercase; /* Converts text to uppercase */
    cursor: pointer;
    box-shadow: 3px 4px 0px #1f1f1f; /* Fully opaque black shadow */
    transition: all 0.3s ease-in-out;

    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 2px;
    margin: 0px 40px;
}

.button.secondary {

    /*Round, outline, but color*/
    outline: 5px solid #71B830;
    outline-offset: -2px;
    -moz-outline-radius: 999px;


    /*
    border: 5px solid #51bf9a;

    border: 5px solid var(--Texture-Green-Light);

    border-image-source: url('/public/images/wwf/wwf_texture_green_light.png');
    border-image-slice: 30;
    border-image-width: 5px;
    border-image-repeat: round;
    */

    background: var(--white, #F7F7F7);
    color: #007932;
    box-shadow: 4px 7px 0px #1F1F1F;

}

.button:hover:not(:disabled) {
    transform: scale(1.1); /* Slight scale effect on hover */
}

.button:active:not(:disabled) {
    border: none;
    /*transform: scale(0.97);*/ /* Click effect */
}
.button.secondary:active:not(:disabled) {
    /*Round, outline, but color*/
    outline: 5px solid #71B830;
    outline-offset: -2px;
    -moz-outline-radius: 999px;
    /*transform: scale(0.97);*/ /* Click effect */
}

.button:focus {
    outline: none;
}
.button.secondary:focus {
    /*Round, outline, but color*/
    outline: 5px solid #71B830;
    outline-offset: -2px;
    -moz-outline-radius: 999px;
}

.button:disabled {
    opacity: 0.2;
}

.button.big {
    font-size: 40px;
    padding: 20px 40px;
}

.button-container {
    margin-bottom: 20px;
    text-align: center;
    display: block;
}


/* Input Fields */
.single-button{
    margin: 0px;
}









/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Style the checkbox */
.checkbox-container input[type="checkbox"] {
    width: 30px;
    height: 30px;
    margin-right: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    border: none;
}

.checkbox-container input[type="checkbox"]:checked, .checkbox-container input[type="checkbox"]:hover {
    background-color: green!important;
    border-color: green!important;
}

/* Style the checkbox label */
.checkbox-container label {
    font-size: 20px;
    cursor: pointer;
}







.custom-checkbox {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.custom-checkbox input {
    display: none;
}

.checkbox-indicator {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
    border-radius: 0px;
    display: inline-block;
    transition: background-color 0.3s;
    position: relative;
    box-shadow: 3px 4px 0px #8CC63F;
    margin-right: 20px;
}

.custom-checkbox input:checked + .checkbox-indicator {
    background-color: #007932;
}

.custom-checkbox input:checked + .checkbox-indicator::after {
    content: '✔'; /* The checkmark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* Color of the checkmark */
    font-size: 14px;
}






/* Main Navigation Bar */
.navigationBar{
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100px;
    z-index: 990;
}

.nav-inner{
    position: relative;   /* kell az abszolút középre helyezéshez */
    width: 100%;
    height: 100%;
    /* vedd ki a max-width-et és a margin:auto-t */
}


/* Align logo to the left */
.header-logo{
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

/* Center Navigation Menu */
.navigationBar-content{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);  /* vízszintesen is, függőlegesen is közép */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0; /* régi 215px-t biztosan vedd ki */
}

.navigationBar-right{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 0;
}

.navigationBarItemIcon{ height: 80px; }

/* Hide text on desktop, show only icons */
.navigationBarItemText {
    display: none;
}

.navigation{
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
}

.navigation li{ margin: 0 10px; height: 80px; }


.navigation li > a {
    padding: 0;
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

/* Navigation Icons */
.navigationBarItem {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.navigationBarItem:hover {
    transform: scale(1.1);
}

/* Mobile Navigation */
.hamburger{
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    cursor: pointer;
}

.avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #f8f9fa;
}

/* Tablet view - smaller navigation icons */
@media (min-width: 769px) and (max-width: 1024px) {
    .navigationBarItemIcon {
        height: 60px;
    }

    /* Smaller right side elements */
    .studentBadgesContainer {
        width: 40px;
        height: 40px;
        font-size: 16px;
        padding-bottom: 6px;
        margin-left: 15px;
    }

    .studentPointsContainer img {
        height: 35px;
    }

    .studentPointsContainer span {
        padding: 0px 12px 2px 18px;
        margin-left: -18px;
        font-size: 18px;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .progress-container {
        width: 80px;
        height: 8px;
    }

    .progress-bar {
        min-width: 8px;
    }
}

/* Mobile menu hidden by default */
@media (max-width: 768px){
    .navigationBar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        z-index: 990;
    }

    .nav-inner {
        background-image: url(/public/images/wwf/wwf_background.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    .navigationBar-content{
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 80px;
        transform: none;            /* ne középre toljuk a lenyílót */
        width: 100%;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0,0,0,.1);
        z-index: 1000;
        background-image: url(/public/images/wwf/wwf_background.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    .navigationBar-content.active{
        display: flex;
        align-items: start;
    }
    .navigation{ flex-direction: column; padding:0 0 0 10px; }
    .navigation li{ margin: 10px 0; height: auto; }
    .hamburger{ display: block; }

    /* Text menu items instead of icons */
    .navigationBarItemText {
        font-size: 20px;
        font-weight: 600;
        color: #1f1f1f;
        text-transform: uppercase;
        padding: 10px 20px;
        display: block;
    }

    .navigationBarItemIcon {
        height: 6vh;
    }

    .navigationBarItem:hover .navigationBarItemText {
        color: #007932;
    }

    /* Right side icons - make them smaller and keep in one row */
    .navigationBar-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 3px;
        right: 10px !important;
    }

    .navigationBar-right .navigation {
        flex-direction: row !important;
        padding: 0 !important;
        gap: 3px;
        align-items: center;
    }

    .navigationBar-right .navigation li {
        margin: 0 !important;
        height: auto;
    }

    /* Smaller badges container */
    .studentBadgesContainer {
        width: 28px;
        height: 28px;
        font-size: 11px;
        padding-bottom: 4px;
        margin-left: 5px;
    }

    /* Smaller points container */
    .studentPointsContainer {
        display: inline-flex;
        align-items: center;
    }

    .studentPointsContainer img {
        height: 24px;
    }

    .studentPointsContainer span {
        background-color: #007932;
        color: white;
        padding: 0px 8px 1px 12px;
        margin-left: -12px;
        font-size: 20px;
    }

    /* Smaller avatar */
    .avatar {
        width: 40px !important;
        height: 40px !important;
        border: 1px solid #ddd;
    }

    /* Much smaller and narrower progress bar */
    .progress-container {
        width: 30px;
        height: 5px;
        display: none;
    }

    .progress-bar {
        min-width: 5px;
        border: 1px solid #F7F7F7;
    }

    /* Hamburger closer to left */
    .hamburger {
        right: auto;
        left: 15px;
        font-size: 1.5rem;
    }

    /* Logo smaller on mobile */
    .header-logo {
        left: 60px;
    }

    .header-logo .logo img {
        height: 35px;
        margin: 10px 15px;
    }
}





.studentPointsContainer{ display: inline-flex; align-items: center; }

.studentPointsContainer img {
    height: 50px;
    position: relative;
    z-index: 10;
}

.studentPointsContainer span {
    background-color: #007932; /* Example color with transparency */
    color: white;
    padding: 0px 15px 3px 25px;
    margin-left: -25px;
}


.studentBadgesContainer {
    position: relative;
    width: 55px;
    height: 55px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-image: url("/public/images/wwf/wwf_menu_badge.png");
    background-repeat: no-repeat;
    margin-left: 20px;
    cursor: pointer;
    padding-bottom: 8px;
}

.progress-container {
    width: 100px;
    height: 10px;
    background-image: url('/public/images/wwf/wwf_texture_green_light.png'); /* Replace with your actual file path */
    border-radius: 10px;
    margin: 0 auto;
}

/* Progress Bar Foreground */
.progress-bar {
    width: 0%; /* Default 50% */
    height: 100%;
    background-image: url('/public/images/wwf/wwf_texture_green_dark.jpg'); /* Replace with your actual file path */
    border-radius: 10px;
    border: 2px solid #F7F7F7;
    transition: width 1s ease-in-out;
    background-repeat: round;
    min-width: 10px;
}


.container {
    display: flex;
    height: 100vh;

    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 80%;

}

.container.small {
    margin-top: 100px;
    height: 80vh;
}

.container.column {
    margin-top: 100px;
    flex-direction: column;
    max-width: 60%;
}

.container-item {
    margin-bottom: 40px;
}

.container h1 {
    font-size: 60px;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 32px;
}

.container h2 {
    font-size: 48px;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 32px;
}


.container p {
    padding-bottom: 32px;
    text-transform: none;

    font-family: "Open Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* Left Side: Image */
.center-section {
    flex: 1;
    display: flex;
    padding: 40px;
    justify-content: center;
    align-items: center;
}

/* Left Side: Image */
.left-section {
    flex: 1;
    display: flex;
    padding: 40px;
    justify-content: right;
    align-items: center;
}

.left-section img {
    max-width: 60%;
    height: auto;
}



/* Right Side: Login Form */
.right-section {
    flex: 1;
    display: flex;
    padding: 40px;
    justify-content: left;
    align-items: center;
}

.right-section img {
    max-width: 90%;
    height: auto;
}





.not-active {
    opacity: 0.4;
    cursor: not-allowed!important;
    filter: grayscale(100%);
}

.active {
    cursor : pointer;
}



.badge-container {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.badge {
    position: relative;
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.badge-big {
    width: 60px;
    height: 60px;
}

.badge-small {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.inactive {
    opacity: 0.6;
    filter: grayscale(1);
}


.jq-toast-wrap.top-right {
    top: 40px;
    right: 40px;
    text-transform: none;
}

.hiddenBadge {
    position: absolute;
    width: 50px;
    height: 50px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    cursor: pointer;
    transition: all 0.3s ease-in-out;

    z-index: 9999;
}



button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}





*, ::after, ::before {
    box-sizing: border-box;
}


.modal-backdrop {
    z-index: 999;
}


.pulse-image {
    animation: pulse 1.5s ease-in-out 0s infinite;
}

@keyframes pulse {
    0% {
        background-size: 100%;
        font-size: 18px;
    }
    50% {
        background-size: 110%;
        font-size: 23px;
    }
    100% {
        background-size: 100%;
        font-size: 18px;
    }
}

canvas {
    z-index: 9999!important;
}



.challenge-task {
    background-image: url('/public/images/wwf/wwf_table_highlight_medium.png');
    background-size: cover;
    background-position: center;
    box-shadow: 8px 8px 0px 0px #1F1F1F;

    position: relative;
    padding: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.challenge-task p {
    color: #1f1f1f;
    font-family: 'WWF_Font', "Open Sans", sans-serif; /* Fallback to sans-serif */
    text-transform: uppercase; /* Converts text to uppercase */
    font-size: 26px;
    padding-bottom: 0;
}