@font-face {
    font-family: "Anta";
    src: url("../font/Anta-Regular.ttf") format("truetype");
}


html {
    scroll-padding-top: 84px; /* NAVBAR magassága */
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    height: 100vh;
    min-width: 610px;
    scroll-behavior: smooth;
    margin: 0;
    font-family: 'Anta', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: rgb(255, 230, 167);
    color: rgb(103, 40, 24);
}

input[type="radio"] {
    accent-color: #9c4c32;
}
/*
#calendar_content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 12px 12px 2px 1px rgba(187, 148, 87, 0.7);
    border: 1px solid rgba(187, 148, 87, 0.7);
    }
*/


.calendar-content {
    max-height: 20px;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), 
                opacity 0.3s ease, 
                transform 0.3s ease, 
                padding 0.4s ease;

    padding: 0 15px;

    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 12px 12px 2px 1px rgba(187, 148, 87, 0.7);
    border: 1px solid rgba(187, 148, 87, 0.7);
}

.quiz-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    padding: 0 20px;
    border: none;
    transition: max-height 0.5s ease-in-out, 
                opacity 0.4s ease, 
                transform 0.4s ease,
                padding 0.4s ease;
    max-width: 800px;
    margin: 0 auto;
}

#quiz_details_container .quiz-container-no-transition {
    max-width: 100%; /* Így kitöltik a rendelkezésre álló helyet, vagy adj meg pl. 800px-et */
    align-items: normal;
    gap: 0px;
}
#quiz_details_container .quiz-container-no-transition h4 {
    margin: 0px;
}

.open {
    max-height: 10000px;
    opacity: 1;
    transform: translateY(0);
    padding: 20px;
    transition: max-height 0.5s ease-in-out, 
                    opacity 0.4s ease, 
                    transform 0.4s ease;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(187, 148, 87, 0.7) !important; /* Látványosabb sárga háttér (tetszés szerint átírható) */
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: rgb(255, 230, 167) !important; /* Piros kiemelés a nap számára */
    font-weight: bold !important;
}

/* Alapértelmezett gombok háttere és szegélye */
.fc .fc-button-primary {
    background-color: #3b82f6 !important; /* Kívánt gomb szín (pl. kék) */
    border-color: #2563eb !important;
    color: #ffffff !important;           /* Betűszín */
}

/* Egérrel való rámutatáskor (Hover) */
.fc .fc-button-primary:hover {
    background-color: #000000 !important;
    border-color: #1e40af !important;
}

/* Az éppen aktív / kijelölt gomb (pl. az aktuális nézet) */
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

/* ================= NAVBAR ================= */


.hamburger {
    display: none;
}

.navbar {
    position: sticky;
    top: 0;
    gap: 0.5rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /*padding: 15px 40px;*/
    padding: 15px 20px; 
    box-sizing: border-box;
    background: rgba(187, 148, 87, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-direction: row;
}

.main-title img {
    height: 50px;
    width: auto;
}

/* NAV LINKS */
.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2em;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: flex-start;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    font-size: 22px;
    color: rgb(67, 40, 24);
    text-shadow: 1px 1px 2px rgb(255, 255, 255), 0 0 70px rgb(255, 230, 167), 0 0 20px rgb(187, 148, 87);
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    display: block;
    transition: background 0.3s ease, border-radius 0.3s ease;
    min-width: 130px;
    text-align: center;
    z-index: 1001;
}

.nav-links a:hover,
.dropdown:hover > a {
    background-color: rgb(255, 230, 167);
    border-radius: 10px 10px 0 0;
}

#li_login {
    display: block;
}
#li_login.hidden {
    display: none;
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute; /* FIX #1: ez most helyes, nem írja felül a "relative" */
    top: 100%;
    left: 0;
    background: rgb(255, 230, 167);
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    text-align: center; 
    z-index: 1001; 
}

.dropdown-menu li a {
    padding: 10px;
}

.dropdown-menu li a:hover {
    background: rgba(187, 148, 87, 0.7);
    border-radius: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ================= CONTENT ================= */
.page {
    display: none;
    padding: 10px 20px 20px;
    /*min-height: calc(100vh - 84px); /* levonjuk a navbar magasságát */
}

.page.active{
    display: block;
}

.page img {
    max-width: 100%;

}

#quiz_master_form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: space-around;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    box-shadow: 12px 12px 2px 1px rgba(187, 148, 87, 0.7);
    max-width: 500px;
    padding: 20px;
    border: 1px solid rgba(187, 148, 87, 0.7);
    border-radius: 8px;
    font-family: 'Anta', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    flex-wrap: wrap;
    transition: .5s;
}

#quiz_result_container {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 20px;
}

.quiz-container-no-transition{
    display: flex;
    flex: 1;
    width: 100%;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    box-shadow: 12px 12px 2px 1px rgba(187, 148, 87, 0.7);
    max-width: 400px;
    padding: 20px;
    border: 1px solid rgba(187, 148, 87, 0.7);
    border-radius: 8px;
    font-family: 'Anta', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.quiz-container:hover {
    transform: scale(1.1);
}

.quiz-question {
    margin-top: 0;
}

#submit_quiz_btn.hidden {
    display: none;
}

