@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #EEEEEE;
    color: #476072;
}

html {
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #334257;
    z-index: 100;
    color: #F6F5F5;
}

.header a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

/* Section genel stil */


#city-population,
#total-population {
    margin: 100px auto;
    width: 100%;
    max-width: 900px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Başlık */
#city-population h2,
#total-population h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1E56A0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

/* Tablo genel stil */
#population-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 450;
}

/* Tablo başlığı */
#population-table thead tr {
    background-color: #1E56A0;
    color: #fff;
    text-align: left;
}

#population-table th,
#population-table td {
    text-align: left;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.table-1 tbody td:nth-child(1) {
    font-weight: 600;
}

.table-2 tbody td:nth-child(2) {
    font-weight: 600;
}

/* Satır arka planları */
#population-table tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

#population-table tbody tr:hover {
    background-color: #e0e7ff;
    /* hover efekti */
}

th {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding: 12px;
    color: white;
    font-weight: bold;
}

th i {
    margin-left: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

th:hover i {
    color: #FFD700;
    /* Altın rengi hover efekti */
}

footer {
    padding: 20px;
    background-color: #334257;
    color: #F6F5F5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);

}

footer a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 30px 0 0 30px;
}

.nav-links-footer {
    list-style: none;
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    flex-direction: column;
    gap: 25px;
}

@media (max-width: 768px) {

    .header {
        padding: 10px 15px;
        gap: 30px;
    }

    .header a {
        font-size: 1rem;
    }

    .nav-link a {
        font-size: 0.8rem;
        font-weight: 600;
    }

    #city-population {
        margin: 100px auto;
        width: 90%;
        max-width: 600px;
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    #total-population {
        margin: 100px auto;
        width: 80%;
        max-width: 600px;
        background-color: #fff;
        padding-top: 20px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    #total-population #population-table{
        font-size: 1rem;
    }

    #population-table {
        width: 20%;
        border-collapse: collapse;
        margin-top: 20px;
        font-family: "Montserrat", sans-serif;
        font-size: 0.72rem;
        font-weight: 450;
        align-items: center;
    }

}