/*

    Cupcake Project CSS File
    Made By Group D
    School Project

    ____________________________

    1rem ~ 16px
    rem is calculated instead of px being hardcoded.
    Use rem or else..............

    ____________________________

    DO NOT USE PX.
    DO NOT HARDCODE ANYTHING.

*/

/* ___________________________________________ */

/* Root Settings */

/* ___________________________________________ */

:root {

    /* Default */
    --background: #CAA4A4;

    /* Heart Button */
    --heart: #d11818;

    /* Footer */
    --footer-background: var(--background);

    /* Footer Nav */
    --footer-nav-background: #9c7e7e;

    /* Section 1 */
    --section-1-background: #BC4646;

    /* Section 2 */
    --section-2-background: #B36660;

    /* Profile & Admin Menu */
    --profile-background: #452929;
    --profile-sidemenu: #332929;
    --profile-sidemenu-border: #727272;
    --profile-sidemenu-buttons: var(--profile-background);
    --profile-sidemenu-buttons-text: white;
    --profile-button-hover: #331f1f;
    --profile-orderCard-background: rgba(0, 0, 0, 0.51);
    --profile-order-continue-btn: #00c00a;
    --profile-order-continue-btn-hover: #00a608;
    --profile-order-delete-btn: #a72828;
    --profile-order-delete-btn-hover: #882121;

    /* Inputs */
    --input-box: #D9D9D9;
    --input-placeholder: #5B5B5B;
    --input-user-input: #363636;
    --input-border: #7B7B7B;

    /* Navbar */
    --navbar-background: #D96363;
    --nav-stroke: rgb(253, 149, 149);
    --nav-text: #FFFFFF;
    --nav-text-hover: #b8b8b8;
    --nav-buttons: rgba(255, 255, 255, 0.24);
    --nav-border: #ACACAC;
    --nav-login-button: #d86565;
    --nav-login-button-text: #eeeeee;
    --nav-login-button-hover: #c25a5a;
    --nav-login-button-stroke: rgb(219, 219, 219);
    --navbar-li-background: rgba(255, 255, 255, 0.3);

    /* Blockquote */
    --blockquote-under-orange: #e4fd00;
    --blockquote-under-white: white;

    /* Colors */
    --cupcake-orange: orange;
    --cupcake-red: red;
    --cupcake-blue: blue;
    --cupcake-green: green;
    --cupcake-black: black;
    --cupcake-less-black: rgb(61, 61, 61);
    --cupcake-white: white;
    --cupcake-less-white: rgb(182, 182, 182);
    --cupcake-grey: rgb(95, 95, 95);

    /* :hover */
    --hover-exit: var(--cupcake-orange);

    /* Login & Register */
    --login-background: #ac7070;
    --login-menu-background: #df9898;
    --login-menu-title: #f0f0f0;
    --login-menu-border: #9F6868;
    --login-menu-input-background: #dbb1b1;
    --login-menu-input-placeholder: #755b5b;
    --login-menu-click-buttons: #CACACA;
    --login-menu-exit-button: rgba(255, 255, 255, 0.51);
    --login-button-background: #b47e7e;
    --login-input-focused: #a56262;
    --login-button-text: #e4e4e4;
    --login-button-border: rgb(255, 136, 0);
    --login-input-stroke: #a18282;
    --login-button-stroke: #9c7373;
    --login-button-hover: #946161;

    /* Contact Form */
    --contact-input-background: transparent;
    --contact-input-placeholder: rgba(255, 255, 255, 0.85);
    --contact-input-stroke: rgba(255, 255, 255, 0.7);
    --contact-button-background: #c25454;
    --contact-button-background-hover: #7a2f2f;
    --contact-button-text: #ffffff;
    --contact-button-border: #e5c8d6;
    --contact-focus-ring: rgba(216, 101, 101, 0.35);
    --contact-button-focused: #e08888;

    /* Cart Button */
    --cart-button-background: #914b4b;
    --cart-button-background-hover: #703a3a;
    --cart-button-background-hover-text: #b7b7b7;

    /* Exit Button */
    --exit-button-background: #723a3a;
    --exit-button-background-hover: #c9afaf;
    --exit-button-background-hover-text: #252525;

    /* Gallery */
    --gallery-card-info-background: #e4e0e0;

    /* Cart */
    --card-text-color: #dbdbdb;
    --card-text-title: #e7e7e7;

    /* Order */
    --order-product-hover-bg: #882f2f;
    --order-product-item-bg: #703e3e79;
    --order-product-item-border: #ac7a7a;
    --order-add-product-button: #c56969;

    /* Notification */
    --notification-background: #c77b7b;

}

/* ___________________________________________ */

/* Default Site Settings */

/* ___________________________________________ */

html, body {
    font-family: 'Itim', cursive !important; /* Site Identity DO NOT REMOVE */
    background: url(../images/backgrounds/wallpaper-fix-2.png) no-repeat center 70% fixed;
    background-color: var(--background) !important;
    background-size: cover;
    overflow-x: hidden !important;
    overflow-y: scroll; /* Makes sure users can still Scroll */
    scrollbar-width: none;
    -ms-overflow-style: none; /* Old Browsers. Just for safety. */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar { /* All other browsers */
    display: none;
}

/* ___________________________________________ */

/* Hero */

/* ___________________________________________ */

.hero {
    position: relative;
    height: 55rem;
    overflow: hidden;
}

#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.subpage .hero {
    background: url(../images/backgrounds/20.jpg) no-repeat center 90% fixed;
    background-size: cover;
    position: relative;
    height: 45rem !important;
}

.index-cupcake-1,
.index-cupcake-2,
.index-cupcake-3 {
    position: relative;
}

.index-cupcake-1 img {
    width: 60%;
    height: auto;
    transform: translateY(80%);
}

.index-cupcake-2 img {
    width: 80%;
    height: auto;
    transform: translateY(150%) rotate(-30deg);
}

.index-cupcake-3 img {
    width: 90%;
    height: auto;
    transform: translateY(-10%) rotate(20deg);
}

.index-cupcake-1,
.index-cupcake-2 {
    position: relative;
}

.subpage-cupcake-1 img {
    width: 50%;
    height: auto;
    transform: translateY(120%) rotate(15deg);
}

.subpage-cupcake-2 img {
    width: 50%;
    height: auto;
    transform: translateY(80%) rotate(-25deg);
}

/* ___________________________________________ */

