@font-face {
    font-family: 'Yekan';
    src: url('fonts/Yekan.eot?#iefix') format('embedded-opentype'),
         url('fonts/Yekan.woff2') format('woff2'),
         url('fonts/Yekan.woff') format('woff'),
         url('fonts/Yekan.ttf') format('truetype'),
         url('fonts/Yekan.svg#Yekan') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Yekan', sans-serif;
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content {
    flex-grow: 1;
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 5px;
    background-color: rgba(50, 115, 220, 0.8);
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 5px;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.header {
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.header-text {
    position: relative;
    display: inline-flex;
}

.header-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 0;
}

.header h1 {
    color: rgb(0, 0, 0);
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: clamp(1.2em, 4vw, 2.7em);
    padding: 10px;
    font-weight: bold;
    z-index: 1;
    white-space: nowrap;
}

.sections {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #f2f2f2;
    flex-grow: 1;
    background-image: url('images/Anonyms-white.png');
    background-size: 168px 168px;
    background-repeat: repeat;
}

.section {
    text-align: center;
    margin: 20px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 0.8em;
}

.section a {
    text-decoration: none;
    color: rgb(14, 14, 14);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.section img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.section:hover img {
    transform: scale(1.05);
}

.section h3 {
    margin-top: 20px;
    flex-shrink: 0;
}

.footer {
    background-color: rgba(50, 115, 220, 0.8);
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}
    
.footer .quote {
    font-weight: bold;
    color: #000000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-right p {
    margin: 0;
}

.footer-right a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-right a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header {
        background-size: cover;
        margin-bottom: 0
    }

    .header h1 {
        font-size: clamp(1em, 4vw, 2em);
    }

    .navbar {
        flex-direction: row;
        align-items: center;
    }

    .navbar a {
        width: flex;
        text-align: center;
        margin: 3px;
        padding: 8px;
    }

    .sections {
        padding: 10px;
    }

    .section {
        flex-basis: flex;
        margin: 10px 10px;
        padding: 20px;
        border-radius: 10px;
        height: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer {
        font-size: 10px;
    }
}