:root {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
* {
    text-decoration: none;
    color: white;
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: #555;
    overflow: auto;
    width: 100%;
}

.menu {
    width: 100%;
    height: auto;
    background: #162447;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    margin: 0;
}
.menu .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0 10px 10px 10px; /* Sağ ve sol kenardan 10 px, butonlar arasına 10 px boşluk */
    border-bottom: solid 1px rgba(255, 255, 255, 0.2); /* Daha uyumlu ve hafif çizgi */
    border-top: solid 1px rgba(255, 255, 255, 0.2); /* Daha uyumlu ve hafif çizgi */
    position: relative;
    width: calc(100% - 20px); /* Kenar boşluklarını hesaba kat */
    background: linear-gradient(45deg, #2AA2E3, #1E90FF); /* Gradient arka plan rengi */
    color: #fff; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; /* Renk, gölge ve dönüşüm değişimi için geçiş efekti */
    box-shadow: 0 6px #1E90FF; /* Daha belirgin 3D efekti için gölge */
    border-radius: 5px; /* Butonlara yuvarlak köşeler ekleyelim */
}
.menu .btn:active {
    box-shadow: 0 3px #1E90FF; /* Tıklama durumunda gölge değişimi */
    transform: translateY(3px); /* Tıklama durumunda butonun aşağı hareketi */
}
.menu .btn:hover {
    background: linear-gradient(45deg, #FFA500, #FF4500); /* Fareyle üzerine gelindiğinde değişecek gradient renk */
    box-shadow: 0 3px #FF8C00; /* Hover durumunda gölge değişimi */
    transform: translateY(3px) scale(1.05); /* Hover durumunda butonun aşağı hareketi ve büyümesi */
}
.menu .submenu {
    background: #333; 
    overflow: hidden;
    max-height: 0;
    transition: max-height .8s ease-out;
    width: 100%;
}
.menu .submenu a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    width: calc(100% - 20px); /* Kenar boşluklarını hesaba kat */
    margin: 0 10px 10px 10px; /* Sağ ve sol kenardan 10 px, butonlar arasına 10 px boşluk */
    background: #444; 
    color: #fff; 
    border-radius: 5px; /* Alt menü butonlarına da yuvarlak köşeler ekleyelim */
}
.menu .submenu a:hover {
    background: #555; 
}
.menu .submenu a::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
    background: #e43f5a;
    opacity: 0;
    transition: all .5s;
}
.menu .submenu a:hover::before {
    opacity: 1;
}
.item:target .submenu {
    max-height: 70rem;
}