/* Section 1 */

/* ___________________________________________ */

.section-1 {
    position: relative;
    background-color: var(--section-1-background);
}

.subpage .section-1 {
    position: relative;
    background-color: var(--section-1-background);
}

.section-1-intro {
    text-align: center;
    max-width: 55ch;
    position: relative;
    margin: 0 auto;
    color: var(--cupcake-white);
}

.section-1-intro h2::after {
    content: "";
    display: block;
    width: 60%;
    margin: 0.5em auto 0;
    border-bottom: 4px dotted #bdbdbd;
}

.section-1-intro p {
    font-style: italic;
    opacity: 70%;
    line-height: 1.6;
}

.section-1-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    width: 100%;
}

.showcase-item {
    text-align: center;
    max-width: 16rem;
    color: var(--cupcake-white);
}

.showcase-item img {
    width: 75%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.showcase-item h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.showcase-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
    font-style: italic;
    max-width: 30ch;
    margin: 0.5rem auto 0;
    text-align: center;
}

/* ___________________________________________ */

/* Navbar */

/* ___________________________________________ */

.navbar {
    border: 2px solid var(--nav-stroke);
    background-color: var(--navbar-background);
    display: flex; /* Important for content placement */
    align-items: center;
    height: 6rem;
    max-width: 80%;
    border-radius: 15px;
    margin: 0.5rem auto 0 auto; /* Top Bottom Right Left */
}

.navbar li {
    position: relative;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: var(--nav-text);
    text-decoration: none;
    text-shadow: 0px 2px 1px rgba(0,0,0,0.4);
}

.navbar a:hover {
    text-decoration: none; /* Removes that line under on :hover */
}

.navbar-menu {
    list-style: none;  /* Removes that annoying dot */
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem; /* Gap between items */
}

.navbar-menu li {
    margin: 0;
    padding: 0;
}

.navbar-menu li a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.2s ease; /* Smooth UI feel */
}

.navbar-menu li a:hover {
    color: var(--nav-text-hover);
}

.navbar-sticky {
    position: fixed;
    top: 5%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--navbar-background);
    box-shadow: 0 4px 8px rgba(0,0,0,0.30);
}

.navbar-logo img {
    width: 20rem;
    height: auto;
    display: block;
}

.navbar-login-button {
    border-radius: 15px;
    border: 2px solid var(--nav-login-button-stroke);
    background-color: var(--nav-login-button);
    box-shadow: 0 4px 8px rgba(0,0,0,0.30); /* x, y, blur, color*/
    font-size: 1.0rem;
    font-weight: 900;
    color: var(--nav-login-button-text);
    padding: 0.7rem;
    transition: transform 0.3s ease, background-color 0.2s ease;
}

.navbar-login-button:hover {
    transform: scale(1.05);
    background-color: var(--nav-login-button-hover);
}

.dropdown-menu {
    text-align: center; /* Important DO NOT REMOVE */
    display: none;
    position: absolute;
    top: 100%;
    left: -50% !important;
    border-radius: 10px;
    background-color: rgba(150, 89, 89, 0.8);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    min-width: 150px;
    z-index: 10;
    transition: all 0.3s ease-in-out;
}

/* dropdown-menu:hover (reserveret til senere) */

.dropdown-menu li a {
    padding: 0.5rem 1rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ___________________________________________ */

/* Section 2 */

/* ___________________________________________ */

.section-2 {
    background-color: var(--section-2-background);
}

.section-2-man {
    position: relative;
    height: 2rem;
}

.man-wrapper {
    position: relative;
    z-index: 1;
}

.section-2-man img {
    width: 50%;
    height: auto;
    z-index: 1 !important;
    transform: translateY(-50%);
}

.section-2-intro {
    text-align: center;
    max-width: 55ch;
    position: relative;
    margin: 0 auto;
    color: var(--cupcake-white);
    z-index: 5; /* Infront of the Text */
}

.section-2-intro h2::after {
    content: "";
    display: block;
    width: 60%;
    margin: 0.5em auto 0;
    border-bottom: 4px dotted #bdbdbd;
}

.section-2-intro p {
    font-style: italic;
    opacity: 100%;
    line-height: 1.6;
}

.section-2-text-end {
    display: block;
    margin-top: 1rem;
    color: var(--cupcake-white);
    font-style: normal;
}

/* ___________________________________________ */

/* Waves */

/* ___________________________________________ */

.wave-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(0.125rem);
    z-index: 500;
}

.wave-1 img,
.wave-2 img,
.wave-3 img {
    width: 100%;
    display: block;
}

.wave-3 {
    position: relative;
    z-index: 500;
    transform: translateY(0.125rem); /* Fixes the annoying wave issue.*/
}

.wave-1 img { /* Added this again */
    filter: drop-shadow(0px -5px 10px rgba(0,0,0,0.2));
}

/* ___________________________________________ */

/* Footer */

/* ___________________________________________ */

.footer {
    background-color: var(--background);
    position: relative;
    color: #d6d6d6;
    text-align: center !important;
    transition: auto 0.3s ease-in-out !important;
    padding: 8rem 1rem;
}

.footer .footer-col {
    text-align: center;
}

.footer li a { /* links (a) are usually inline by default. Gotta set it to inline-block for translateY... */
    display: inline-block;  /* Very important DO NOT REMOVE */
    color: #eeeeee !important;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}

.footer li a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #7a5551 !important;
}

.footer h3 {
    color: #ffffff !important;
    margin-bottom: 1rem;
    position: relative;
}

.footer h3::after {
    content: "";
    display: block;
    width: 15%;
    height: 3px;
    background-color: #b98b8b;
    margin: 0.5rem auto 2rem auto;
    border-radius: 1.0rem;
}

