

body {
    margin: 0;
    font-family: Lexend;
    overflow-x: hidden;
}

.centerizer {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}

input {
    font-family: Lexend;
}

select {
    font-family: Lexend;
}

.upper-hero {
    position: sticky;
    z-index: 20;
    height: 10vh;
    background-color: #e9e9e9;
    display: grid;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: stretch;
    grid-auto-flow: column;
}

.upper-hero .logo {
    left: 15%;
    position: static;
    margin-right: 6vh;
}

.upper-hero .logo img {
    height: 10vh;
    mix-blend-mode: multiply;
}

.search-bar {
    display: flex;
    padding: 0;
    background-color: red;
    align-items: center;
}

form.search-bar input[type="text"] {
    width: 20rem;
    border-width: 2px;
    border-color: red;
    border-style: solid;
    padding: 0.4rem 0.8rem;
}
form.search-bar input[type="submit"] {
    padding: 0.4rem;
    margin: 0 0 0 0.4rem;
    background-color: red;
    border: none;
    color: white;
    background-image: url('../uploads/search-icon.svg');
    background-repeat: no-repeat;
    background-size: 1rem;
    background-position: center;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}
form.search-bar input[type=submit]:hover {
    background-color: rgb(228, 0, 0);
    border-width: 0;
    color: white;
    cursor: pointer;
}

form.search-bar input[type=text]:focus, 
form.search-bar input[type=text]:focus-visible {
    border-color: blue;
    border-radius: 0;
    margin: 0;
}

.upper-hero .contact-info {
    right: 15%;
    position:static;
    margin: 0;
    margin-left: 6vh;
}

.upper-hero .contact-info h5 ,
.upper-hero .contact-info h6 {
    padding: 0;
    margin: 0;
}





/* Alap navigációs stílusok */
.upper-nav, .main-nav {
    background-color: #f4f4f4;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    z-index: 20;
}

/* Hamburger gomb alapértelmezett elrejtése (asztali nézetben) */
.menu-toggle {
    display: none;
}

/* Navigációs linkek stílusa */
.upper-nav ul, .main-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    color: #3f3f3f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding: 10px 15px;
    margin: 0 10px;
    transition: background-color 0.1s ease;
}

.nav-links li a:hover {
    background-color: #b4b4b4;
}

/* Alsó navigációs menü */
.main-nav {
    background-color: #202020;
    margin-top: 50px;
    margin-bottom: 0.5vh;
    z-index: 20;
}

.main-nav ul li a {
    color: #bebebe;
    font-size: 12px;
    
}

.main-nav ul li a:hover {
    background-color: #686868;
}



/* Mobil nézet */
@media (max-width: 768px) {
    /* Hamburger gomb megjelenítése csak mobil nézetben */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #ff0000;
    }

    /* Menük elrejtése alapértelmezés szerint */
    .upper-nav .upper-nav-links, .main-nav .main-nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        background-color: #383838;
        justify-content: flex-start;
        z-index: 19;
    }

    /* Megjelenítés a .show osztállyal */
    .upper-nav .upper-nav-links.show, .main-nav .main-nav-links.show {
        display: flex;
    }

    .upper-nav .nav-links li, .main-nav .nav-links li {
        text-align: justify;
        width: 100%;
        padding: 0.5rem 0;
        color: white!important;
    }
    ul.nav-links.upper-nav-links.show li{
        background-color: rgb(196, 196, 196);
    }
    ul.nav-links.upper-nav-links.show {
        top: 85px;
    }

    .more-products-card {
        width: auto;
    }
}












.container {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    width: 920px;
    justify-self: center;
    position:relative;
    margin-top: 85px;
}

.container a:hover {
    box-shadow: 0px 0px 0px 5px red inset;
}
.container a h4:hover {
    color: red;
}

td a:hover {
    box-shadow: none !important;
    color: red;
}

.container .main-image:hover {
    box-shadow: 0px 0px 0px 5px red inset;
}
.container .main-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    height: 50vh;
}

.container a {
    text-decoration: none;
}

.container a .main-image p {
    top: 46vh;
    position: relative;
    display: flex;
    place-self: center;
    color: red;
    font-size: 20px;
    text-shadow: 0px 4px 8px rgba(0,0,0,0.5);
}

.container .i2-container {
    height: 15vh;
}

.padding {
    height: 1vh;
}

.container .i2-container .banner-right {
    width: 50%;
    background-size: cover;
    background-position: center;
    height: 15vh;
    float: right;
}

.container .i2-container .banner-left {
    width: 50%;
    background-size: cover;
    background-position: center;
    height: 15vh;
    float: left;
}

.container .i2-container a.banner-left p,
.container .i2-container a.banner-right p {
    top: 9.5vh;
    position: relative;
    display: flex;
    place-self: center;
    color: red;
    font-size: 18px;
    text-shadow: 0px 4px 8px rgba(0,0,0,0.5);
}