#btn_reg_msg_div button.hidden {
    display: none;
}

.quiz-question {
    margin-bottom: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
}


.quiz-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    word-break: break-word;
    overflow-wrap: break-word;
}

#timer_container.hidden {
    display: none;
}
/*
#timer_container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin: 15px 0 15px 0;
}*/



#timer_bar {
    display: flex;
    height: 30px;
    background: rgb(67, 40, 24);
    text-shadow: 1px 1px 2px rgb(255, 255, 255), 0 0 70px rgb(255, 230, 167), 0 0 20px rgb(187, 148, 87);
    border-radius: 10px;
    transition: width 1s linear;
    align-items: center;
    justify-content: center;
}

#time_content {
    font-size: 12px;
    color: white;
    font-family: "Anta";
}

#timer_at_end {
    font-size: 12px;
    color: white;
    background-color: red;
    font-family: "Anta";
    margin: 0 0 0 10px;
}

#start_quiz_btn {
    margin-top: 15px;
}

/* ================= Flip card ================= */

.login-container {
    display: flex;
    margin-top: 110px;
    justify-content: center;
    /*min-height: 100vh;*/
    background: inherit;
}
/*-------------------------------------*/
#flip {
    display: none;
}

#scene {
    width: 400px;
    height: 550px;
    perspective: 600px;
    cursor: default;
}
/*-------------------------------------*/
#card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
/*-------------------------------------*/
#flip:checked + #scene #card {
    transform: rotateY(180deg);
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;  /*ez roppant fontos ez jelöli hogy a back ne jelenjen meg*/
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.front {
    background: rgb(187, 148, 87);
    color: rgb(67, 40, 24);
    border-radius: 70px 5px;
    padding: 2rem 0;
}

.back {
    background: rgb(187, 148, 87);
    color: rgb(67, 40, 24);
    transform: rotateY(180deg);
    border-radius: 5px 70px;
}
/*-------------------------------------*/
.login {
    display: flex;
    flex-direction: column;
    width: 80%;
    align-items: center;
}

#reg_form {
    display: flex; 
    flex-direction: column;
    align-items: center; /*ezt a legend kiírás miatti igazítás miatt fontos*/
}

.submit-button {
    font-family: "Anta";
    padding: 10px 20px;
    margin-top: 5px;
    background-color: #3d251e; /* Nagyon elegáns, mély sötétbarna */
    color: #ecd5c5;            /* Halvány rezes-krém szöveg */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
    font-size: 15px;            /* Kissé megemelt betűméret */
    font-weight: 500;           /* "Bold" helyett csak közepesen vastag */
    letter-spacing: 0.8px;      /* Pici térköz a karakterek között */
    
    /* A gomb szövegszínének átmenetéhez */
    transition: color 0.3s ease; 
}
/* A gomb előtti réteg, ami a scaleX(0) alapján el van rejtve -> hover::before scaleX(1) miatt látszik */
.submit-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;                /* A teljes szélesség kell, a scaleX fogja méretezni */
    height: 100%;
    background-color: #9c4c32; 
    transform: scaleX(0); /* Alapból el van rejtve */
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(1, 0.02, 0.07, 0.41);
    z-index: -1;
}

/* Hover állapotok */
.submit-button:hover {
    color: #ffffff;             /* Hovernél teljesen fehér szöveg */
}

.submit-button:hover::before {
    transform: scaleX(1);
}

.login h1 {
    font-size: 50px;
    margin-bottom: 50px;
    color: inherit;
    text-shadow: 1px 1px 2px rgb(255, 255, 255), 0 0 70px rgb(236, 213, 188), 0 0 20px rgb(233, 182, 59);
}

.login h2 {
    font-size: 30px;
    margin-bottom: 5px;
    color: inherit;
    text-shadow: 1px 1px 2px rgb(255, 255, 255), 0 0 70px rgb(236, 213, 188), 0 0 20px rgb(233, 182, 59);
}

.flip-hint {
    cursor: pointer;
    margin-top: auto;
}

#flip-hint-back-h3 {
    margin-bottom: 30px;
}


.flip-hint h3 {
    margin-top: 2px;
    margin-bottom: 0;
    color: inherit;
}

.form {
    position: relative;
    /*width: 100%;*/
}

.form input {
    display: block;
    margin: 7px 0;
    padding: 16px 10px 10px 10px;
    width: 20em;
    font-size: 14px;
    font-family: "Anta";
    background: transparent;
    border: 1px solid rgb(67, 40, 24);
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

/* Ez a rész a Chrome autofill stílusát írja felül, hogy illeszkedjen a designhoz*/
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px rgb(187, 148, 87) inset;
  -webkit-text-fill-color: rgb(67, 40, 24);
  font-family: "Anta";
}