.footer ul { /* Dot infront of ul... So ugly LOOOOOOOOOOOOOOOOOOOOOOOOL */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ___________________________________________ */

/* Footer Navbar */

/* ___________________________________________ */

.footer-navbar {
    background-color: var(--footer-nav-background);
    color: #cccccc;
    height: 4rem;
    font-size: 1rem;
    box-shadow: 0px -5px 12px rgba(22, 22, 22, 0.2);
}

.footer-navbar p {
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* ___________________________________________ */

/* 404 */

/* ___________________________________________ */

.visuals-404 {
    background-color: var(--background) !important;
    background: url("../images/textures/background-texture-1.svg");
    height: 100vh; /* Very important DO NOT REMOVE */
    overflow: hidden !important;
}

.section-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: #7e5656;
    padding: 2rem;
}

.section-404-title {
    font-size: 8rem;
    font-weight: bold;
    text-shadow: 0 4px 3px rgba(0, 0, 0, 0.4);
}

.section-404-text {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.section-404-p {
    font-size: 1.2rem;
    max-width: 55ch;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ___________________________________________ */

/* Contact / Kontakt */

/* ___________________________________________ */

.contact-section {
    background-color: transparent;
}

.contact-section .section-1-intro {
    color: var(--cupcake-white);
}

.contact-section .contact-form {
    margin: 0 auto;
}

.contact-section .contact-form label {
    color: var(--cupcake-white);
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Itim', cursive !important;
    font-size: 1rem;
    border-radius: 0;
    padding: 0.5rem 0;
    width: 100%;
}

.contact-section .contact-form input::placeholder,
.contact-section .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
    border-bottom: 2px solid var(--contact-button-focused) !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: 'Itim', cursive !important;
    background-color: transparent !important;
    font-size: 1rem;
}

.contact-section .contact-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.guac-btn-contact {
    background-color: var(--contact-button-background) !important;
    color: var(--contact-button-text) !important;
    border: 0.125rem solid var(--contact-button-border) !important;
    border-radius: 1rem !important;
    font-weight: 800 !important;
    padding: 0.9rem 1.25rem !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 3px 4px rgb(0, 0, 0, 0.3) !important;
}

.guac-btn-contact:hover {
    background-color: var(--contact-button-background-hover) !important;
    transform: translateY(5%);
    border: 0.125rem solid var(--cupcake-less-white) !important;
}

.guac-btn-contact:active {
    transform: translateY(0);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.contact-list li {
    color: var(--cupcake-white);
}

.contact-list-centered {
    text-align: center;
}

/* ___________________________________________ */

/* Tak */

/* ___________________________________________ */

.visuals-tak {
    background-color: var(--background) !important;
    background: url("../images/textures/background-texture-1.svg");
    height: 100vh; /* Very important DO NOT REMOVE */
    overflow: hidden !important;
}

.section-tak {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: #7e5656;
    padding: 2rem;
}

.section-tak-title {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 4px 3px rgba(0, 0, 0, 0.4);
}

.section-tak-text {
    position: relative;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: normal !important;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.section-tak h2::after {
    content: "";
    display: block;
    width: 70%;
    height: 4px;
    background-color: #947676;
    margin: 3rem auto 0 auto;
    border-radius: 2px;
}

.section-tak-p {
    font-size: 1.3rem;
    max-width: 40ch;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tak-home-btn {
    padding: 0.75rem 0.75rem !important;
    font-size: 1.25rem !important;
}

.tak-order-wrapper {
    transition: all 0.2s ease-in-out;
}

.tak-order-wrapper a {
    text-decoration: none !important;
}

.tak-order-wrapper a:hover {
    text-decoration: none !important;
}

.tak-order-wrapper:hover {
    transform: translateY(2%);
}

/* ___________________________________________ */

/* Exit Button */

/* ___________________________________________ */

.exit-btn {
    text-decoration: none !important; /* Underline on <a> element */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background-color: var(--exit-button-background);
    color: var(--cupcake-white);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.exit-btn:hover {
    background-color: var(--exit-button-background-hover);
    color: var(--exit-button-background-hover-text) !important;
    transform: scale(1.1);
}

.exit-btn-profile {
    text-decoration: none !important;
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
    background-color: var(--profile-background);
    border: 2px solid var(--profile-sidemenu-border);
    color: var(--cupcake-white);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.exit-btn-profile:hover {
    background-color: var(--profile-button-hover);
    color: var(--cupcake-white) !important;
    transform: translateX(-50%) scale(1.1);
}

/* ___________________________________________ */

/* Cart Button */

/* ___________________________________________ */

.cart-btn-wrapper {
    display: none;
    text-decoration: none !important;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    background-color: var(--cart-button-background);
    border: 2px dashed var(--cupcake-less-white);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.75rem 1.25rem;
    align-content: center !important;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cart-btn-wrapper a {
    margin-right: 0.25rem !important;
    color: var(--cupcake-white) !important;
    text-decoration: none !important;
}

.cart-btn-wrapper:hover {
    background-color: var(--cart-button-background-hover) !important;
    transform: scale(1.1);
}

.cart-btn-wrapper:hover a {
    color: var(--cart-button-background-hover-text) !important;
}

/* ___________________________________________ */

/* Login */

/* ___________________________________________ */

.login-section-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--login-background);
}

.login-container {
    background: var(--login-menu-background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    border: 2px solid var(--login-button-background);
    max-width: 400px;
    width: 90%;
}

.login-container h2 {
    color: var(--login-menu-title);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    text-shadow: 0px 3px 3px rgba(0,0,0,0.4);
}

.login-container h2::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--login-button-background);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.login-container input {
    font-family: 'Itim', cursive !important;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 2rem;
    font-size: 1.2rem !important;
    padding: 0.5rem 0 !important;
    text-align: center !important;
    border: 2px solid var(--login-input-stroke);
    outline: none;
    background-color: var(--login-menu-input-background);
    color: var(--login-menu-input-placeholder);
    caret-color: transparent;
}

.login-container input::placeholder {
    font-family: 'Itim', cursive !important;
    color: var(--login-menu-input-placeholder);
    font-size: 1.2rem; /* hvis du også vil matche størrelsen */
    text-align: center;
}

.login-container input:focus {
    border: 3px solid var(--login-input-focused) !important;
    box-shadow: none !important;
    font-family: 'Itim', cursive !important;
}

.login-btn-group {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.login-btn-group .guac-btn {
    flex: 1; /* Very Important DO NOT REMOVE */
}

.login-container select {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 2rem;
    font-size: 1.2rem !important;
    padding: 0.5rem 0 !important;
    text-align: center !important;
    border: 2px solid #464646;
    outline: none;
    background-color: #ebebeb;
    color: #3b3b3b;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.login-container select:focus {
    border: 3px solid var(--login-button-background) !important;
    box-shadow: none !important;
}

/* ___________________________________________ */

/* Buttons */

/* ___________________________________________ */

.guac-btn-form {
    background-color: var(--login-button-background) !important;
    border-radius: 1rem !important;
    border: 2px solid var(--login-button-stroke);
    font-size: 1.0rem !important;
    font-weight: bold !important;
    color: var(--login-button-text) !important;
    box-shadow: 0 2px 3px rgba(22, 22, 22, 0.4);
}

.guac-btn-form:hover {
    background-color: var(--login-button-hover) !important;
    transform: translateY(5%)
}

/* ___________________________________________ */

/* Bubbles */

/* ___________________________________________ */

.bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
    animation: fadeOut 3s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ___________________________________________ */

/* Input Error Visuals & Anims */

/* ___________________________________________ */

.input-error {
    border-color: red !important;
    animation: inputShake 0.5s;
}

@keyframes inputShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* ___________________________________________ */

/* Scroll Button */

/* ___________________________________________ */

.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 20px;
    background-color: var(--cupcake-orange);
    color: white;
    border: none;
    border-radius: 0.9375rem;
    font-size: 16px;
    opacity: 0;
    display: none;
    pointer-events: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-btn i {
    font-size: 1.3rem;
    color: white;
}

.scroll-btn.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.scroll-btn:hover {
    background-color: #f8b600;
    transition: all 0.3s ease;
}

/* ___________________________________________ */

/* Animations */

/* ___________________________________________ */

.guac-zoom-in-n-out1.guac-visible {
    animation: guacZoomInNOut 0.5s forwards;
    animation-delay: 1s;
}

.guac-zoom-in-n-out2.guac-visible {
    animation: guacZoomInNOut 0.5s forwards;
    animation-delay: 1.5s;
}

.guac-zoom-in-n-out3.guac-visible {
    animation: guacZoomInNOut 0.5s forwards;
    animation-delay: 2s;
}

@keyframes guacZoomInNOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ___________________________________________ */

/* Profile & Admin */

/* ___________________________________________ */

.profile-menu-visuals {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.profile-menu-visuals a:hover {
    text-decoration: none;
}

.profile-menu-visuals > .guac-row { /* Affects the child of the profile-menu-visuals only (guac-row) */
    width: 100%;
    height: 100%;
    margin: 0;
    gap: 0;
}

.profile-nav {
    background-color: var(--profile-sidemenu);
    color: white;
    padding: 1rem;
    display: flex;
    border-right: 2px solid var(--profile-sidemenu-border);
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.profile-actual {
    overflow-y: auto;
    color: #FFF;
    background-color: var(--profile-background);
    padding: 1rem;
    overflow-y: auto;
    flex: 1 1 0;
    max-width: none;
}

.profile-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.profile-title h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Distance between each menu item */
    align-items: center;
}

.guac-btn-profile {
    background-color: var(--profile-sidemenu-buttons);
    color: var(--profile-sidemenu-buttons-text);
    border: 2px solid var(--profile-sidemenu-border);
    border-radius: 15px !important;
    width: 100%;
    max-width: 70%;
    text-align: center;
}

.guac-btn-profile:hover {
    background-color: var(--profile-button-hover) !important;
    transform: translateY(5%);
    transition: all 0.2s ease-in-out;
}

/* ___________________________________________ */

/* Profile Menu - Orders */

/* ___________________________________________ */

#ordersContainer,
#activeReturnsContainer,
#pastReturnsContainer,
#userOrdersContainer{
    display: none;
    overflow-y: auto;
}

#orderResult{
    overflow-y: auto;
}

#ordersContainer .order-card,
#orderResult .order-card,
#activeReturnsContainer .order-card,
#pastReturnsContainer .order-card,
#userOrdersContainer .order-card,
#updateDeleteOrderAdmin .order-card,
#seeAllOrdersAdmin .order-card,
#returnAdmin .order-card,
#searchForUserAdmin .user-card{
    border: 0.0625rem solid var(--profile-sidemenu-border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--profile-orderCard-background);
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



#ordersContainer::-webkit-scrollbar,
#orderResult::-webkit-scrollbar,
#userOrdersContainer::-webkit-scrollbar,
#updateDeleteOrderAdmin::-webkit-scrollbar{
    width: 0.5rem;
}

#ordersContainer::-webkit-scrollbar-thumb,
#orderResult::-webkit-scrollbar-thumb,
#userOrdersContainer::-webkit-scrollbar-thumb,
#updateDeleteOrderAdmin::-webkit-scrollbar-thumb{
    background-color: rgba(0,0,0,0.2);
    border-radius: 0.25rem;
}

#ordersContainer::-webkit-scrollbar-track,
#orderResult::-webkit-scrollbar-track,
#userOrdersContainer::-webkit-scrollbar-track,
#updateDeleteOrderAdmin::-webkit-scrollbar-track{
    background-color: var(--cupcake-white);
}

#ordersContainer .finish-btn,
#orderResult .finish-btn{
    background-color: var(--profile-order-continue-btn);
    color: var(--cupcake-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

#ordersContainer .finish-btn:hover,
#orderResult .finish-btn:hover {
    background-color: var(--profile-order-continue-btn-hover);
}

#ordersContainer .delete-btn,
#orderResult .delete-btn{
    background-color: var(--profile-order-delete-btn);
    color: var(--cupcake-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

#ordersContainer .delete-btn:hover,
#orderResult .delete-btn:hover {
    background-color: var(--profile-order-delete-btn-hover);
}

.order-nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem !important;
    margin-top: 1rem;
}

#nextAndPrevNav,
#userNextAndPrevNav,
#returnNav{
    align-items: center;
    gap: 0.5rem !important;
    margin: 0;
}


.order-card h3 {
    margin-top: 0;
}

.order-items ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.status-open {
    color: #16dc00;
    font-weight: 600;
}

.status-pending {
    color: var(--cupcake-orange);
    font-weight: 600;
}

.status-finished {
    color: var(--cupcake-red);
    font-weight: 600;
}

.status-default {
    color: var(--cupcake-grey);
    font-weight: 500;
}

.order-item.guac-row {
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
}

.order-item.guac-row p { /* Produkter */
    flex: 0 1 auto;
    margin: 0;
}

.order-item.guac-row p:nth-child(2) { /* Antal */
    flex: 1;
    text-align: center;
}

.order-item.guac-row p:last-child { /* Pris */
    margin-left: auto;
    margin-right: 1rem !important;
    text-align: right;
}

.manage-order-input {
    width: 5rem;
    padding: 0.3rem 0.5rem;
    border: 0.06rem solid var(--cupcake-white);
    border-radius: 0.3rem;
    text-align: center;
    font-size: 0.8rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.manage-order-input:focus {
    border-color: var(--profile-order-delete-btn-hover);
    box-shadow: 0 0 0 0.1rem #591515;
    outline: none;
}

/* ___________________________________________ */

/* Events */

/* ___________________________________________ */

.event-card {
    background-color: #cea2a2 !important;
    border-radius: 25px !important;
    border: 4px dashed #e4e4e4 !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
}


.event-page .section-1 h2 {
    color: #FFF;
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.event-page .section-1 h2::after {
    content: "";
    display: block;
    margin: 2rem auto 0; /* Centers our line */
    width: 60px;
    height: 3px;
    background-color: #FFF;
    border-radius: 1px;
}

.event-page .section-1 p {
    text-align: center;
    font-style: italic;
    color: #FFF;
    opacity: 0.7;
    margin-top: 0.5rem;
    margin-bottom: 4rem;
    font-size: 1rem;
}

.event-card:hover {
    transform: scale(105%) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.event-image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #8f6262;
    border: 2px solid var(--profile-sidemenu-border);
    color: #fff;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.guac-btn-event {
    background-color: var(--cupcake-orange);
    border-radius: 15px !important;
    border: 2px solid #FFF;
}

.guac-card a {
    color: #e4e4e4;
    font-weight: 600;
}

.guac-card a:hover {
    text-decoration: none;
}

.event-card .guac-card-title {
    color: #664b4b !important;
    max-width: 80%;
}

.event-card .guac-card-text {
    color: #664b4b !important;
    max-width: 80%;
}

.event-card .guac-card-title,
.event-card .guac-card-text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 80%;
}

/* ___________________________________________ */

/* Gallery */

/* ___________________________________________ */

.galleri-page .section-1 h2 {
    color: var(--cupcake-white); /* Using :root colors instead */
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.galleri-page .section-1 h2::after {
    content: "";
    display: block;
    margin: 2rem auto 0; /* Centers our line */
    width: 4rem;  /* rem fix instead of px. % works just as good */
    height: 3px;
    background-color: var(--cupcake-white); /* Using :root colors instead */
    border-radius: 0.9375rem;
}

.galleri-page .section-1 p {
    text-align: center;
    font-style: italic;
    color: var(--cupcake-white); /* Using :root colors instead */
    opacity: 0.7;
    margin-top: 0.5rem;
    margin-bottom: 4rem;
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); /* Changed to rem for responsive layout */
    grid-auto-rows: 9rem; /* Rem change */
    grid-auto-flow: row dense;
    counter-reset: item-counter;
}

.gallery-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    color: var(--cupcake-white); /* Using :root colors instead */
    grid-column-start: auto;
    grid-row-start: auto;
    background-size: cover;
    background-position: center;
    box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    counter-increment: item-counter;
    border-radius: 0.9375rem;
    overflow: hidden;
}

.gallery-item:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--cupcake-black);
    opacity: 0.3; /* Opacity fremfor background-color uden :root */
    transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.02); /* Less :hover scale. Looked crazy at 1.05 */
}

