/*MINDEN OLDALRA VONATKOZÓ STYLE*/
*{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    list-style: none;
    font-family: Garamond;
}
:root{
    /*header-footer fix, nincs darkmode*/
    --header-footer-background-color: #241c24;
    --header-footer-text-color: #ffffff;
    --header-hover-current-color: #ffffff; /*hover AND current*/

    /*back to top gomb*/
    --back-to-top-background-color: #eeeeee;
    --back-to-top-background-hover-color: #241c24;
    --back-to-top-font-color: #241c24;
    --back-to-top-font-hover-color: #ffffff;
    --back-to-top-shadow-color: #241c24;

    /*h1,h2 title és háttér*/
    --h1-h2-title-color: #241c24;
    --body-background-color: #ffffff;

    /*more books rész*/
    --more-books-background-color: #eeeeee;
    --more-books-text-color: #241c24;
    
    /*könyv alatti szöveg színek, single book szövegei*/
    --book-title-author-color: #241c24;
    --author-hover-underline-color: black;
    --background-card-color: #ececec;

    /*eventek background és könyvek card background*/
    --event-background-color: #ececec;
    --event-card-color: whitesmoke;
    --event-desc-color: whitesmoke;

    /*single-inprep szövegdoboz hátterek, betűk*/
    --book-data-color: black;
    --book-data-even-background-color: #cccccc;
    --single-inprep-background-color: white;
}
.darkmode{
    /*back to top gomb*/
    --back-to-top-background-color: #241c24;
    --back-to-top-background-hover-color: #eeeeee;
    --back-to-top-font-color: #ffffff;
    --back-to-top-font-hover-color: #241c24;

    /*h1,h2 title és háttér*/
    --h1-h2-title-color: #f2f2f2;
    --body-background-color: #1f1f2b;

    /*more books rész*/
    --more-books-background-color: #241c24;
    --more-books-text-color: #ffffff;

    /*könyv alatti szöveg színek, single book szövegei*/
    --book-title-author-color: #f2f2f2;
    --author-hover-underline-color: white;
    --background-card-color: #343449;

    /*eventek background és könyvek card background*/
    --event-background-color: #343449;
    --event-card-color: #565677;
    --event-desc-color: #71719c;

    /*single-inprep szövegdoboz hátterek, betűk*/
    --book-data-color: white;
    --book-data-even-background-color: #494949;
    --single-inprep-background-color: #241c24;
}

html{
    height: 100%;
    scroll-behavior: smooth;
}
body{
    background: var(--body-background-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    cursor: default;
}

/*"tovább" gombok (index.php: tovább az események oldalra, íróra szűrt oldal: összes könyv mutatása)*/
.next-button{
    background-color: var(--event-desc-color);
    padding: 4px;
    margin: 40px 0;
    border-radius: 6px;
    border: 1px solid black;
}
.next-button:hover{
    background-color: white;
    transition: 0.1s;
}
.next-button a{
    color: black;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none; 
}

/*onload "animation" !telefon only*/
@media only screen and (min-width: 992px){
    .hidden{
        opacity: 0;
        filter: blur(1px);
        transition: opacity 0.5s;
    }
    .show{
        opacity: 1;
        filter: blur(0);
    }
}

/*header alap*/
.mainHeader{
    background: var(--header-footer-background-color);
    height: 90px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 100;
}
nav{
    height: 90px;
}

.logo{
    float: left;
    width: 70px;
    height: 70px;
    margin: 10px 10px;
}
.logo a{
    width: 70px;
    height: 70px;
}
.logo img{
    width: 70px;
    height: 70px;
    display: block;
}

/*navbar interaktálható dolgok. oldalválasztó menü, social gombok, darkmode (balról jobbra sorban)*/
.navInteract{
    float: right;
    display: flex;
    gap: 30px;
    margin-right: 20px;
    height: 100%;
    align-items: center;
}
.navInteract ul li{
    display: inline-block;
    line-height: 90px;
}
.navInteract ul li i{
    color: var(--header-footer-text-color);
    margin-left: 26px;
}
.navInteract ul li a{
    color: var(--header-footer-text-color);
    padding: 4px;
    margin-left: 5px;
    font-size: 17px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}
.navInteract ul li a:hover{
    color: var(--header-footer-background-color);
    background: var(--header-hover-current-color);  
    border-radius: 5px;
    transition: 0.2s;
}

.current_page{
    color: var(--header-footer-background-color) !important; 
    background: var(--header-hover-current-color);
    border-radius: 5px;
}

/*social | mindenhol ez a szín*/
.fa-facebook{
    color: #3b5999;
}
.fa-instagram{
    color: transparent;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 98%);
    background: -webkit-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 98%);
    -webkit-background-clip: text;
    background-clip: text;
}

.navSocial{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 45px;
}
.navSocial i{
    font-size: 22px;
}