.container .i4-container {
    width: 100%;
    height: 15vh;
    display: flex;
}

.container .i4-container a {
    min-width: 192px;
    width: 25%;
    background-size: cover;
    background-position: center;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
}

.container .i5-container {
    width: 100%;
    height: 15vh;
    display: flex;
}

.container .i5-container a {
    width: 20%;
    background-size: cover;
    background-position: center;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
}

.container .i4-card-container {
    justify-content: space-evenly;
    width: 100%;
    height: 25vh;
    display: flex;
    padding-bottom: 2vh;
    align-items: flex-start;
    flex-direction: row;
    align-content: flex-start;
    justify-content: center;
}

.container .i4-card-container a {
    min-width: 20%;
    max-width: 23.85%;
    width: -webkit-fill-available;
    background-size: cover;
    background-position: center;
    height: 15vh;
    padding: 0.5vh;
    text-decoration: none;
}

.container .i4-card-container h4 {
    padding-top: 15vh;
    font-weight: 400;
    font-size: 12px;
    text-decoration: solid;
    color: black;
    text-align: justify;
    letter-spacing: 0px;
    overflow-wrap: break-word;
    tab-size: 1;
    word-spacing: 0px;
}

.container .i5-card-container {
    justify-content: space-evenly;
    width: 100%;
    height: 25vh;
    display: flex;
    padding-bottom: 2vh;
    align-items: flex-start;
    flex-direction: row;
    align-content: flex-start;
    justify-content: center;
}

.container .i5-card-container a {
    min-width: 14.5%;
    max-width: 18.9%;
    width: -webkit-fill-available;
    background-size: cover;
    background-position: center;
    height: 15vh;
    padding: 0.5vh;
    text-decoration: none;
}

.container .i5-card-container h4 {
    padding-top: 15vh;
    font-weight: 400;
    font-size: 12px;
    text-decoration: solid;
    color: black;
    text-align: justify;
    letter-spacing: 0px;
    overflow-wrap: break-word;
    tab-size: 1;
    word-spacing: 0px;
}

.container .titlebar {
    width: 100%;
    background-color: red;
    color: white;
    display: flex;
    height: 3vh;
}

.container .titlebar h3 {
    padding-left: 1vh;
    margin: 0;
    font-weight: 300;
    font-size: 14px;
    align-self: center;
}


.login-form-container {
    color: red;
    width: 400px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    height: 30vh;
}

.login-form-container form {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
}

.login-form-container form input[type="text"],
.login-form-container form input[type="password"] {
    font-family: Lexend;
    width: 100%;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.login-form-container form input[type="submit"] {
    font-family: Lexend;
    width: 100%;
    padding: 10px;
    background-color: red;
    border-radius: 6px;
    border: 1px solid #ffffff;
    color: white;
    transition: 0.1s;
    
}

.login-form-container form input[type="submit"]:hover {
    color:red;
    border: 1px solid red;
    background-color: white;
    cursor: pointer
}

.form-grabber {
    justify-items: center;
    display: block;
    padding-top: 10vh;
}

.login-form-container .notification.error {
    background-color: #ff6969;
    color: rgb(255, 213, 213);
    margin-bottom: 10px;
    border-radius: 10px;
    width: 100%;
} 
.login-form-container .notification.error h4 {
    padding: 6px;
    font-size: 14px;
}



.admin-navigation {
    width: 100%;
    background-color: red;
    top: 0;
    position: fixed;
    z-index: 20;
}

.admin-navigation ul {
    display: flex;
    justify-content: right;
    margin: 0;
    padding: 0;
    list-style-type: none;
    
}

.admin-navigation ul li {
    margin: 0;
}

.admin-navigation ul li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    transition: background-color 0.1s ease;
}

.admin-navigation ul li a:hover {
    background-color: rgb(180, 0, 0);
}

.admin-container {
    margin: 20px 10px;
}

.container-frame {
    padding: 25px;
    height: 100%;
    justify-self: center;
    border-radius: 6px;
    border-color: rgb(219, 219, 219);
    border-style: solid;
    border-width: 1px;
}

.adminpage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.adminpage-table th,
.adminpage-table td{
    padding: 10px;
    text-align: left;
    border: 1px solid rgb(219, 219, 219);
}

body.edit-image .container-frame {
    background-color: red;

}

.admin-container form {
    justify-self: center;
}

.admin-container form input {
    margin-right: 2vh;
    border-radius: 14px;
    border-width: 1px;
    padding: 5px 10px;
    border-color:rgb(219, 219, 219);
    background-color: white;
    border-style: solid;
}
.admin-container form select{
    margin: 1vh;
    
    border-radius: 14px;
    border-width: 1px;
    padding: 5px 10px;
    border-color:rgb(219, 219, 219);
    background-color: white;
    border-style: solid;
}

