body {
    background-color: var(--color-whitesmoke);
}

header {
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-color: #333;
    position: relative;
    /* Make header the positioning reference */
    background-image: linear-gradient(rgba(4, 9, 30, 0.45), rgba(4, 9, 30, 0.3)), url(/images/Bakgrund.avif);
}

@media (max-width: 768px) {
    header {
        background-position: 30% center;
        /* Adjust the position to move the image to the right */
    }
}


.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(4, 9, 30, 1), rgba(4, 9, 30, 1));
    opacity: 1;
    animation: fadeInOverlay 2s ease-in-out forwards;
    z-index: 1;
    /* Place it below .button-div */
}

@keyframes fadeInOverlay {
    to {
        opacity: 0;
    }
}

.button-div {
    position: absolute;
    /* Position the button-div relative to the header */
    top: 50%;
    /* Adjust this value as needed */
    left: 30%;
    transform: translateX(-50%, 50%);
    /* Center the button horizontally */
    z-index: 10;
    /* Ensure it stays above other elements in the header */
    opacity: 0;
    animation: slideInFromRight 2s ease-in-out forwards;
}

@keyframes slideInFromRight {
    to {
        transform: translate(-50%, 0);
        /* Slide up to final position */
        opacity: 1;
        /* Fade in */
    }
}

.start-content {
    color: #fff;
}

.start-content h1 {
    font-weight: 400;
}

#red {
    color: var(--color-red);
}

#new-row {
    display: block;
}

@media(max-width: 768px) {
    .button-div {
        left: 40%;
    }

    .start-content h1 {
        font-size: 2rem;
    }

}

.hero-btn {
    display: inline-block;
    font-size: 1em;
    background-color: #D72638;
    padding: 10px 30px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    margin-top: 3%;
    color: black;
    letter-spacing: 2px;
    transition: 0.2s ease-in-out;
}

.hero-btn:hover {
    background-color: var(--color-red);
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

/* Main container styling */
.main {
    max-width: 98%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

/* Title styling */
.main h2 {
    font-weight: 500;
    color: #D72638;
    padding-top: 8%;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5%;
}


/* Places container styling */
.places {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 30px;
}

/* Individual place styling */
.place {
    display: flex;
    flex-direction: column;
    /* Stack text box and map */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s ease;
}

.place:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Text box styling */
.text-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

/* Text and link styling inside text-box */
.text-box h3 {
    color: var(--color-gray);
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.text-box p {
    margin: 6px 0;
    font-size: 1rem;
    color: var(--light-gray);
}

.text-box a {
    color: #D72638;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.text-box a:hover {
    color: #333;
}

/* Opening hours styling */
.opening-hours {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    margin-top: -4px;
    /* Slight overlap to visually connect with the map */
}

/* Opening hours text styling */
.opening-hours h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.opening-hours p {
    font-size: 1rem;
    margin: 4px 0;
}

/* Container for each day and time */
.day-time {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-gray);
}

/* Day names styling */
.day-time p {
    margin: 0;
    flex: 1;
    /* Ensure each day label takes up space evenly */
}

/* Time styling */
.time {
    text-align: right;
    min-width: 120px;
    /* A minimum width to ensure alignment */
}

/* Styling for closed days */
.closed {
    color: red;
}

.spara {
    padding: 12px 18px;
    background-color: #2bd255;
    border-radius: 5px;
    border: none;
    margin-top: 2%;
    margin-bottom: 2%;
    transition: 0.2s;
}

.spara:hover {
    background-color: #21a442;
    transition: 0.2s;
}

/* Map styling */
.place .map {
    width: 100%;
    height: 300px;
    /* Adjust height as needed */
    border: 0;
    z-index: 1;
    filter: grayscale(20%) contrast(90%);
    transition: filter 0.3s ease;
}

.place:hover .map {
    filter: grayscale(0) contrast(100%);
}

/* Responsive layout */
@media (min-width: 768px) {
    .main {
        max-width: 1000px;
    }

    .places {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: space-between;
    }

    .place {
        flex: 1 1 48%;
        /* Allows two items per row */
    }
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* General Card Styles */
.S {
    background-color: var(--color-whitesmoke);
}

.social-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    margin: 0 auto;
    margin-top: 5%;
}

#sociala {
    position: relative;
    padding-left: 6.5%;
    font-size: 28px;
    padding-top: 5%;
    color: var(--color-red);
    text-transform: uppercase;
    z-index: 10;
    font-weight: 500;
}

@media(max-width: 768px) {
    #sociala {
        text-align: center;
        padding-left: 0;
        margin-top: 8%;
    }
}

.social-cards h3 {
    color: var(--color-white);
}

.social-cards a {
    text-decoration: none;
}

