/*
Theme Name: PPH Media
Author: Professional Publishing Hungary Kiado Kft.
Version: 1.0
*/


/* Sticky Footer Setup */
html, body {
    height: 100%;
    margin: 0;
}
footer .row{
    --bs-gutter-x: 0rem !important;
}
@media (max-width: 768px) {
    .container-footer img{
        width:100%;
    }
    /* Fix for deadline section overflow on mobile */
    .deadline-text {
        width: 100% !important;
        display: block !important;
    }
    .deadline-text p, 
    .deadline-text h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}
a{
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#menu-menu-1 li{
    display: inline;
  }

.container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 20px 0;
    width: 100%;
}

/* NAVBAR */
.navbar {
    display: inline-flex;
    justify-content: center;
    padding: 10px;
    text-align: center;
}
.container-header{
    text-align: center;
}

.header-row {
    display: block;
}
.container-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}
.header-icon img {
    height: 40px;
    width: auto;
}
.header-icon .hover-icon {
    display: none;
}
.header-icon:hover .default-icon {
    display: none;
}
.header-icon:hover .hover-icon {
    display: inline;
}

.nav-link:focus, 
.nav-link:hover,
.current-menu-item .nav-link {
    position: relative;
}

.nav-link:focus::after, 
.nav-link:hover::after,
.current-menu-item .nav-link::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
}

/* Override Bootstrap hover color */
.navbar .navbar-nav .nav-item .nav-link {
    --bs-nav-link-hover-color: unset;    
    transition: none;
    position: relative;
}

.navbar .navbar-nav .nav-item .nav-link:hover,
.navbar .navbar-nav .nav-item .nav-link:focus,
.navbar .navbar-nav .nav-item.current-menu-item .nav-link,
.navbar .navbar-nav .nav-item.current_page_item .nav-link,
.navbar .navbar-nav .nav-item.current-menu-parent .nav-link,
.navbar .navbar-nav .nav-item.current-menu-ancestor .nav-link {
    color: currentColor !important;
}

.navbar .navbar-nav .nav-item .nav-link:hover::after,
.navbar .navbar-nav .nav-item .nav-link:focus::after,
.navbar .navbar-nav .nav-item.current-menu-item .nav-link::after,
.navbar .navbar-nav .nav-item.current_page_item .nav-link::after,
.navbar .navbar-nav .nav-item.current-menu-parent .nav-link::after,
.navbar .navbar-nav .nav-item.current-menu-ancestor .nav-link::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
}

/* Menu toggle button */
.navbar-toggler {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    position: relative;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

.navbar-toggler .menu-icon,
.navbar-toggler .close-icon {
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 40px;
    width: auto;
    margin: 0;
    padding: 0;
}

.navbar-toggler .close-icon {
    opacity: 0;
}

.navbar-toggler .menu-icon {
    opacity: 1;
}

body:has(.overlay-menu.active) .navbar-toggler .menu-icon {
    opacity: 0;
}

body:has(.overlay-menu.active) .navbar-toggler .close-icon {
    opacity: 1;
}

/* Overlay Menu for all screen sizes */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.overlay-menu ul{
    list-style: none;
}
.overlay-menu ul li{
    padding-bottom:10px;
}
.overlay-menu #menu-menu-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.overlay-menu .menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.overlay-menu.active .menu-item {
    opacity: 1;
    transform: translateY(0);
}

.overlay-menu .menu-item:nth-child(1) { transition-delay: 0.1s; }
.overlay-menu .menu-item:nth-child(2) { transition-delay: 0.15s; }
.overlay-menu .menu-item:nth-child(3) { transition-delay: 0.2s; }
.overlay-menu .menu-item:nth-child(4) { transition-delay: 0.25s; }
.overlay-menu .menu-item:nth-child(5) { transition-delay: 0.3s; }