.admin-container form input:hover {
    border-color:rgb(143, 143, 143);
    background-color: rgb(238, 238, 238);
}
.admin-container form select:hover {
    border-color:rgb(143, 143, 143);
    background-color: rgb(238, 238, 238);
}

body.index-editor-tr .save-panel form{
    align-self: center;
    justify-self: center;
    display: flex;
}

.save-button {
    background-color: rgb(205, 255, 205);
    border-radius: 12px;
    border-style:solid;
    border-color: rgb(95, 255, 95);
    border-width: 1px;
    padding: 4px 8px;
}

.save-button:hover {
    background-color: rgb(95, 255, 95);
    border-color: rgb(205, 255, 205);
}

.delete-button {
    background-color: rgb(255, 165, 165);
    border-radius: 12px;
    border-style:solid;
    border-color: rgb(255, 67, 67);
    border-width: 1px;
    padding: 4px 8px;
}

.delete-button:hover {
    background-color: rgb(255, 67, 67);
    border-color: rgb(255, 165, 165);
}

.editor-form input[type="text"],
.editor-form input[type="number"] {
    border-color: rgb(158, 158, 158);
    border-width: 1px;
    border-radius: 14px;
    padding: 2px 4px;
    border-style: solid;
    margin-right: 1vh;
}

.editor-form input[type="number"] {
    width: 5vh;
}

.list-images img {
    width: 15vh;
    max-height: 20vh;
    align-self: center;
}

.list-images {
    padding: 25px;
    border-radius: 6px;
    border-color: rgb(219, 219, 219);
    border-style: solid;
    border-width: 1px;
    width: 25%;
    display: block;
    height: 30vh;
}
 
.product-table-holder {
    overflow-x: auto;
}

.product-table {
    border-collapse: collapse;
    overflow: scroll;
    width: -webkit-fill-available;
    width: -moz-available;
}

.product-table th, 
.product-table td {
    border-width: 1px;
    border-color: red;
    border-style: solid;
    padding: 10px;
}

.product-editor {
    justify-content: center;
    text-align: -webkit-center;
    padding-top: 2vh;
    display: grid;
    justify-items: center;
}

.product-editor input {
    min-width: 60vh;
    padding: 5px 10px;
    margin-bottom: 1.5vh;
    border-style: solid;
    border-radius: 12px;
    border-width: 1px;
    border-color:#686868;

}

.product-editor select {
    min-width: 62vh;
    padding: 5px 10px;
    margin-bottom: 1.5vh;
    border-style: solid;
    border-radius: 12px;
    border-width: 1px;
    border-color:#686868;

}

.product-editor input[type="submit"] {
    width: 20%;
    float: right;
}

.edit-button {
    background-color: rgb(178, 165, 255);
    border-radius: 12px;
    border-style:solid;
    border-color: rgb(80, 67, 255);
    border-width: 1px;
    padding: 4px 8px;
    color: white;
}

.edit-button:hover {
    background-color: rgb(102, 67, 255);
    border-color: rgb(181, 165, 255);
    color: rgb(225, 214, 255);
    cursor: pointer;
}

.slider-wrapper {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    
}

.slider {
    display: flex;
    aspect-ratio: 16 / 9;
    overflow-x: auto;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
}

.slider img {
    flex: 1 1 100%;
    scroll-snap-align: start;
    object-fit: contain;
}

.nav-button-left,
.nav-button-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #ffffff;
    background-color: #202020;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.05s ease;
}

.nav-button-left a,
.nav-button-right a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.nav-button-left a:hover,
.nav-button-right a:hover {
    box-shadow: none;
}

.nav-button-left {
    left: 0.5rem;
}

.nav-button-right {
    right: 0.5rem;
}

.nav-button-left:hover,
.nav-button-right:hover {
    background-color: rgb(255, 0, 0);
}

.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #202020;
    transition: opacity ease 250ms;
}


.slider-nav a.active {
    background-color: red;  
}

.image-gallery {
    margin-bottom: 2rem;
}

.product-data {
    padding: 2rem;
    padding-top: 0.5rem;
    color:#202020;
}

.download-datapage {
    background-color: rgb(255, 0, 0);
    padding: 12px;
    transition: ease 0.1s;
    color:rgb(255, 228, 228);
    border: none;
    text-decoration: none;
    box-shadow: none;
    display: block;
}

.download-datapage:hover {
    background-color: rgb(192, 0, 0);
    cursor: pointer;
    box-shadow: none!important;
}

.upper-banner {
    display:none;
}

.product-card {
    padding: 1rem;
    width: 95%;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    place-self: center;
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    align-items: flex-end;
    color: black;
    margin-bottom: 1rem;
}

