/* === GLOBAL STYLING === */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('images/background.jpg') center center / 100% 100% no-repeat fixed;
    color: white;
    overflow: hidden;
}
/* === HEADER === */
header {
    display: flex;
    justify-content: space-between; /* Sprider ut innehållet */
    align-items: center;
    background-color: #191b1f;
    padding: 0px;  /* Justera padding så den inte påverkar höjden */
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 80px; /* Fast höjd på headern */
}

/* Header Right */
.header-right {
    margin-left: auto; /* Tvingar loggan till höger */
}

.header-right img {
    width: 320px;
    height: 50px;
}

/* === Header Left === */
.header-left-columns {
    background-color: #2c2f33;  /* Bakgrundsfärgen */
    padding: 0 20px;  /* Justera padding så att det passar bättre inom headerns höjd */
    color: white;
    font-size: 16px;
    font-weight: bold;
    max-width: 500px; /* Begränsar bredden */
    border-radius: 0; /* Tar bort de rundade hörnen */
    height: 100%;  /* Säkerställ att den inte påverkar höjden på headern */
}

/* Specifik styling för röd text på Spalt 1 */
.header-left-column p:first-child {
    color: #ff8800;  /* Gör första p-elementet röd */
    margin-bottom: 15px;  /* Minska avståndet mellan texterna */
}

/* För att hålla Exempeltext vit och justera höjdavståndet */
.header-left-column p:last-child {
    color: white;  /* Håller Exempeltext vit */
    margin-top: 0;  /* Tar bort eventuellt extra avstånd ovanför */
}

/* Gör länken vit och tar bort blått när man hovrar */
#example-text {
    color: white;  /* Gör länken vit */
    text-decoration: none;  /* Tar bort understrykning */
}

#example-text:hover {
    color: #ff8800;  /* Håller länken vit även när man hovrar */
}

/* === JUSTERA MAIN FÖR ATT LÅTA HEADERN VARA OVANFÖR CONTAINERN === */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 120px; /* Ökar padding så att innehållet inte hamnar under logotypen */
    margin-right: 380px; /* Justerar innehållet så det inte täcks av sidebaren */
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body, main {
    overflow: hidden !important; /* Prevent unwanted scrolling */
}

body.flipped main {
    overflow: hidden; /* Ensure main doesn’t get a scrollbar */
}

/* === SIDEBAR (nu på höger sida) === */
.sidebar {
    width: 360px;
    background-color: #191b1f;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0; /* Flyttar sidebaren till höger */
    top: 0;
    padding-top: 120px; /* Anpassar för att hålla logotypens höjd */
}

/* === SIDEBAR FOOTER (BILDER) === */
.sidebar-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #24272c;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.footer-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-footer img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.sidebar-footer img:hover {
    transform: scale(1.1);
}