.gallery-item:hover:after { /* The img overlay */
    opacity: 0.1;
}

.gallery-item--normal {  /* Added more item scaling */
    grid-row-end: span 1;
}

.gallery-item--medium {
    grid-row-end: span 2;
}

.gallery-item--large {
    grid-row-end: span 3;
}

.gallery-item--XL { /* Added more item scaling */
    grid-row-end: span 4;
}

.gallery-item--extreme { /* Added more item scaling */
    grid-row-end: span 5;
}

.gallery-item--full {
    grid-column-end: auto;
}

.gallery-item--half {  /* Added more item scaling */
    grid-column-end: span 2;
}

.gallery-item__details {
    position: relative;
    z-index: 1;
    padding: 1rem;
    background: var(--gallery-card-info-background); /* Color fix */
    text-transform: lowercase;
    letter-spacing: 0.05rem; /* Rem fix */
    color: var(--cupcake-grey); /* Color fix */
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-item__details:before {
    /* content: counter(item-counter); Sets the number (needed?) */
    font-weight: bold;
    font-size: 1.1rem;
    padding-right: 0.5em;
    color: var(--cupcake-grey); /* :root colors */
}

.gallery-item__img { /* Instead of style directly in the html file */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.gallery-item__lac { /* Added these for likes and comments */
    margin-top: 0.5rem; /* Distance between description and meta data */
    font-size: 0.9rem;
    color: var(--cupcake-grey);
}

.gallery-item__lac i {
    /* margin-right: 0.3rem; Add and see the difference. Maybe u like it with it on */
    color: var(--heart);
}


/* ___________________________________________ */

/* Heart */

/* ___________________________________________ */

.heart-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--cupcake-white); /* :root colors */
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease-in-out; /* Animation on the heart  */
}