.product-card-image {
    width: 200px;
    height: 200px;
    background: center;
    background-size: contain;
    background-repeat: no-repeat;
    
}

a.no-hover-anim:hover {
    box-shadow: none!important;
}

.search-container {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    float: right;
    margin: 16px 0;
}

.more-products {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: baseline;
    flex-direction: row;
    width: -moz-available;
    
}
.more-products-img {
    width: -webkit-fill-available;
    height: 150px;
    background: center;
    background-size: contain;
    background-repeat: no-repeat;
    justify-self: center;
    margin-top: 5px;
}

.more-products-card {
    border-radius: 1px;
    border-color: #ff0000 !important;
    border: solid;
    width: 30%;
    margin-bottom: 1rem;
    height: 22.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
a.more-products-card p {
    color: black;
}
a.more-products-card:hover {
    box-shadow: 0px 0px 0px 5px red inset;
}

.footer {
    background: #202020;
    color: #686868;
    font-weight: 300;
    width: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-items: stretch;
    justify-content: space-evenly;
    padding: 2rem 0;
    margin-top: 2rem;
    bottom: 0;
    position: relative;
}

.footer p {
    margin: 4px;
}

.footer h5 {
    margin: 8px;
}

.switch-category {
    display: flex
}

.switch-category select,
.switch-category button {
    border-style: solid;
    padding: 3px;
    border-width: 2px;
    border-color: red;
    cursor: pointer;
}

.switch-category select:focus-visible,
.switch-category select:focus {
    border-style: solid !important;
    padding: 3px !important;
    border-width: 2px !important;
    border-color: red !important;
}

.switch-category button {
    padding: 5px;
}

.contact-panel {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
}

.contact-card {
    margin: 0 6.5vh;
    padding: 1vh;
    display: inline-flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: space-between;
    padding: 1rem;  
}

.contact-panel img {
    height: 5rem;
}

.contact-panel h1 {
    color: red;
    margin: 0.5rem;
}

.contact-panel h3 {
    margin: 0.5rem;
}

@media screen and (max-width: 1000px) {
    .upper-hero .contact-info {
        margin: 2vh 2vh;
    }
    .upper-hero .logo {
        margin-right: 2vh;
    }
    .upper-hero {
        justify-items: center;
        height: 23.5vh;
        grid-auto-flow: dense;
    }
    .nav-container {
        width: 100%;
    }
    .nav-container .upper-nav,
    .nav-container .space-between-nav,
    .nav-container .main-nav {
        width: 100%;
        position: absolute;
        justify-content: space-between;
    }
    
    .container {
        position: relative;
        width: 95%
    }

    .upper-hero .logo img {
        margin-top: 2.5vh;
        height: 12.5vh;
    }

    html, body {overflow-x: hidden; /* Csak az oldalirányú görgetést tiltja */
        overflow-y: auto; /* Lehetővé teszi a függőleges görgetést */
        height: auto; /* Győződj meg róla, hogy a body és html magassága automatikusan igazodik */
    }

    .container .i4-container a {
        min-width: fit-content;
        width: 25%;
        height: 18vh;
    }

    .container .titlebar {
        margin-top: 17px;
    }

    
}

@media screen and (max-width: 425px) {
    .upper-hero .contact-info {
        display: none;
    }
    .upper-hero .logo {
        margin: 0
    }
    .upper-hero {
        justify-items: center;
        height: 20vh;
        grid-auto-flow: dense;
        justify-content: space-evenly;
    }
    .nav-container {
        width: 100%;
    }
    .nav-container .upper-nav,
    .nav-container .space-between-nav,
    .nav-container .main-nav {
        width: 100%;
        position: absolute;
    }

    .container {
        position: relative;
    }

    .upper-hero .logo img {
        margin-top: 0vh;
        height: 10vh;
    }
    .search-bar {
        display: flex;
    }
    form.search-bar input[type="text"] {
        font-size:20px;
    }
    .upper-banner {
        display:flex;
        background-color:red;
        font-size: 14px;
        color: white;
        justify-content: center;
    }
    .upper-banner h4 {
        margin: 1vh 0;
    }

    .container .i5-card-container {
        height: 25vh;
    }

    .container .i5-card-container a {
        height: 10vh;
    }
    .container .i5-card-container h4 {
        padding-top: 10vh;
    }
    .container .i4-card-container {
        height: 30vh;
    }
    .footer {
        font-size: 14px;
        display: inline-grid;
    }

    .more-products-card {
        width: 45%;
    }
    .more-products-card p {
        font-size: 14px;
    }
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #ff0000 #e9e9e9;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 12px;
  }

  *::-webkit-scrollbar-track {
    background: #e9e9e9;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #ff0000;
  }