.overlay-menu .menu-item a {
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.overlay-menu .menu-item a::after {
    width: 0;
    transition: width 0.3s ease;
}

.overlay-menu .menu-item a:hover::after,
.overlay-menu .current-menu-item a::after,
.overlay-menu .current_page_item a::after,
.overlay-menu .current-menu-parent a::after,
.overlay-menu .current-menu-ancestor a::after {
    width: 50%;
}

/* Desktop styles */
@media (min-width: 992px) {
    .icons-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0;
        margin: 0 auto;
    }
    .navbar {
        text-align: center;
        width: 100%;
    }
    .navbar-collapse {
        display: block !important;
    }
    #menu-menu-1 {
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0rem 2rem;
    }
    #menu-menu-1 li {
        display: block;
    }
    #menu-menu-1 li a {
        text-decoration: none;
        padding: 0.5rem 0;
        display: block;
    }
    .mobile-view {
        display: none;
    }
    /* Desktop header animations */
    @keyframes iconFadeIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .desktop-view .icons-row {
        overflow: hidden;
    }

    .desktop-view .icons-row .header-icon {
        opacity: 0;
        animation: iconFadeIn 0.5s ease forwards;
    }

    /* Desktop menu animation */
    @keyframes menuItemFadeIn {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .desktop-view .navbar {
        overflow: hidden;
    }

    .desktop-view .navbar .nav-item {
        opacity: 0;
        animation: menuItemFadeIn 0.5s ease forwards;
    }

    /* Hide animation before JS loads */
    .no-js .desktop-view .navbar .nav-item,
    .no-js .desktop-view .icons-row .header-icon {
        opacity: 1;
        animation: none;
    }
}

/* Mobile styles */
@media (max-width: 991px) {
    .desktop-view {
        display: none;
    }
    .container-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-view {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 10px;
        height: 40px;
        margin: 0;
    }
    .navbar-toggler {
        padding: 0;
        border: none;
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }
    #menu-menu-1 {
        margin: 0;
        padding: 1rem;
    }
    #menu-menu-1 li {
        display: block;
        margin: 0.5rem 0;
    }
    #menu-menu-1 li a {
        text-decoration: none;
        display: block;
        padding: 0.5rem 0;
    }
}

/* Dark overlay behind the menu when it's open */
.navbar-collapse.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hamburger button styling */
.navbar-toggler {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 4px;
    border:none;
    background-color: transparent;
    cursor: pointer;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar a {
    color: black;
    text-decoration: none;
    margin-right: 15px;
    text-transform: uppercase;
}
.navbar a:hover {
    text-decoration: underline;
}

#main-menu ul{
    margin:auto;
}
.container-header{
    max-width: 1250px;
    margin: 0 auto;
}
.header-icon svg{
    margin-top: -20px;
}

.header-icon path:not([visibility="hidden"]) {
    transition: fill 0.3s ease;
}

.header-icon:hover path:not([visibility="hidden"]) {
    fill: var(--icon-hover-color);
}

/* CONTENT */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    background-color: white;
}
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
}


/* Container that will have fade effect */
.container:not(.no-fade) {
    opacity: 0;
}

/* Fade in animation for containers */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nevezesi-info,.static-information,.custom-information,.nyilatkozat{
    word-wrap: break-word;
}
.container:not(.no-fade).fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Hide animation before JS loads */
.no-js .container {
    opacity: 1;
}

/* Footer */

.container-footer{
    background-color: white;
    padding-top:40px;
}
#menu-lablec {
    list-style: none;
    padding:10px;
}
#menu-lablec li a{
    text-decoration: none;
    padding:10px;
    color:black;
}
/* HOME PAGE */

