
nav {
    flex-grow: 1;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Linkleri ortalamak için */
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
    position: relative; /* Ensure the submenu is positioned relative to the parent */
}

nav ul li a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    background-color: #111;
}

nav ul li:hover .submenu,
nav ul li .submenu:hover {
    display: block; /* Ensure submenu is visible on hover */
}

nav ul li:hover .submenu {
    display: block; /* Show submenu on hover */
}

form {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}




.month-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 10px;
}

.month {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.month label {
    flex: 1;
}

.month input {
    flex: 2;
    margin-right: 10px;
}

.month .result {
    flex: 1;
    text-align: right;
}

.month-header span, .month .result {
    flex: 1;
    text-align: right;
}

.month-header span:first-child, .month label {
    flex: 1;
    text-align: left;
}

.month-header span:nth-child(2), .month input {
    flex: 2;
    text-align: left;
}

.calculate-btn {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.calculate-btn:hover {
    background-color: #111;
}

#result {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
}

#results {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#results p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

footer {
    text-align: center;
    padding: 20px 10px; /* Üstten padding ekledik */
    background-color: #333;
    color: white;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Açıklama Metni İçin CSS */
.description {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    font-size: 1.1em;
}

.description h1, .description h2 {
    color: #333;
    margin-top: 20px;
}

.description p {
    margin: 10px 0;
}

.description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.description ul li {
    margin-bottom: 5px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    form, .description {
        width: 90%;
        margin: 20px auto;
    }

    .month-header, .month {
        flex-direction: column;
        align-items: flex-start;
    }

    .month input, .month .result {
        width: 100%;
        margin: 5px 0;
    }

    button {
        width: 100%;
    }
}

.adsense-sidebar-left,
.adsense-sidebar-right {
    position: fixed;
    top: 0;
    width: 160px; /* Adjust the width as needed */
    height: 100%;
    z-index: 1000;
}

.adsense-sidebar-left {
    left: 0;
}

.adsense-sidebar-right {
    right: 0;
}

.adsense-leaderboard {
    text-align: center;
    margin: 20px 0;
}

.content {
    margin-left: 180px; /* Adjust the margin to make space for the left sidebar */
    margin-right: 180px; /* Adjust the margin to make space for the right sidebar */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .adsense-sidebar-left,
    .adsense-sidebar-right {
        display: none;
    }

    .content {
        margin-left: 0;
        margin-right: 0;
    }
}

.submenu {
    display: none;
    position: absolute;
    top: 100%; /* Position submenu below the parent link */
    left: 0;
    background-color: #333; /* Match header background */
    padding: 10px;
    border: 1px solid #ccc;
    list-style: none;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.submenu li {
    margin: 5px 0;
}

.submenu li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.submenu li a:hover {
    text-decoration: underline;
}