/*darkmode gomb*/
#theme-switch{
    height: 32px;
    width: 32px;
    padding: 0;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
#theme-switch:hover{
    cursor: pointer;
}   
#theme-switch svg{
    fill: #494a55;
}

@keyframes rotateDARK{
    from{
        rotate: 0deg;
    }
    to{
        rotate: 360deg;
    }
}
.animate{
    animation: rotateDARK 1s ease;
    pointer-events: none;
}

/*telefon menü*/
.toggle-button{
    display: flex;
    align-items: center;
    height: 45px; /*hogy középen legyen kell ez meg a flex*/
    font-size: 26px;
    color: white;
    cursor: pointer;
    display: none;
}
.dropdown-menu{
    position: absolute;
    width: 100%;
    background-color: white;
    overflow: hidden;
    top: 90px;
    display: none;
    text-align: center;
    height: 0px;
    transition: height 0.2s;
}
.dropdown-menu.open{
    height: 170px;  
    transition: height 0.2s;
}
.dropdown-menu ul{
    height: 170px;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    padding: 14px 0;
}
.dropdown-menu li{
    padding: 8px 0;
}
.dropdown-menu li i{
    padding-right: 8px;
}
.dropdown-menu li a{
    text-decoration: none;
    color: black;
}

.current_page_mobile{
    background-color: rgb(58, 58, 58);
    color: white;
}
.current_page_mobile a{
    color: white !important; 
}

@media only screen and (max-width: 850px){ /*Header overflow határ, telefonon menü gomb a menü sáv helyett*/

    .navInteract ul{
        display: none;
    }
    .toggle-button{
        display: flex;
    }
    .dropdown-menu{
        display: block;
    }
}

/*title*/
@keyframes h1h2-load{
    0%{
        opacity: 0;
        transform: translateY(-10px);
    }
    100%{
        opacity: 1;
    }
}

h1{ 
    color: var(--h1-h2-title-color);
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    margin-top: 2vh;
    margin-bottom: 5vh;
    padding: 0 6vw;
    padding-top: 25px; 
    animation: h1h2-load 300ms ease-in 50ms;
    animation-fill-mode: forwards;
    opacity: 0;
}
h2{
    color: var(--h1-h2-title-color);
    text-align: center;
    font-size: 36px;
    margin-bottom: 3vh;
    padding: 0 6vw;
    animation: h1h2-load 200ms ease-in 250ms;
    animation-fill-mode: forwards;
    opacity: 0;
}

/*footer*/
footer{
    background: var(--header-footer-background-color);
    font-size: 16px;
    margin-top: auto;
    bottom: 0;
    height: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20vw;
    box-shadow: 0px -1px 6px 1px rgba(0, 0, 0, 0.5);
}

.footer-social{
    width: 200px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.footer-social i{
    font-size: 24px;
}

.footer-pic{
    width: 200px;
    height: 35px;  
}
.footer-pic img{
    height: 35px;
}

.footer-info{
    width: 200px;
    color: var(--header-footer-text-color);
}

/*back to top*/
.back-to-top{
    color: var(--back-to-top-font-color);
    background: var(--back-to-top-background-color);
    border: 1px solid white;
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 1px 1px 4px var(--back-to-top-shadow-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    transition: 0.1s;
}
.back-to-top.active{
    pointer-events: auto;
    opacity: 1;
}
.back-to-top:hover{
    transition: 0.1s;
    color: var(--back-to-top-font-hover-color);
    background: var(--back-to-top-background-hover-color);   
}


/* telefon alap*/
@media only screen and (max-width: 425px){ /*legkisebb*/
    
    .navInteract{
        gap: 20px;
    }

    h1{
        font-size: 36px;
    }
    h2{
        font-size: 24px;
    }

    footer{
        font-size: 14px;
        height: fit-content;
        padding: 14px;
        flex-direction: column;
        gap: 20px;
    }
    .footer-pic{
        order: 3;
    }

    .back-to-top{
        display: none;
    }
}

@media only screen and (min-width: 426px) and (max-width: 650px){ /*kisebb*/
    
    .navInteract ul li a{
        font-size: 16px;
    }
    .navInteract{
        gap: 20px;
    }

    h1{
        font-size: 42px;
    }
    h2{
        font-size: 28px;
    }

    footer{
        font-size: 14px;
        height: fit-content;
        padding: 14px;
        flex-direction: column;
        gap: 20px;
    }
    .footer-pic{
        order: 3;
    }

    .back-to-top{
        display: none;
    }
}

@media only screen and (min-width: 651px) and (max-width: 992px){ /*medium*/
    
    .navInteract ul li a{
        font-size: 16px;
    }
    .navInteract{
        gap: 20px;
    }

    h1{
        font-size: 46px;
    }
    h2{
        font-size: 32px;
    }

    footer{
        gap: 10vw;
    }
}