.home-bg{
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Home background animation */
@keyframes homeBgReveal {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.home-bg {
    opacity: 0;
    animation: homeBgReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
    will-change: transform, opacity;
}

/* Hide animation before JS loads */
.no-js .home-bg {
    opacity: 1;
    animation: none;
}

.logo img{
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

/* Category Page */

.pph-media-categories ul {
    list-style-type: none;
    padding-left: 20px;
}

.pph-media-categories ul li {
    margin: 10px 0;
}

.pph-media-categories .category-level-1 {
    font-weight: normal;
}

.pph-media-categories .category-level-2 {
    font-style: normal;
}
.pph-media-categories .category-level-2 h3{
    font-size:22px;
}
.pph-media-categories .category-level-2 .dropdown-icon{
    margin-top: 5px;
}

.pph-media-categories .category-level-3 {
    padding-left: 20px;
}

.category-dropdown .main-category {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.category-dropdown .main-category:hover {
    background-color: #e9e9e9;
}
.category-dropdown .dropdown-icon {
    margin-right: 10px;
    font-size: 12px;
    transition: transform 0.3s ease;
}
.category-dropdown .main-category.open {
    background-color: #e0e0e0;
}
.category-dropdown .subcategories {
    margin-left: 10px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
}
.two-column-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.two-column-categories > li {
    width: calc(50% - 10px);
    box-sizing: border-box;
}
.user-data-form-container input.form-control,.user-data-form-container select.form-control,.user-data-form-container textarea.form-control,.user-data-form-container .form-select {
    color: black !important;
    border-radius: 0px !important;
    border: 1px solid #000 !important;
    height: 60px !important;
}
@media (max-width: 768px) {
    .two-column-categories > li {
        width: 100%;
    }
}

/* Submissions */

.submissioner-information{
    font-size:25px;
    font-weight:bold;
}
.static-information-block{
    padding-bottom:30px;
}
#category-container{
    padding-top:20px;
    padding-bottom:40px;
}
#save-draft {
    background-color: rgb(20, 149, 30);
    padding: 15px 20px 3px 20px;
    margin: 20px;
    text-align: center;
    transition: 0.5s;
    cursor: pointer;
    border: none;
    border-radius: 50px;
}
#save-draft i{
    color: #fff;
    font-size:40px;
}
.floating-buttons{
    position: fixed;
    left: 10px;
    bottom: 0px;
    z-index: 1000;
    display:flex;
    flex-direction: row;
    gap: 10px;
}
#save-draft:hover{
    color: #fff;
    transform: scale(1.2);
}
#save-draft:focus{
    outline: none;
}
.question {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: left;
    margin-left: -20px;
}

.question i {
    color: white;
    font-size:40px;
    background-color: rgb(30, 30, 30);
    display: flex;
    border-radius: 50%;
    cursor: help;
} 
.tooltip-save .tooltiptext-save {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: -5px;
    left: 105%;
  }
  
  .tooltip-save:hover .tooltiptext-save {
    visibility: visible;
  }

#static-field-form input.invalid,#nevezes-form input.invalid,select.categories.invalid,.invalid{
    border:2px solid red !important;
}
small.field-info {
    float: right;
    max-width: 70%;
    text-align: end;
    color: grey;
}
.nyilatkozat{
    padding-top:20px;
}
.nyilatkozat p{
    font-size:11px;
}
.submis-title{
    padding-bottom:5px;
    padding-top:10px;
}
.char-counter{
    font-size:12px;
}
.files-upload::file-selector-button {
    font-weight: bold;
    background-color: #fff;
    padding: 0.2em;
    border: thin solid grey;
    border-radius: 3px;
}
#file-upload{
    padding-top:40px;
    padding-bottom:40px;
}
.uploaded-files-list{
    list-style: none;
    display: flex;
    justify-content:flex-start;
    gap: 40px;
    flex-flow: row wrap;
    padding-bottom: 40px;
}
.uploaded-files-list li button{
    display: block;
    width: 100%;
}
.uploaded-files-list li{
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: inline-table;
}
.uploaded-files-list li img{
    object-fit: cover;
}
.uploaded-files-list li a{
    display: block;
    max-width: 200px;
    height: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.checkbox-group .error-text{
    color: red;
    font-size: 15px;
    position: absolute;
    margin-left: 10px;
}
.checkbox-group label{
    margin-left:10px;
}

button#submit-final {
    margin:auto;
    display:block;
    padding: 10px;
    font-size:20px;
    background-color: white;
}
button#submit-final:hover{
    -webkit-box-shadow: 2px 11px 39px -22px rgba(0,0,0,0.75);
    -moz-box-shadow: 2px 11px 39px -22px rgba(0,0,0,0.75);
    box-shadow: 2px 11px 39px -22px rgba(0,0,0,0.75);
    scale: 1.03;
}
#static-field-form input,#entry_fee_select,#nevezes-form input,select.categories{
    color:black !important;
    border-radius: 0px !important;
    border: 1px solid #000 !important;
    height: 60px !important;
}
#static-field-form label,#entry_fee_select,#nevezes-form label,select.categories{
    font-size: 18px !important;
}
#submit-final{
    width: 100%;
    height: 60px;
    background-color: #000 !important;
    color: #fff !important; 
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    text-transform: uppercase;
    display: block;
    padding: 18px;
}
#upload-file,.delete-file{
    background-color: #000 !important;
    color: #fff !important; 
    font-weight: 700;
    font-size: 18px;
    line-height: 5px;
    text-align: center;
    text-transform: uppercase;
    display: inline-block;
    padding: 15px;
}

