.yt {
    font-family: 'Sriracha', cursive;
    font-size: 70px;
    text-transform: uppercase;
    background: linear-gradient(to right, #002fff, #0066ff, #00d9ff, #0066ff, #002fff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
    margin: 0 auto;
    text-align: center;
    margin-top: 150px;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.btn {
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.btn1{
    background-color: #ff0000;
    color: white;
}

.btn2{
    background-color: #7289da;
    color: white;
}

.btn3{
    background: linear-gradient(to right, #833AB4, #FD1D1D, #FCB045);
    color: white;
}

.btn:hover {
    opacity: 0.7;
}

.buton {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .yt {
        font-size: 40px;
        padding: 0 20px;
    }

    .buton {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        text-align: center;
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50px;
    height: 50px;
    overflow: hidden;
    transition: width 0.3s ease;
    border-radius: 25px;
    text-decoration: none;
    padding: 0 20px ;
    font-size: 18px;
    position: relative;
    color: white;
    gap: 13px;
}

.btn .btn-text {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.btn:hover {
    width: 130px;
}

.btn:hover .btn-text {
    opacity: 1;
}

.btn i {
    font-size: 30px;
    flex-shrink: 0;
    color: white;
    width: 30px;
    text-align: center;
    margin-left: 0;
    padding-left: 8px;
}

.slider {
    background: linear-gradient(145deg, #444, #222);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), inset 0 -2px 5px rgba(0,0,0,0.7);
    border-radius: 30px;
    height: 34px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.4s, box-shadow 0.3s, transform 0.3s ease;
    font-size: 16px;
    position: relative;
}

.sun, .moon {
    color: #fff;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

input:checked + .slider .fa-moon {
    opacity: 1;
}

input:not(:checked) + .slider .fa-sun {
    opacity: 1;
}

body.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 70px;
    height: 35px;
}

.dark-toggle input {
    display: none;
}

.slider i {
    color: white;
    font-size: 14px;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-ball {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: calc(50% - 9px);
    transform: translateY(-50%);
    transition: left 0.3s ease;
    box-shadow:
    0 2px 5px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.8);
    z-index: 1;
}

input:not(:checked) + .slider .toggle-ball {
    left: calc(32% - 1px);
}

input:checked + .slider .toggle-ball {
    left: 40px;
}

.slider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 27px;
    right: 25px;
    height: 6px;
    background-color: #1a1a1a;
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 0;
}

.sun {
    left: 8px;
}

.moon {
    right: 8px;
}

input:checked + .slider {
    background: linear-gradient(145deg, #222, #444);
    box-shadow: inset 0 2px 7px rgba(255,255,255,0.2), inset 0 -2px 7px rgba(0,0,0,0.9);
}

.slider:hover {
    transform: scale(1.05);
}

.btn:focus,
.btn:active {
  outline: none;
  background-color: initial; /* veya kendi varsayılan rengine göre */
  box-shadow: none;
}

.btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn1:focus,
.btn1:active {
  background-color: #ff0000; /* Butonun normal arka plan rengi */
}

.btn2:focus,
.btn2:active {
  background-color: #7289da;
}

.btn3:focus,
.btn3:active {
  background: linear-gradient(to right, #833AB4, #FD1D1D, #FCB045);
}

#main-content {
    padding-top: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

#main-content.show {
    opacity: 1;
    transform: translateY(0);
}