:root {
    --primary-color: #c1272d; /* Moroccan Red */
    --secondary-color: #006233; /* Moroccan Green */
    --gold: #d4af37;
    --bg-color: #f8f9fa;
    --text-color: #333333;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    overflow: hidden;
    color: var(--text-color);
}

.presentation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, #ffffff, #eeeeee);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.content {
    background: white;
    padding: 50px 80px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 80%;
    border-left: 8px solid var(--primary-color);
    position: relative;
}

.content::before {
    content: "★";
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 40px;
    color: var(--secondary-color);
}

.slide-body {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}

.slide-text {
    flex: 1.5;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    object-fit: cover;
    border: 3px solid #eee;
}

.presenter {
    font-size: 1.4em;
    color: var(--text-color);
    margin: 15px 0;
    padding: 10px;
    background-color: #fce8e8;
    border-radius: 8px;
    display: inline-block;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    display: inline-block;
}

.title-slide h2 {
    border-bottom: none;
    font-size: 1.5em;
    font-weight: 400;
    color: #555;
}

ul {
    font-size: 1.2em;
    line-height: 1.8;
}

li {
    margin-bottom: 15px;
}

li strong {
    color: var(--primary-color);
}

/* Controls */
.controls {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    gap: 30px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: 'Montserrat', sans-serif;
}

button:hover {
    background-color: #a01d22;
    transform: scale(1.05);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.3);
}

/* Progress bar */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    z-index: 20;
}

.progress-bar {
    height: 100%;
    background-color: var(--gold);
    width: 0%;
    transition: width 0.4s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .slide-body {
        flex-direction: column;
    }
    .slide-image {
        width: 100%;
    }
    .slide-image img {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 30px 40px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }
    ul { font-size: 1em; }
    .presenter { font-size: 1.1em; }
}