.hover-text {
    position: absolute;
    bottom: 50px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.footer-item:hover .hover-text {
    opacity: 1;
}

/* === NOTIFICATIONS === */
.notifications-container, .to-be-added-container {
    padding: 10px;
    background-color: #24272c;
    border-radius: 8px;
    margin-bottom: 20px;
}

.notifications-container h3,
.to-be-added-container h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.notifications-container ul, 
.to-be-added-container ul {
    list-style-type: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
}

/* === NOTIFICATIONS STYLING === */
.notifications-container ul li,
.to-be-added-container ul li {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 14px;
    background-color: #313336;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: bold; /* Gör texten fet */
    transition: color 0.3s ease-in-out; /* Smidig färgändring */
}

/* === ÄNDRA FÄRG VID HOVER === */
.notifications-container ul li a {
    color: white; /* Standardfärg */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.notifications-container ul li a:hover {
    color: #ff8800; /* Ändrar färg vid hover */
}

/* === NOTIFICATION COLORS === */
.notification.success { border-left: 5px solid #28a745; }
.notification.info { border-left: 5px solid #17a2b8; }
.notification.promo { border-left: 5px solid #ffc107; }

/* === CONTENT STYLING === */
.container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.container-item {
    background-color: #24272c;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.container-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list .checkmark {
    position: relative;
    display: block; /* Gör att varje listpunkt hamnar på en egen rad */
    margin-bottom: 8px; /* Lägg till mellanrum mellan punkterna */
    padding-left: 25px; /* För att ge utrymme åt ikonen */
}

.custom-list .hover-text {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.custom-list .checkmark:hover .hover-text {
    opacity: 1;
}

.cta-button {
    color: white; /* Ändra till önskad färg */
    text-decoration: none; /* Tar bort understrykning */
    font-weight: bold; /* Gör texten mer framträdande */
}

.cta-button:hover {
    color: #ff8800; /* Ändra färg vid hovring (valfri) */
}

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 120px; 
    margin-right: 380px; 
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    
    /* New properties for scroll */
    height: calc(100vh - 120px); /* Full height minus header */
    overflow-y: auto; /* Enable vertical scrolling */
    position: fixed; /* Fix position to prevent overlap */
    left: 0; /* Align to left edge */
    width: calc(100% - 380px); /* Full width minus sidebar */
    padding-bottom: 10px; /* Space at bottom */
}

/* Optional: Style scrollbar (for modern browsers) */
/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #ff8800;
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: #24272c;
}

/* Enable sidebar scrolling when flipped */
body.flipped .sidebar {
    overflow-y: auto;
}

/* Enable scrolling when flip card is flipped */
body.flipped, body.flipped main {
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === FLIP CARD STYLING === */
.flip-card {
    background: transparent;
    border-radius: 10px;
    padding: 10px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    width: 70%;
    height: auto;
    transition: all 0.3s ease-in-out;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 300px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    min-height: 300px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #24272c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px; /* Likadan fontstorlek på båda sidor */
    color: white; /* Säkerställ att texten är vit */
}

.flip-card-back {
    transform: rotateY(180deg);
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* === TEXT FORMATERING === */
.flip-card h1, .flip-card h2, .flip-card h3, .flip-card h4 {
    margin: 15px 0;
    color: white;
}

.flip-card ul, .flip-card p {
    margin: 5px 0;
    color: white;
}

.flip-card ul{
    list-style: none;
    padding: 0;
}

.flip-card ul li{
    font-size: 18px;
    margin: 5px 0;
}

.flip-card p {
    font-size: 16px;
    line-height: 1.5;
}

/* === FLIP ARROW === */
.flip-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ff8800;
    opacity: 0.7;
    animation: blink 1.5s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.flip-card:hover .flip-arrow {
    opacity: 1;
}

/* Partner content container, justera layouten */
.partner-content {
    display: flex;
    flex-direction: column;  /* För en vertikal layout */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
    background-color: #24272c;  /* Bakgrundsfärg för innehåll */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* Lägger till en lätt skugga */
    overflow-y: auto;  /* Möjliggör rullning om innehållet är för stort */
}

/* === PARTNER BACK === */
.partner-back {
    background-color: #24272c;  /* Bakgrundsfärg på partner-back */
    width: 100%;  /* Full bredd */
    padding: 20px;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;  /* Flex för vertikal layout */
    justify-content: flex-start;
    gap: 20px;  /* Mellanrum mellan sektioner */
    max-height: 750px;  /* Maximal höjd, justera efter behov */
    overflow-y: auto;  /* Gör så att vi kan scrolla när innehållet är för stort */
}

/* === TEXT FORMATERING === */
.partner-back h1, .partner-back h2, .partner-back h3, .partner-back h4 {
    margin: 15px 0;
    color: white;
    text-align: center;  /* Centrerar texten */
}

.partner-back ul, .partner-back p {
    margin: 0px 0;
    color: white;
    text-align: center;  /* Centrerar texten */
}

.partner-back ul {
    list-style: none;
    padding: 0;
}

.partner-back ul li {
    font-size: 18px;
    margin: 0px 0;
    text-align: center;  /* Centrerar texten */
}

.partner-back p {
    font-size: 16px;
    line-height: 1;
    text-align: center;  /* Centrerar texten */
}



/* === AGENT PRESENTATION === */
.agent-presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #191b1f;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.agent-container {
    display: flex;
    align-items: center;
    background: #24272c;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 100%;
}

.baghera-container {
    display: flex;
    align-items: center;
    background: #3235c5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 7px 10px rgb(29, 35, 122);
    max-width: 800px;
    width: 100%;
}

.agent-image {
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

.agent-text {
    color: white;
}

.agent-text h2 {
    margin: 0 0 10px;
}

.agent-text p {
    margin: 0;
}
.agent-text a {
    text-decoration: none;
}

.agent-presentation a {
    text-decoration: none; /* Tar bort underlinjen */
}

/* === SLIDER */

.slider-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    user-select: none;
}
.slider-title a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease-in-out;
    user-select: none;
}
.slider-title a:hover {
    color: #ff8800; /* Ändrar färg vid hover */
    ;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: auto;
    overflow: hidden;
    background: #1f2125;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: white;
    user-select: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 10px;
}
.slide img {
    width: 100%;
    border-radius: 5px;
}
.slider-header {
    font-size: 16px;
    color: #ccc;
    font-weight: bold;
    margin-bottom: 5px;
}
.caption {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
}
.price {
    font-size: 16px;
    color: #4caf50;
    font-weight: bold;
}