.main-information p{
    font-size:18px;
}
.main-information p strong{
    color:#4a4a4a;
}

/* User Form */

#loginform input[type="text"], #loginform input[type="password"]{
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15sease-in-out, box-shadow .15sease-in-out;
}
.login-error{
    color:red;
}
/* LOST PASSWORD */
.lost-password {
    text-align: right;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
}
.lost-password a {
    text-decoration: none;
    font-size: 14px;
}
.lost-password a:hover {
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Page, Registration Page, Account Page, Account Edit */
.custom-login-page,.custom-registration-page,.custom-account-page {
    max-width: 580px;
    min-height:640px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    box-shadow: 0px 0px 12px 0px #00000040;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
}
.edit-page{
    min-height: auto !important;
    height: auto;
}
.custom-login-page input,.custom-registration-page input,.custom-account-page input,.account-edit input,.custom-lost-password input,.custom-reset-password input{
   color:black !important;
   border-radius: 0px !important;
   border: 1px solid #000 !important;
   height: 60px !important;
}
.custom-account-page .data strong{
 color:#4d4d4d;
}
.custom-login-page label,.custom-registration-page label,.custom-lost-password label,.edit-page label,.custom-account-page .data,.custom-reset-password label{
    padding-bottom:10px;
    font-size: 18px;
}
.custom-login-page h1,.custom-login-page-registration h3,.custom-registration-page h1,.custom-lost-password h1,.custom-account-page h1,.account-edit h1,.custom-reset-password h1{
    text-transform: uppercase;
    padding-bottom:10px;
    padding-top:5%;
}
.custom-login-page .button,.custom-login-page-registration .button,.custom-registration-page .button,.custom-lost-password .button,.edit-page .button,.custom-account-page .button,.custom-reset-password .button{
    width: 100%;
    height: 60px;
    background-color: #000 !important;
    color: #fff !important; 
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    text-transform: uppercase;
    display: block;
    padding: 18px;
}
.custom-login-page .lost-password{
    text-align:left;
    padding-top:50px;
}
.custom-login-page .login-remember label{
    padding:20px 0px !important;
}
.custom-login-page #pph_remember{
    height:auto !important;
}
.custom-login-page .lost-password a{
    font-weight: 600;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0%;
    vertical-align: middle;
}
.custom-login-page-registration,.custom-lost-password,.custom-reset-password{
    max-width: 580px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
    box-shadow: 0px 0px 12px 0px #00000040;
}
.custom-registration-page a.button.button-grey,.custom-lost-password a.button.button-grey,.edit-page .button.button-grey,.custom-account-page .button.button-grey{
    background-color: #C0C0C0 !important;
    color:black !important;
    border:none !important;
}
.custom-account-page .welcome{
    font-size: 22px;
    line-height: 30px;
    letter-spacing: 0%;
    vertical-align: middle;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
    font-size: 18px;
    padding-bottom: 0px;
}

.alert-info {
    background-color: #e8f4fd;
    border: 1px solid #cce5fb;
    color: #004085;
}
.jury-president{
    font-size:22px;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category */
.selected-categories {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}
.selected-categories h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
.selected-categories ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}
.selected-categories li {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.delete-category {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
    margin-left: 10px;
}
.delete-category:hover {
    color: #ff0000;
}
.categories option:disabled {
    color: #999;
    font-style: italic;
}

/* Sponsor */

.sponsor-images-display {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.sponsor-section h2{
    text-align: center;
}
.sponsor-images-display .sponsor-image img{
    width: 250px;
}
.sponsor-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; 
}
/* .sponsor {
    min-height: 260px;
} */

.sponsor-section p {
    text-align: center;
  }
  
/* Contact */

.contact-text{
    display: block;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin:0 auto;
    text-align: center;

}
.contact-section h2{
    text-align: center;
}

/* Deadline */

.deadline-data{
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 25px 20px
}
.deadline-data{
    word-wrap: break-word;
}



