/* Universal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: rgba(242, 180, 34, 0.66);
    color: #222222;
}

/* Typography */
h1 {
    color: #911410;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
}

/* Buttons */
button {
    padding: 12px;
    background-color: #911410;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e74c3c;
}

/* Forms and Inputs */
form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    background-color: #e0e0e0;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #911410;
    outline: none;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Layout and Structure */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 0 20px;
}

.message {
    margin-top: 15px;
    padding: 10px;
    background-color: #e0e0e0;
    color: #911410;
    border: 1px solid #911410;
    border-radius: 5px;
    display: none;
}

/* Topbar and Navigation */
.topbar {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f2b422;
    padding: 5px 20px;
    z-index: 1000;
}

.logo img {
    width: 100px;
    height: auto;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons button {
    padding: 10px 15px;
    background-color: #911410;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.auth-buttons button:hover {
    background-color: #e74c3c;
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #911410;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-icon:hover {
    background-color: #e74c3c;
}

.cart-icon img {
    width: 35px;
    height: auto;
}

.cart-icon span {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.burger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 35px;
    margin: 30px;
}

.bar {
    height: 5px;
    width: 100%;
    background-color: #911410;
    transition: 0.3s;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #f2b422;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
}

.sidebar a {
    padding: 15px;
    text-decoration: none;
    font-size: 30px;
    color: white;
    display: block;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #e74c3c;
    color: white;
}

.sidebar .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

.sidebar.active {
    left: 0;
}

/* Modals */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.modal-content {
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: #911410;
    margin-bottom: 15px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    background-color: #e0e0e0;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background-color: #911410;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #e74c3c;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #911410;
    padding: 10px;
    transition: transform 0.2s ease;
}

.close:hover {
    transform: scale(1.2);
    color: #e74c3c;
}

/* Pizza Modal Specific */
#pizzaModal {
    position: fixed;
    z-index: 10001;
    background-color: #fff;
    padding: 20px;
    border-radius: 16px;
    width: 60%;
    max-height: 80vh;
    overflow: hidden;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

#pizzaModal.visible {
    opacity: 1;
    visibility: visible;
}

#pizzaModal h2 {
    color: #911410;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

#pizzaModal h3 {
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
}

#pizzaModal .modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background-color: #e0e0e0;
    font-size: 16px;
}

#pizzaModal .modal-content label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    line-height: 1;
}

#pizzaModal .modal-content div {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

#pizzaModal .modal-content div label {
    width: 80%;
    display: flex;
    align-items: center;
}

#pizzaModal .modal-content input[type="checkbox"] {
    width: auto;
    transform: scale(1.4);
    accent-color: #d62828;
    margin: 0;
    position: relative;
    top: 0;
}

#pizzaModal .modal-content textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#pizzaModal .modal-content button {
    padding: 12px;
    width: 100%;
    background-color: #911410;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

#pizzaModal .modal-content button:hover {
    background-color: #e74c3c;
}

#pizzaModal .sticky-button-container {
    position: sticky;
    bottom: 0;
    background-color: white;
    padding: 20px 15px;
    margin: 20px -15px -15px;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#pizzaModal .modal-content {
    padding-bottom: 100px;
}

#pizzaModal .sticky-button-container::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, white 60%, rgba(255,255,255,0.9) 80%, rgba(255,255,255,0.6));
    z-index: -1;
}

#pizzaModal .sticky-button-container::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: white;
    z-index: -1;
}

.size-dropdown {
    width: 200px;
    padding: 12px 20px;
    border-radius: 12px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    font-size: 16px;
    color: #333;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.size-dropdown:hover {
    background-color: #fff;
    border-color: #ff6600;
}

.size-dropdown:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
}