.form input:focus {
    border-color: rgb(67, 40, 24);
}

.form label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgb(67, 40, 24);
    background: rgb(187, 148, 87);
    padding: 0 4px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form input:focus + label,
.form input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: rgb(255, 230, 167);
}

legend {
    font-size: 13px;
    font-weight: 500;                   /* "Bold" helyett csak közepesen vastag*/
    letter-spacing: 0.8px;
    color: rgb(255, 230, 167);
}

fieldset {
    border-color: rgb(255, 230, 167);
    border-radius: 6px;
}

.non-active {
    display: none;
}

.show{
    display: flex !important;
    justify-content: space-between;
}

.log_msg_div {
    display: none;
    margin-top: 7px;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
    align-content: space-around;
    align-items: center;
}

.log_msg {
    display: block;
    padding: 7px;
    border-radius: 10px;
    border: 1px solid rgb(67, 40, 24);
}

#onlog_error_btn {
    display: none;
    margin-top: 0px;
    height: 55px;
    font-weight: 300;
    letter-spacing: 0px;
}

/*------------------------------------------*/
#btn_reg_msg_div{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

#reg_msg_div{
    display: none;
}

#reg_msg {
    display: block;
    padding: 5px;
    margin: 5px;
    border-radius: 10px;
    border: 1px solid rgb(67, 40, 24);
}

exit#exam_period {
    margin-top: 10px;
}

#confirm_pop_up{
    border: block;
    border-radius: 10px;
    padding: 20px;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);*/
    border: 1px solid rgb(67, 40, 24);
    background: rgb(255, 230, 167);
}

#confirm_pop_up a {
    color: rgb(67, 40, 24);
    font-size: 15px;                    /* Kissé megemelt betűméret */
    font-weight: 500;                   /* "Bold" helyett csak közepesen vastag*/
    letter-spacing: 0.8px;
}

#confirm_pop_up::backdrop {
    background-color: rgba(0, 0, 0, 0.7); /*; rgba(67, 40, 24, 0.9)
    rgba(67, 40, 24, 0.7);*/
}

#confirm_buttons {
    display : flex;
    justify-content: space-around;
}

#calendar_btn {
    display : none;
}

/* ================= Downloads ================= */

.cleaner-btn {
  display: inline-flex;
  border-radius: 20px;
  align-items: center;
  gap: 8px;
  padding: 5px 5px;
  background: rgb(187, 148, 87);
  cursor: pointer;
}


.cleaner-btn .span {
  font-size: 14px;
  font-weight: bold;
  color: rgb(67, 40, 24);
}

.icon {
  width: 35px;
  height: 35px;
}
.cleaner-btn:hover {
    background: rgb(255, 230, 167);
    color: #070707;
}
#cleaner_container {
    display: flex;
    justify-content: space-around;
}

.downloads-container {
    display: flex;
    justify-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px;
    align-content: center;
    justify-content: center;
}

.flex-card {
    display: flex;
    width: 200px;
    height: 200px;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    align-content: center;
    padding: 10px;
    border-radius: 5px;
    background: rgb(187, 148, 87);
    transition: .5s;
}

.title-content {
    display: flex;
    max-width: 200px;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.download-links {
    display: flex;
    justify-content: space-between;
}

.number h3 {
    text-align: center;
    margin: 0;
    border-radius: 5px;
    background: rgb(255, 230, 167);
}

.flex-card:hover {
    transform: scale(1.1);
}

.download-links a {
    text-decoration: none;
    color: rgb(67, 40, 24);
    font-size: 0.9em;
}

.download-links a:hover {
    background-color: rgb(255, 230, 167);
    border-radius: 5px;
}

.download-links a:visited {
    text-decoration: line-through;
    background-color: rgb(255, 230, 167);
    border-radius: 5px;
}

.flex-card p {
    font-size: 0.5em;
}

/* ================= MEDIA QUERY ================= */

@media (max-width: 600px) {

    body {
        min-width: unset;
        margin: 0;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        min-width: unset;
        flex-direction: row;
        align-items: center;
        padding: 10px 20px;
    }

    .hamburger {
        display: block;
        font-size: 26px;
        background: none;
        border: none;
        cursor: pointer;
        color: rgb(67, 40, 24);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        background: rgba(187, 148, 87, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 18px;
        border-radius: 0;
        padding: 10px 20px;
        min-width: unset;
        text-align: left;
    }

    .dropdown-menu {
        position: static;
        display: block;
        background: rgba(255, 210, 120, 0.5);
    }


    .dropdown-menu li a {
        padding: 8px 35px;
    }

    .page {
        display: none;
        margin-top: 70px;
        padding: 5px;
    }

    #login {
        height: 100dvh;
    }

    .downloads-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .login-container {
        justify-self: flex-start;
        margin-top: 90px;
    }

    #pharmacology_topics_header {
        display: none;
    }

    #flex_container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
}