.heart-btn i {
    font-size: 1rem;
    color: var(--heart); /* :root colors */
}

.heart-btn.liked {
    background: var(--heart); /* :root colors */
}

.heart-btn.liked i {
    color: var(--cupcake-white); /* :root colors */
}

/* ___________________________________________ */

/* Gallery Responsive */

/* ___________________________________________ */

@media screen and (min-width: 768px) { /* Phone sizes mainly */
    .gallery-item--full {
        grid-column: 1/-1;
        grid-row-end: span 2;
    }
}

/* ___________________________________________ */

/* Shopping Cart */

/* ___________________________________________ */

#cart-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: 'Itim', cursive !important;
}

.cart-popup {
    background: rgba(255, 255, 255, 0.2);
    color: var(--card-text-title);
    padding: 1.25rem;
    margin-top: 0.6rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.2);
    transform: translateX(120%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 20rem; /* Width of our cart */
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    border: 0.25rem solid rgba(255, 255, 255, 0.5);
}

.cart-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-popup h4 {
    margin: 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 0.5rem;
}

.cart-popup h4::after {
    content: "";
    display: block;
    width: 25%;
    height: 0.125rem;
    background: rgba(238, 238, 238, 0.2);
    margin: 0.5rem auto 0 auto;
    border-radius: 0.125rem;
}

.cart-popup ul {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
}

.cart-popup ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.938rem;
    margin: 0.4rem 0;
    padding: 0.25rem 0;
    gap: 0;
}

.cart-popup ul li input {
    margin: 0;
    width: 2rem;
    text-align: center;
    border: 0.063rem solid rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
}