.size-dropdown::after {
    content: ' ▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Main Content Sections */
.mainLogo {
    width: 60vw;
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
}

.nav-buttons button {
    font-size: 1.2em;
    padding: 15px 30px;
    margin: 10px;
    border: none;
    background-color: #911410;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
    background-color: #f2b422;
}

.banner {
    width: 100vw;
    margin: 0;
    padding: 0;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 12px 20px;
    border: 2px solid transparent;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.filter-btn.active {
    background-color: #911410;
    color: white;
    border: 2px solid #911410;
    transform: scale(1.1);
    font-weight: 700;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
}

.pizza-menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding: 20px;
}

.pizza-item {
    background: #f2b422;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.2s ease-in-out;
    width: 280px;
}

.pizza-item:hover {
    transform: scale(1.05);
}

.pizza-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.pizza-item h2 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.pizza-item p {
    color: #000000;
    font-size: 1em;
    margin-bottom: 15px;
}

.pizza-item .price {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.pizza-item .order-btn {
    background-color: #911410;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.pizza-item .order-btn:hover {
    background-color: #e74c3c;
}

.menu-section {
    background-color: transparent;
    padding: 20px;
    margin: 20px auto;
    margin-top: 50vh;
    width: 80%;
    box-sizing: border-box;
}

.menu-section h2 {
    text-align: center;
    color: #911410;
    margin-bottom: 15px;
    background-color: #f2b422;
    width: 100%;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    padding: 10px;
    font-size: 1.1em;
    color: #911410;
    background-color: transparent;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-item strong {
    font-size: 1.25em;
    font-weight: bold;
}

.menu-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.menu-item ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.highlight {
    color: #911410;
    text-decoration: underline;
    font-weight: bolder;
}

.prices {
    display: inline-block;
    font-size: 1.1em;
    color: #911410;
    margin-top: 5px;
}

.allergen-section {
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 900px;
    text-align: left;
}

.allergen-section h2 {
    color: #911410;
    margin-bottom: 15px;
}

.allergen-section p {
    color: #911410;
    margin-bottom: 8px;
    font-size: 1.1em;
    transition: background-color 0.3s;
    text-align: left;
}

.middle-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 100px auto;
    width: 80%;
    height: 600px;
}

.image-stack {
    position: relative;
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-stack img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, opacity 0.5s ease;
    border-radius: 15px;
    opacity: 0.85;
}

.image-stack img.visible {
    transform: rotateY(0deg);
    z-index: 1;
    opacity: 1;
}

.image-stack img.hidden {
    transform: rotateY(-15deg) translateX(30px);
    z-index: 0;
    opacity: 0.6;
}

.image-stack:hover img {
    transform: rotateY(10deg);
}

.text-container {
    width: 35%;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: #444;
    text-align: left;
    line-height: 1.7;
    background-color: transparent;
}

.finn-oss {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 50px auto;
    width: 80%;
    flex-wrap: wrap;
}

.finn-oss img {
    width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.finn-oss-text {
    max-width: 300px;
    text-align: left;
}

.finn-oss-text h2 {
    font-size: 30px;
    color: #911410;
    margin-bottom: 10px;
    text-align: center;
}

.finn-oss-text p {
    font-size: 24px;
    color: #333;
    line-height: 1.5;
}

.opening-times-mini {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.opening-times-mini::before {
    content: "🕒";
    font-size: 1.1rem;
    margin-right: 4px;
}

.opening-times-mini a {
    text-decoration: none;
    color: #911410;
}

@media (max-width: 359px) {
    .opening-times-mini {
        font-size: 0.60rem;
    }
    .opening-times-mini a {
        font-size: 0.60rem;
    }
}

.opening-times {
    background-color: #f2b422;
    padding: 50px 60px;
    border-radius: 8px;
    font-family: sans-serif;
    max-width: 500px;
    font-weight: bold;
    margin-bottom: 10px;
}

.opening-times h3 {
    margin-top: 0;
    color: #911410;
}

.opening-times ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-times li {
    margin-bottom: 5px;
}

#map {
    position: relative;
    width: 80%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-bottom: 4rem;
}

#map h2 {
    text-align: center;
    color: #911410;
    margin-bottom: auto;
    background-color: #f2b422;
    width: 100%;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: #141414;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .mainLogo {
        margin-top: 10vh;
        width: 80vw;
        max-width: 400px;
    }

    .nav-buttons button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .pizza-menu {
        flex-direction: row;
    }

    .pizza-item {
        width: 48%;
    }

    .menu-item {
        font-size: 1.2em;
    }

    .menu-section {
        width: 90%;
    }

    .allergen-section {
        width: 90%;
    }

    #pizzaModal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        position: fixed;
        z-index: 10001;
        overflow-y: auto;
    }

    #pizzaModal.visible {
        transform: translateY(0);
    }

    .modal-content {
        height: 100%;
        overflow-y: auto;
        padding: 10px;
        width: 90vw;
    }

    #pizzaModal .modal-content div {
        display: block;
    }

    #pizzaModal .modal-content div label {
        width: 100%;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    #pizzaModal .modal-content input[type="checkbox"] {
        margin-right: 10px;
        order: -1;
    }

    #pizzaModal .sticky-button-container {
        padding: 15px 10px;
        margin: 15px -10px -10px;
    }

    #pizzaModal .modal-content {
        padding-bottom: 80px;
    }

    #map {
        width: 100%;
        height: 40vh;

    }
    footer h2{
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .mainLogo {
        width: 80vw;
        max-width: 300px;
    }

    .nav-buttons button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
    footer h2{
        font-size: 16px;
    }
}
@media (max-width: 359px) {
    footer{
        margin-top: 10vh;
    }
    footer h2{
        font-size: 12px;
    }
}

