@font-face {
    font-family: Quattrocento;
    src: url('font/Quattrocento-Regular.ttf');
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(33, 52, 72);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgb(234, 224, 207);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(234, 224, 207, 0.3);
}

.loader-text {
    color: rgb(234, 224, 207);
    font-family: 'Quattrocento', sans-serif;
    margin-top: 20px;
    font-size: 18px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    margin: 150px;
    background-color: rgb(234, 224, 207);
}

.content {
    display: flex;
    flex-wrap: wrap;
    column-gap: 50px;
    row-gap: 100px;
}

.content-large {
    width: 100%;
    height: auto;
    padding: 30px;
    background-color: rgb(33, 52, 72);
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.content .Hypothesis, .content .Introduction, .content .Methodology, .content .Results, .content .StatisticalAnalysis, .content .Conclusion, .content .AboutRZander, .content .AboutHBui, .content .IntroductionToProject {
    width: 400px;
    height: auto;
    padding: 25px;
    background-color: rgb(33, 52, 72);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content .Hypothesis:hover, .content .Introduction:hover, .content .Methodology:hover, .content .Results:hover, .content .StatisticalAnalysis:hover, .content .Conclusion:hover, .content .AboutRZander:hover, .content .AboutHBui:hover, .content .IntroductionToProject:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

p, h1, h2, h3, li {
    font-family: 'Quattrocento', sans-serif;
    color: rgb(234, 224, 207);
}

p {
    line-height: 1.5;
    font-size: 18px;
    text-align: justify;
}

h1 {
    line-height: 1.75;
}

h2 {
    line-height: 1.625;
}

h3 {
    line-height: 1.5;
}

li {
    line-height: 1.5;
}

.navbar {
    background-color: rgb(33, 52, 72);
    padding: 15px 30px;
    margin: -150px -150px 20px -150px;
    display: flex;
    justify-content: center;
    gap: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar a {
    color: rgb(234, 224, 207);
    text-decoration: none;
    font-family: 'Quattrocento', sans-serif;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(234, 224, 207, 0.15);
    transform: translateY(-2px);
}

header {
    background-color: rgb(33, 52, 72);
    color: white;
    padding: 30px 50px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

header h1, header h2, header h3 {
    color: rgb(234, 224, 207);
}

header img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.02);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    body {
        margin: 20px;
    }

    .navbar {
        margin: -20px -20px 20px -20px;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }

    .navbar a {
        font-size: 14px;
    }

    header {
        padding: 15px 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header h2 {
        font-size: 1.1em;
    }

    header h3 {
        font-size: 0.9em;
    }

    .content {
        row-gap: 30px;
    }

    .content .Hypothesis, .content .Introduction, .content .Methodology, .content .Results, .content .StatisticalAnalysis, .content .Conclusion, .content .AboutRZander, .content .AboutHBui, .content .IntroductionToProject {
        width: 100%;
        box-sizing: border-box;
    }

    .content-large {
        padding: 15px;
    }

    p {
        font-size: 16px;
    }
}