.social-card {
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card img {
    width: 80px;
    margin: 10px auto;
    border-radius: 50%;
}

.social-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.social-card p {
    font-size: 0.9em;
    color: #f2f2f2;
    margin-bottom: 20px;
}

.social-card:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
}

/* Instagram Card */
.instagram-card {
    background: linear-gradient(135deg, #e1306c, #bc2a8d);
}

.instagram-card .follow-btn {
    background: #e1306c;
}

/* Facebook Card */
.facebook-card {
    background: linear-gradient(135deg, #4267B2, #385898);
}

.facebook-card .follow-btn {
    background: #4267B2;
}

/* Button Styles */
.follow-btn {
    padding: 10px 20px;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.follow-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .social-card {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Märkessektion styling */
.brands {
    text-align: center;
    margin: 3% 0;
    padding: 2% 0;
    background-color: var(--color-whitesmoke);
}

/*
.brands h2 {
    font-size: 1.5rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}
*/
/* Flexbox-layout för logotyperna */
.brand-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Styling för varje logotyp */
.brand-logo {
    flex: 1 1 150px;
    max-width: 150px;
    /* Begränsa storleken på varje logotyp */
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    /* Gör logotyperna svartvita */
    transition: filter 0.3s ease;
}

/* Färgade logotyper vid hover */
.brand-logo img:hover {
    filter: grayscale(0%);
}

/* Responsiv design */
@media (max-width: 768px) {
    .brand-logo {
        flex: 1 1 45%;
        /* Gör två logotyper per rad på mindre skärmar */
    }
}

@media (max-width: 480px) {
    .brand-logo {
        flex: 1 1 100%;
        /* Gör en logotyp per rad på ännu mindre skärmar */
    }
}

/*För notisen om öppettider*/
.salong-notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 30, 0.68);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 99999;
    animation: salongFadeIn 0.3s ease;
}

.salong-notice {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--color-whitesmoke);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    animation: salongSlideUp 0.35s ease;
    font-family: 'Roboto', sans-serif;
}

.salong-notice-top {
    background: linear-gradient(135deg, #D72638, #b71f2f);
    color: white;
    padding: 22px 24px 18px;
    border-radius: 16px 16px 0 0;
}

.salong-notice-top h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding-right: 30px;
    line-height: 1.3;
}

.salong-notice-body {
    padding: 24px;
    color: var(--color-gray);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0 0 16px 16px;
}

.salong-notice-body p {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.7;
}

.salong-notice-highlight {
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
    background: rgba(215, 38, 56, 0.08);
    border-left: 4px solid #D72638;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.98rem;
    line-height: 1.5;
}

.salong-notice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.salong-notice-btn {
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    font-family: inherit;
    min-height: 44px;
}

.salong-notice-btn-primary {
    background-color: #D72638;
    color: #fff;
}

.salong-notice-btn-primary:hover {
    background-color: rgba(215, 38, 56, 0.7);
}

.salong-notice-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
    transition: 0.2s ease;
    z-index: 2;
}

.salong-notice-close:hover {
    opacity: 1;
    transform: scale(1.08);
}

@keyframes salongFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes salongSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .salong-notice-overlay {
        padding: 14px;
        align-items: center;
    }

    .salong-notice {
        width: 100%;
        max-height: calc(100vh - 28px);
        border-radius: 14px;
    }

    .salong-notice-top {
        padding: 20px 20px 16px;
        border-radius: 14px 14px 0 0;
    }

    .salong-notice-top h3 {
        font-size: 1.25rem;
        padding-right: 26px;
    }

    .salong-notice-body {
        padding: 20px;
        border-radius: 0 0 14px 14px;
    }

    .salong-notice-body p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .salong-notice-highlight {
        font-size: 0.95rem;
        padding: 11px 12px;
    }

    .salong-notice-actions {
        justify-content: stretch;
    }

    .salong-notice-btn {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .salong-notice-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .salong-notice {
        width: 100%;
        max-height: 88vh;
        border-radius: 14px 14px 0 0;
    }

    .salong-notice-top {
        padding: 18px 18px 14px;
        border-radius: 14px 14px 0 0;
    }

    .salong-notice-top h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .salong-notice-body {
        padding: 18px;
        border-radius: 0;
    }

    .salong-notice-body p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .salong-notice-highlight {
        font-size: 0.92rem;
        padding: 10px 12px;
    }

    .salong-notice-close {
        top: 10px;
        right: 12px;
        font-size: 1.45rem;
    }

    .salong-notice-btn {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .salong-notice-top h3 {
        font-size: 1rem;
    }

    .salong-notice-body p,
    .salong-notice-highlight,
    .salong-notice-btn {
        font-size: 0.9rem;
    }
}