/* Login and Register Page Specific Styles */
body.login-register-page {
    background-image: url('../images/pizzaBackground.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.login-register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 100px;
}

.login-register-container h2 {
    color: #911410;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 700;
}

.login-register-container form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-register-container input[type="text"],
.login-register-container input[type="email"],
.login-register-container input[type="password"] {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    background-color: #f0f0f0;
    transition: border-color 0.3s ease;
}

.login-register-container input:focus {
    border-color: #911410;
    outline: none;
}

.login-register-container button {
    padding: 12px;
    background-color: #911410;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

.login-register-container button:hover {
    background-color: #e74c3c;
}

.register-section {
    display: none;
    flex-direction: column;
}

.register-section h2 {
    font-size: 2.2em;
    color: #911410;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.register-section input[type="text"],
.register-section input[type="email"],
.register-section input[type="password"] {
    width: 80%;
    max-width: 300px;
    margin: 0 auto 15px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    background-color: #f0f0f0;
    transition: border-color 0.3s ease;
    display: block;
}

.register-section input:focus {
    border-color: #911410;
    outline: none;
}

.register-section button {
    padding: 12px;
    background-color: #911410;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
    align-self: center;
}

.register-section button:hover {
    background-color: #e74c3c;
}

.login-register-container .form-switch {
    text-align: center;
    margin-top: 15px;
}

.login-register-container .form-switch a {
    color: #911410;
    text-decoration: none;
    font-weight: bold;
}

.login-register-container .form-switch a:hover {
    color: #e74c3c;
}

.back-to-home-top-left {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.home-logo {
    width: 200px;
    height: auto;
}

.back-to-home {
    margin-top: 20px;
    text-align: center;
}

.back-to-home a {
    font-size: 1.1em;
    color: #911410;
    text-decoration: none;
}

.back-to-home a:hover {
    text-decoration: underline;
}

.cartHeadline {
    margin-top: 100px;
}

/* Unused/Deprecated Styles */
/* --- UNUSED STYLES --- */
body.modal-open {
    overflow: hidden;
}

#logoutModal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 40%;
    left: 55%;
    z-index: 10000;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0);
}

#logoutModal .modal-content {
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#confirmLogoutBtn {
    background-color: #ff6600;
    color: white;
}

#cancelLogoutBtn {
    background-color: #ccc;
}

html {
    scroll-behavior: smooth;
}

#scrollToTopBtn {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 12px 20px;
    font-size: 20px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
        position: relative;
        top: 20px;
        right: 20px;
        z-index: 1101;
        flex-direction: column;
        justify-content: space-between;
        width: 45px;
        height: 36px;
        cursor: pointer;
    }

    .burger .bar {
        height: 5px;
        width: 100%;
        background-color: #911410;
        transition: 0.3s ease;
    }

    .burger.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(11px, 11px);
    }

    .burger.open .bar:nth-child(2) {
        opacity: 0;
    }

    .burger.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(11px, -11px);
    }

    .sidebar .close-btn {
        display: none;
    }

    .sidebar {
        width: 100vw;
        height: 100vh;
        left: -100vw;
        padding-top: 80px;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar a {
        font-size: 36px;
        text-align: center;
        padding: 20px 0;
    }
}



