/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 3rem;
    color: #2c3e50;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Main Page Styles */
.domain-section {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.domain-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.domain-one {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.9)), url('https://source.unsplash.com/random/1200x800?nature') center/cover no-repeat;
}

.domain-two {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.8), rgba(39, 174, 96, 0.9)), url('https://source.unsplash.com/random/1200x800?technology') center/cover no-repeat;
}

.domain-section .content {
    text-align: center;
    color: white;
    padding: 30px;
    max-width: 600px;
    z-index: 1;
}

.domain-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.domain-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Domain Pages Styles */
.domain1-page {
    background-color: #ebf5fb;
}

.domain2-page {
    background-color: #e9f7ef;
}

.content-section {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    width: 100%;
    min-height: 600px;
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.domain1-page h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.domain2-page h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.navigation {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}

.back-btn {
    background-color: #2c3e50;
    color: white;
}

.back-btn:hover {
    background-color: #1a252f;
}

.domain1-page .back-btn {
    background-color: #3498db;
}

.domain1-page .back-btn:hover {
    background-color: #2980b9;
}

.domain2-page .back-btn {
    background-color: #2ecc71;
}

.domain2-page .back-btn:hover {
    background-color: #27ae60;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive Styles */
@media (min-width: 768px) {
    main {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .domain-section {
        flex: 1 0 calc(50% - 15px);
        height: 400px;
    }
}

@media (max-width: 767px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .domain-section h2 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 30px;
    }
}

.experiment-container {
    display: none;
}

.experiment-container.active {
    display: block;
}

.condition-container {
    display: none;
    margin-top: 20px;
}

.condition-container.active {
    display: block;
}

.phase-container {
    display: none;
    margin-top: 20px;
}

.phase-container.active {
    display: block;
}

.content-toggle {
    display: none;
}

.content-toggle.active {
    display: block;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.btn-experiment, .btn-condition, .btn-phase, .toggle-btn {
    flex: 1;
    background-color: white;
    color: #333;
}

.btn-experiment.active, .btn-condition.active, .btn-phase.active, .toggle-btn.active {
    background-color: #2c3e50;
    color: white;
}

.toggle-btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.pdf-container {
    margin: 20px 0;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: white;
}

.text-container {
    margin: 15px 0;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: white;
}

.pdf-container object {
    width: 100%;
    height: 500px;
}

.image-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-item {
    margin: 10px 0;
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-item p {
    margin-top: 5px;
    font-size: 14px;
}

ol {
    counter-reset: item;
    list-style-type: none;
}

ol > li {
    counter-increment: item;
    position: relative;
}

ol > li:before {
    content: counter(item) ". ";
    position: relative;
}

ol ol > li {
    counter-increment: subitem;
}

ol ol > li:before {
    content: counter(item) "." counter(subitem) " ";
    position: relative;
}

ol ol {
    counter-reset: subitem;
}