.cart-popup ul li span {
    font-weight: bold;
    color: var(--card-text-color);
}

.cart-popup .total {
    margin-top: 0.938rem;
    padding-top: 0.5rem;
    border-top: 0.2rem solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.cart-popup ul li input::-webkit-outer-spin-button,
.cart-popup ul li input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-popup ul li input[type=number] {
    -moz-appearance: textfield;
}

button.plus,
button.minus {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--card-text-color);
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

button.plus:active,
button.minus:active {
    transform: scale(0.9);
}

.cart-popup ul li .cart-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem !important;
}

.cart-popup ul li .cart-controls input {
    width: 2rem;
    text-align: center;
}

/* ___________________________________________ */

/* Andreas' Menu */

/* ___________________________________________ */

#menu {
    position: relative;
    text-align: center;
}

#menu h2 {
    color: var(--cupcake-white) !important;
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.menu-wrapper p {
    color: var(--cupcake-white) !important;
    opacity: 70%;
    font-style: italic;
}

.menu-wrapper h2::after {
    content: '';
    display: block;
    width: 15%;
    border-bottom: 5px dotted var(--cupcake-white);
    margin: 2rem auto 0;
}

.subpage #menu {
    background-color: var(--section-1-background) !important;
}

.products {
    position: relative;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem !important;
}

.products img {
    width: 60%;
    height: auto;
}

.product-item {
    align-items: center;
    background-color: var(--order-product-item-bg) !important;
    width: 20rem !important;
    border-radius: 0.8rem;
    border: 2px solid var(--order-product-item-border) !important;
    padding: 1rem !important;
    position: relative;
}

.product-title {
    position: relative;
}

.product-title p::after {
    content: "";
    display: block;
    margin: 2rem auto 0; /* Centers our line */
    width: 60px;
    height: 3px;
    background-color: var(--cupcake-white);
    border-radius: 1px;
}

.product-item p {
    color: var(--cupcake-white);
}

.add-product {
    text-decoration: none;
    color: var(--cupcake-white);
    padding: 0.5rem;
    background-color: var(--order-add-product-button);
    border-radius: 1rem;
    border: 2px dotted var(--cupcake-less-white);
    display: inline-block;
    transition: all 0.2s ease-in-out;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.3);
}

.add-product:hover {
    background-color: var(--order-product-hover-bg);
    cursor: pointer;
    color: #c9b3b1;
    transform: translateY(2px);
    text-decoration: none;
}

.go-payment-btn {
    font-family: 'Itim', cursive !important;
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem 0.5rem;
    background-color: #a85252;
    color: var(--cupcake-white);
    border: 2px solid var(--cupcake-less-white);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.go-payment-btn:hover {
    background-color: var(--cart-button-background-hover);
    color: var(--cart-button-background-hover-text);
    transform: scale(1.02);
}

.menu-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    padding: 0.6rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Itim', cursive !important;
    font-size: 1rem;
    color: var(--cupcake-white);
    outline: none;
    transition: all 0.2s ease;
}

.filter-select option {
    background: var(--cupcake-white);
    color: var(--cupcake-less-black);
}

.filter-input:hover,
.filter-select:hover {
    border-color: rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.6);
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--cupcake-less-black);
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 0.5rem rgba(0,0,0,0.15);
}

.filter-input::placeholder {
    color: var(--cupcake-white);
}

/* ___________________________________________ */

/* Cupcake Menu */

/* ___________________________________________ */

.cupcake-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.cupcake-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.cupcake-card {
    position: relative;
    flex: 1 1 30% !important; /* guac-col-4 fix bby */
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    min-height: 34.375rem;
    flex-direction: column;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
    transition: border 0.3s ease;
}

.cupcake-imgBox {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    transition: transform 0.5s ease-in-out, width 0.5s ease-in-out;
}

.cupcake-imgBox img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out, width 0.5s ease-in-out;
}

.cupcake-contentBox {
    width: 100%;
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: margin-top 0.5s ease-in-out;
}

.cupcake-contentBox h2 {
    color: var(--cupcake-white);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
    position: relative;
}

