/* General styles */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #ede7e7;
    font-family: Arial, sans-serif;
}
.header-title {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}


.mero {
    background: linear-gradient(to right, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute; 
    top: 80%; 
    right: 80%;
    font-size: 24px; 
}

.tube {
    background: linear-gradient(to right, #FF512F, #DD2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute; /* Make the element absolutely positioned */
    top: 80%; /* Align to the top */
    right: 65%; /* Align to the right */
    font-size: 24px; /* Adjust the font size as needed */
}


/* Header menu styles */
.topnav {
    width: 100%;
    background-color: #333;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding: 0px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.topnav a {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-color: #4CAF50;
    color: white;
}

body {
    padding-top: 0px; /* Adjust to account for the fixed header */
}

/* Handle styles */
.handle {
    width: 360px;
    height: 50px;
    background: linear-gradient(135deg, #3a3a3a, #000);
    border-radius: 150px 150px 0 0;
    position: relative;
    margin-top: 20px;
    margin-right: 15px;
    margin-bottom: -19.9px;
    margin-left: 20px;
}

.handle:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 40px;
    background: #fff;
    border-radius: 140px 140px 0 0;
}

/* Radio container and components */
.radio-container {
    position: relative;
    width: 400px;
    height: 200px;
    background-color: #333;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.radio-body {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Handle styles */
.handle {
    width: 360px;
    height: 50px;
    background: linear-gradient(135deg, #3a3a3a, #000);
    border-radius: 150px 150px 0 0;
    position: relative;
    margin-top: 20px;
    margin-right: 15px;
    margin-bottom: -19.9px;
    margin-left: 20px;
}

.handle:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 40px;
    background: #fff;
    border-radius: 140px 140px 0 0;
}

.radio-speaker {
    width: 40%;
    height: 70%;
    background: linear-gradient(273deg, #0d0e0e, #e15723, #d14529, #e123df, #3d9e13, #23c4e1);
    background-size: 600% 600%;
    border-radius: 10px;
    margin: 20px 0 10px 0;
    float: left;
    animation: gradientAnimation 15s ease infinite;
}

.radio-display {
    width: 50%;
    height: 40px;
    background-color: #000;
    color: #0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 5px;
    box-sizing: border-box;
    float: right;
}

.radio-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 50%;
    float: right;
    margin-top: -15px;
}

.radio-button {
    width: 48%;
    padding: 4px;
    background-color: #271010;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 25px;
    cursor: pointer;
}

.radio-knob {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: #f59898;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.knob-center {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
}

.radio-antenna {
    position: absolute;
    top: -99px;
    left: 10%;
    width: 5px;
    height: 100px;
    background-color: #2d2727;
    transform: rotate(45deg);
    transform-origin: bottom;
}

.fm-list-container {
    margin-top: 10px;
    text-align: center;
}

.toggle-fm-list {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-fm-list:hover {
    background-color: #555;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgb(255, 110, 60); /* New color */
    display: inline-block;
    margin-left: 5px;
}

.fm-list {
    display: none;
    width: 100%;
    max-width: 400px;
    max-height: 250px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.fm-list.show {
    display: block;
}

.fm-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.fm-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

.fm-list li:last-child {
    border-bottom: none;
}

.like-button {
    padding: 5px 10px;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Keyframes */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Footer Styles */
.footer {
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 1px 1px 3px #ffffff;
    color: #aa00ff;
    clear: both;
    margin-top: 40px;
}

.footer img {
    width: 16px;
    height: 16px;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .handle {
        width: 250px;
        height: 35px;
    margin-bottom: -20px;
    }
    .handle:before {
        width: 200px;
        height: 35px;
    }
    .radio-container {
        width: 300px;
        height: 150px;
    }
    .radio-speaker {
        width: 45%;
        height: 70%;
        margin: 0px 0 10px 0;
    }
    .radio-display {
        width: 45%;
        height: 35px;
        font-size: 10px;
        margin-bottom: 15px;
    }
    .radio-buttons {
        gap: 3px;
        width: 45%;
        margin-top: -10px;
    }
    .radio-button {
        width: 48%;
        padding: 3px;
        font-size: 19px;
    }
    .radio-knob {
        right: 5px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
    .knob-center {
        width: 15px;
        height: 15px;
    }
    .radio-antenna {
        top: -80px;
        left: 5%;
        width: 4px;
        height: 80px;
    }
    .fm-list-container {
        margin-top: 15px;
    }
    .toggle-fm-list {
        padding: 8px 15px;
        margin-bottom: 8px;
    }
    .fm-list {
        max-width: 300px;
        max-height: 200px;
    }
    .fm-list li {
        padding: 8px 15px;
    }
    .like-button {
        padding: 3px 8px;
    }
    .mero {
        background: linear-gradient(to right, #ffffff, #ffffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: absolute; /* Make the element absolutely positioned */
        top: 70%; /* Align to the top */
        right: 73%; /* Align to the right */
        font-size: 24px; /* Adjust the font size as needed */
    }
    
    .tube {
        background: linear-gradient(to right, #FF512F, #DD2476);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: absolute; /* Make the element absolutely positioned */
        top: 70%; /* Align to the top */
        right: 50%; /* Align to the right */
        font-size: 24px; /* Adjust the font size as needed */
    }
}

@media (max-width: 480px) {
    .mero {
        background: linear-gradient(to right, #ffffff, #ffffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: absolute; /* Make the element absolutely positioned */
        top: 0%; /* Align to the top */
        right: 23%; /* Align to the right */
        font-size: 24px; /* Adjust the font size as needed */
    }
    
    .tube {
        background: linear-gradient(to right, #FF512F, #DD2476);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: absolute; /* Make the element absolutely positioned */
        top: 0; /* Align to the top */
        right: 0; /* Align to the right */
        font-size: 24px; /* Adjust the font size as needed */
    }
    .handle {
        width: 200px;
        height: 30px;
    }
    .handle:before {
        width: 150px;
        height: 30px;
    }
    .radio-container {
        width: 250px;
        height: 120px;
    }
    .radio-speaker {
        width: 50%;
        height: 100%;
        margin: 0px 0 5px 0;
    }
    .radio-display {
        width: 40%;
        height: 30px;
        font-size: 8px;
        margin-bottom: 10px;
    }
    .radio-buttons {
        gap: 2px;
        width: 40%;
        margin-top: -5px;
    }
    .radio-button {
        width: 48%;
        padding: 2px;
        font-size: 13px;
    }
    .radio-knob {
        right: 10px;
        bottom: 10px;
        width: 30px;
        height: 30px;
    }
    .knob-center {
        width: 10px;
        height: 10px;
    }
    .radio-antenna {
        top: -60px;
        left: 2%;
        width: 3px;
        height: 60px;
    }
    .fm-list-container {
        margin-top: 10px;
    }
    .toggle-fm-list {
        padding: 5px 10px;
        margin-bottom: 5px;
    }
    .fm-list {
        max-width: 250px;
        max-height: 150px;
    }
    .fm-list li {
        padding: 5px 10px;
    }
    .like-button {
        padding: 2px 5px;
    }
}