.cupcake-contentBox h2::after {
    content: '';
    display: block;
    width: 100%;
    max-width: 30%;
    height: 3px;
    background-color: var(--cupcake-white);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.cupcake-hoverContent {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, 1rem);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.cupcake-hoverContent p,
.cupcake-hoverContent a {
    margin: 0 auto;
    color: var(--cupcake-white);
    text-align: center;
}

.cupcake-card:hover .cupcake-imgBox img {
    width: 70%;
    transform: translateY(-1rem);
}

.cupcake-card:hover .cupcake-price {
    transform: translateY(-0.5rem);
    font-weight: 600;
}

.cupcake-card:hover .cupcake-contentBox {
    margin-top: 0.5rem;
}

.cupcake-card:hover .cupcake-contentBox h2::after {
    opacity: 1;
    transform: scaleX(1);
}

.cupcake-card:hover .cupcake-hoverContent {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ___________________________________________ */

/* Custom Cupcake Menu */

/* ___________________________________________ */

.section-custom-cupcake {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 1rem;
    background-color: var(--section-1-background);
}

.section-custom-cupcake h2 {
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}

.section-custom-cupcake h2::after {
    content: "";
    display: block;
    width: 40%;
    height: 3px;
    background-color: #ffffff;
    margin: 2.5rem auto 0; /* Top, Right/left, bottom */
    border-radius: 2px;
}

.section-custom-cupcake p {
    opacity: 0.7;
    font-style: italic;
    color: #fff;
    margin-bottom: 3rem;
}

.cupcake-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(161, 91, 91, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    border: 4px dashed #ffffff;
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 350px;
    text-align: center;
}

.cupcake-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cupcake-field label {
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.cupcake-field select {
    width: 80%;
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: 0.1rem solid #ccc;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    transition: border 0.2s;
}

.cupcake-field select:hover {
    border-color: #ff7a91;
}

.show-btn,
.add-btn {
    padding: 0.8rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.show-btn,
.add-btn {
    background-color: #d55252;
    color: #fff;
    font-weight: 600;
    border: 2px solid #FFF;
}

.add-btn:hover,
.show-btn:hover {
    background-color: #ad4343;
    transform: translateY(2px);
}

.price {
    margin-top: 1rem;
    margin-bottom: 1rem !important;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 100% !important;
}

.cupcake-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cupcake-preview img {
    width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 1rem;
}

.cupcake-forms-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem !important;
    justify-content: center;
    align-items: stretch;
}

.cupcake-form-box {
    flex: 1 1 18.75rem;
    min-width: 21.875rem;
    display: flex;
}

.cupcake-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(161, 91, 91, 0.6);
    border: 4px dashed #ffffff;
    border-radius: 1rem;
    box-shadow: 0 0.6rem 1.5rem rgba(0,0,0,0.3);
}

.cupcake-preview img {
    width: 70%;
    height: auto;
    border-radius: 1rem;
}

.cupcake-form,
.cupcake-preview {
    flex: 1;
}

/* ___________________________________________ */

/* Payment Menu */

/* ___________________________________________ */

.section-1-payment {
    min-height: 100vh;
    background-color: var(--section-1-background);
    padding: 4rem 1rem;
    color: #fff;
}

.section-1-payment button {
    border: 2px solid #FFF;
}

.section-1-payment h2,
.section-1-payment h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.section-1-payment .payment-p {
    text-align: left;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 3rem !important;
}

.delivery-options button,
.coupon-options button,
.payment-options button,
.next-btn {
    margin: 0.3rem;
    padding: 0.6rem 1rem;
    border-radius: 15px;
    border: 2px solid #FFF;
    background-color: #d55252;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-options button:hover,
.coupon-options button:hover,
.payment-options button:hover,
.next-btn:hover {
    background-color: #ad4343;
    transform: translateY(1px);
}

.delivery-options button.active,
.payment-options button.active {
    background-color: #ffad00;
    transform: translateY(1px);
}

.discount-code {
    width: 29%;
    padding: 0.5rem;
    border-radius: 15px;
    border: 2px dashed #fff;
    background: transparent;
    color: #fff;
    font-family: 'itim', cursive;
    font-size: 1rem;
    outline: none;
    margin-bottom: 1rem !important;
}

.discount-code::placeholder {
    font-family: 'itim', cursive;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.discount-code:focus {
    border: 2px dashed #fff;
    box-shadow: none;
}

.order-list .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    margin-left: 0;
}

.order-list .order-item p {
    margin: 0.2rem 0;
    color: #fff;
    opacity: 100% !important;
    font-weight: 500;
    text-align: left;
    flex: 1;
}

.next-btn {
    display: inline-block;
    margin-left: 0;
    font-weight: 400 !important;
}

.next-btn:hover {
    text-decoration: none !important;
}

.customer-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 15px;
    border: 2px solid var(--cupcake-white);
    background: transparent;
    color: var(--cupcake-white);
    font-family: 'itim', cursive;
    font-size: 1rem;
    outline: none;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.customer-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'itim', cursive;
    font-size: 1rem;
}

/* ___________________________________________ */

/* Admin / Profile Menu */

/* ___________________________________________ */

.profile-menu-visuals {
    display: flex;
    height: 100vh;
}

.profile-menu-visuals button {
    border-radius: 10px !important;
}

.profile-actual {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
}

.content-section {
    text-align: left;
    padding: 2rem;
}

.content-section button {
    border-radius: 10px !important;
}

.content-section h2 {
    margin-bottom: 0.5rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: #d3d3d3;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group .guac-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.input-group input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.action-btn {
    background-color: #ad4343;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 10px !important;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.action-btn:hover {
    background-color: #922f2f;
}

.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

.section-divider-small {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
    max-width: 35rem;
}

/* ___________________________________________ */

/* Preloader */

/* ___________________________________________ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: var(--section-1-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 1.0s ease-in-out forwards;
}

.preloader::before {
    content: "";
    height: 80px;
    width: 80px;
    border: 7px solid white;
    border-radius: 0 50% 50% 50%;
    position: relative;
    transform: rotate(45deg);
    animation: move 0.5s linear infinite alternate-reverse;
}

.preloader::after {
    content: "";
    position: absolute;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    border: 7px solid transparent;
    border-top-color: white;
    border-bottom-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 1s linear infinite;
}

/* Might have these in guacamoleboy-wow.js but cba checking rn */

@keyframes rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes move {
    to { transform: translateY(15px) rotate(45deg); }
}

@keyframes fadeOut {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* ___________________________________________ */

/* Forgot Something */

/* ___________________________________________ */

.forgot-btn-group {
    text-align: center;
    margin-top: 1rem;
}

.forgot-link {
    color: var(--cupcake-white);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease;
}

.forgot-link:hover {
    transform: scale(1.03);
}

.forgot-link:active {
    transform: scale(1.0);
    color: #ccc;
}

.forgot-choice-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#forgot-form-container form {
    display: flex;
    flex-direction: column;
    text-align: center;
}

#forgot-form-container input {
    text-align: center;
}

/* ___________________________________________ */

/* Payment Modal */

/* ___________________________________________ */

#paymentModalContainer {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0.25rem);
    -webkit-backdrop-filter: blur(0.25rem);
}

#paymentModalContent {
    backdrop-filter: blur(1.25rem);
    -webkit-backdrop-filter: blur(1.25rem);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 10% auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 25rem;
    border-radius: 1rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.4);
    color: #fff;
    position: relative;
}

#paymentModalClose {
    position: absolute;
    top: 0.75rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cupcake-less-white);
    transition: color 0.2s ease;
}

#paymentModalClose:hover {
    color: #fff;
}

#paymentModalContent h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

#paymentModalContent h2::after {
    content: "";
    display: block;
    width: 5rem;
    height: 0.125rem;
    background: rgba(255, 255, 255, 0.8);
    margin: 0.5rem auto 0;
    border-radius: 1rem;
}

#paymentModalContent p {
    margin: 0.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

#paymentInputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

#paymentInputs input {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    outline: none;
    pointer-events: none;
}

#paymentInputs input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#confirmPaymentBtn {
    display: block;
    margin: 1.75rem auto 0;
    padding: 0.75rem 2rem;
    background: var(--cupcake-orange);
    color: #fff;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}
#confirmPaymentBtn:hover {
    background: #d58600;
    transform: translateY(2px);
}

/* ___________________________________________ */

/* Navbar Responsive */

/* ___________________________________________ */

.navbar-responsive {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--navbar-background);
}

.navbar-logo-responsive {
    display: flex;
    justify-content: flex-end;
}

.navbar-logo-responsive img {
    width: 18rem;
    height: auto;
    display: block;
}

.navbar-toggle {
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--cupcake-white);
    cursor: pointer;
    margin: 0;
}

.overlay-menu {
    position: absolute;
    top: 100%;
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

.overlay-menu a {
    color: var(--cupcake-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-responsive .overlay-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.navbar-responsive .overlay-menu a {
    text-decoration: none;
    color: var(--cupcake-white);
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--navbar-background);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.overlay-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--cupcake-white);
    cursor: pointer;
}

.navbar-overlay .overlay-menu {
    position: static; /* VERY IMPORTANT DO NOT REMOVE */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.navbar-overlay .overlay-menu li {
    margin: 0;
    padding: 0;
}

.navbar-overlay .overlay-menu li a {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cupcake-white);
    text-decoration: none;
}

.navbar-overlay .overlay-menu a {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cupcake-white);
    text-decoration: none;
    text-align: center;
}

.overlay-login {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.overlay-login .navbar-login-button {
    font-size: 1.8rem;
    padding: 0.8rem 1.2rem;
}

/* ___________________________________________ */

/* Responsive - Portrait - IPad 14.7.2 */

/* ___________________________________________ */

@media screen and (max-width: 1080px) and (orientation: portrait) {

    /* _________________________________________________________ */

    /* Index.html */

    /* _________________________________________________________ */

    .hero {
        height: 35rem;
    }

    .section-2-man {
        display: none !important;
    }

    .navbar-responsive {
        display: flex !important;
    }

    .navbar-sticky {
        display: none !important;
    }

    /* _________________________________________________________ */

    /* Subpage Heroes */

    /* _________________________________________________________ */

    .subpage .hero {
        background-size: 140% auto;
        background-position: center center;
        background-attachment: scroll;
        height: 35rem !important;
    }

    /* _________________________________________________________ */

    /* Contact.html */

    /* _________________________________________________________ */

    .contact-section .guac-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .contact-section .guac-grid-2 {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* _________________________________________________________ */

    /* galleri.html + section-1 padding */

    /* _________________________________________________________ */

    .section-1 .guac-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* _________________________________________________________ */

    /* custom.html */

    /* _________________________________________________________ */

    .cupcake-forms-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
    }

    /* Calculations for 2 boxes on a row with a little margin between */
    /* DO NOT REMOVE */
    .cupcake-form-box {
        flex: 0 1 calc(50% - 1rem);
        margin: 0;
        min-width: 15rem;
    }

    /* _________________________________________________________ */

    /* Profile + Admin Menu */

    /* _________________________________________________________ */

    .profile-nav {
        flex: 0 0 25%;
        max-width: 25%;
        min-width: 12rem;
    }

    #minProfil .guac-btn.action-btn {
        margin-bottom: 0.5rem;
    }

    #minProfil .content-section .guac-btn.action-btn {
        flex: 0 0 auto;
    }

    #minProfil .content-section .guac-btn-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    /* _________________________________________________________ */

    /* Order.html */

    /* _________________________________________________________ */

    .cupcake-cards {
        gap: 1rem;
    }

    .cupcake-card {
        min-height: auto !important;
        flex: 1 1 45%;
    }

    @media (hover: none) and (pointer: coarse) {

        .cupcake-card {
            position: relative;
            overflow: visible;
            transition: all 0.5s ease;
        }

        .cupcake-card .cupcake-hoverContent {
            position: absolute;
            top: 30%;
            left: 50%;
            transform: translate(-50%, 0.5rem);
            opacity: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: opacity 0.5s ease, transform 0.5s ease;
            width: 90%;
            z-index: 10;
        }

        .cupcake-card.active .cupcake-hoverContent {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        .cupcake-card .cupcake-imgBox img {
            transition: transform 0.5s ease;
        }

        .cupcake-card.active .cupcake-imgBox img {
            transform: translateY(-1rem) scale(0.7);
        }

        .cupcake-card.active .cupcake-contentBox {
            margin-top: 0.5rem;
        }

    }

}

/* ___________________________________________ */

/* Responsive - Landscape - IPad 14.7.2 */

/* ___________________________________________ */

@media screen and (max-width: 1080px) and (orientation: landscape) {

    /* _________________________________________________________ */

    /* Index.html */

    /* _________________________________________________________ */

    .hero {
        height: 35rem;
    }

    .section-2-man {
        display: none !important;
    }

    .navbar-responsive {
        display: flex !important;
    }

    .navbar-sticky {
        display: none !important;
    }

    /* _________________________________________________________ */

    /* Subpage Heroes */

    /* _________________________________________________________ */

    .subpage .hero {
        background-size: 140% auto;
        background-position: center center;
        background-attachment: scroll;
        height: 45rem !important;
    }

    /* _________________________________________________________ */

    /* Contact.html */

    /* _________________________________________________________ */

    .contact-section .guac-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .contact-section .guac-grid-2 {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }

    /* _________________________________________________________ */

    /* galleri.html + section-1 padding */

    /* _________________________________________________________ */

    .section-1 .guac-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* _________________________________________________________ */

    /* Profile + Admin Menu */

    /* _________________________________________________________ */

    .profile-nav {
        flex: 0 0 25%;
        max-width: 25%;
        min-width: 12rem;
    }

    #minProfil .guac-btn.action-btn {
        margin-bottom: 0.5rem;
    }

    #minProfil .content-section .guac-btn.action-btn {
        flex: 0 0 auto;
    }

    #minProfil .content-section .guac-btn-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    /* _________________________________________________________ */

    /* Order.html */

    /* _________________________________________________________ */

    .cupcake-cards {
        gap: 1rem;
    }

    .cupcake-card {
        min-height: auto !important;
        flex: 1 1 45%;
    }

    @media (hover: none) and (pointer: coarse) {

        .cupcake-card {
            position: relative;
            overflow: visible;
            transition: all 0.5s ease;
        }

        .cupcake-card .cupcake-hoverContent {
            position: absolute;
            top: 30%;
            left: 50%;
            transform: translate(-50%, 0.5rem);
            opacity: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: opacity 0.5s ease, transform 0.5s ease;
            width: 90%;
            z-index: 10;
        }

        .cupcake-card.active .cupcake-hoverContent {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        .cupcake-card .cupcake-imgBox img {
            transition: transform 0.5s ease;
        }

        .cupcake-card.active .cupcake-imgBox img {
            transform: translateY(-1rem) scale(0.7);
        }

        .cupcake-card.active .cupcake-contentBox {
            margin-top: 0.5rem;
        }

    }

}