@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
	margin: 0;
    padding: 0;
}

body, html {
	margin: 0;
	padding: 0;
    font-size: 1rem;
    line-height: 22px;
	background: url('../images/triangle.webp') no-repeat fixed center #eee;
	background-size:cover;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100px;
	padding: 0 20px;
	background: url('../images/wave.png') #480078 bottom no-repeat;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	z-index: 1001;
}

.logo, .menu-button, .navbar, .radio-player {
	flex: 1;
}

.logo img {
	height: 60px;
}

.menu-button {
	background: #480078;
	border: none;
	cursor: pointer;
	font-size: 30px;
	color: #ffffff;
	text-align: right;
	display:none;
}

.navbar{
	display:flex;
	justify-content:end;
	margin-right:10px;
}

.navbar ul {
    display: flex;
    gap: 5vh;
    position: relative; /* added for submenu positioning */
}

.navbar ul li {
    list-style: none;
    position: relative; /* for submenu positioning */
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    display: block;
    transition: 0.2s;
}

.navbar ul li a:hover {
    color: #ccc;
}

.navbar ul li a i {
    display: block;
}

.navbar ul li .submenu {
    display: none; /* hide submenu initially */
    position: absolute; /* position it absolutely */
    top: 100%; /* position it below the parent li */
    left: 0;
    background-color: #480078; /* background color */
	border-radius: 5px;
	border: 1px #480078 solid;
    padding: 0; /* remove default padding */
    margin: 0; /* remove default margin */
    list-style: none; /* remove default list style */
    z-index: 1000; /* ensure it appears above other content */
}

.navbar ul li .submenu li {
    width: 200px; /* set a width for the submenu items */
}

.navbar ul li .submenu li a {
    padding: 10px; /* add padding for submenu items */
    font-size: 14px; /* smaller font size for submenu items */
	color: #333;
	background-color: #FFF7FF; /* background color */
	border-radius: 10px;
	border: 5px #480078 solid;
}

.navbar ul li:hover .submenu,
.navbar ul li:focus-within .submenu {
    display: block; /* show submenu on hover or focus */
}

.navbar ul li .submenu li a:hover {
    background-color: #1e73be; /* change background on hover */
	color: #FFF;
	border-radius: 10px;
	border: 5px #480078 solid;
}

.radio-player {
	display: flex;
	gap:1vh;
	max-width: 450px;
	align-items:center;
	justify-content:center;
	/*padding-left:15px;*/
	position: relative; /* Change to absolute in mobile view */
	/*background: linear-gradient(to right,  rgba(216,68,159,1) 0%,rgba(223,113,172,0) 85%,rgba(224,121,174,0) 100%);
	height:80px;
	border-radius: 50px 0 0 50px;*/
}

.radio-player #stream_info{
	color:#fff;
	background-color: transparent;
	font-size:12px;
	width:200px;
	white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.radio-player #album_image{
	margin-top:5px;
}

.radio-player audio {
	width: 100%;
	max-width: 200px;
}

#playPauseBtn, #muteBtn, #togglePlaylistBtn{
	border: none;
	width: 30px;
	height: 30px;
	cursor: pointer;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: inline-block;
}

.playlist{
	background-color:transparent;
	background-image: url('../images/playlist-button.png');
}

.play {
	background-color:transparent;
	background-image: url('../images/play-button.png');
}

.pause {
	background-color:transparent;
	background-image: url('../images/pause-button.png');
}

.mute {
	background-color:transparent;
	background-image: url('../images/mute-button.png');
	margin-left:30px;
}

.unmute {
	background-color:transparent;
	background-image: url('../images/unmute-button.png');
	margin-left:30px;
}

#playPauseBtn:focus {
	outline: none;
}

#playlistPanel {
    display: block;
    position: fixed;
    top: -350px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #480078;
    width: 400px;
    overflow-y: auto;
    transition: top 0.5s ease; 
    z-index: 100; 
}

#song-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px; /* променете това според вашия дизайн */
}

.col {
    width: calc(25% - 10px); /* Размерът на колоната - 25% от родителя с малко място за между колоните */
    margin-bottom: 20px; /* променете това според вашия дизайн */
    box-sizing: border-box;
}

.song-list {
    width:380px;
    margin: 0px auto;
	padding-top:10px;
}

.song {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding:10px;
    position: relative;
    background-color: #f4f4f4;
    box-shadow: 0 0px 3px #0000003f;
    border-radius:5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.song:hover {
    background-color: #ddddddfa;
    cursor:pointer;
}

.position {
    font-size: 18px;
    color: #ffffff;
    margin-right: 30px;
    margin-top: 5px;
    background: #d8449f;
    padding: 3px 6px;
    border-radius: 50px;
    position: absolute;
    left: 45px;
    bottom: 10px;
	width: 20px;
}

.song img {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    margin-right: 10px; 
    padding: 3px; 
    box-sizing: border-box; 
    background: linear-gradient(45deg, #f09433 0%, #d8449f 25%, #480078 50%, #480078 75%, #bc1888 100%);
}



.song-details h3, .song-details p {
    margin: 0;
}

.song-details h3 {
    color: #333;
    font-size:14px;
    width: 214px;
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis;
}

.song-details p {
    font-size: 14px;
    color: #666;
}

.song.fade-in {
    animation: fadeInAnimation 0.5s;
}

.volume-slider {
	-webkit-appearance: none;
	width: 100px;
	height: 3px;
	border-radius: 5px;
	background: #d3d3d3;
	outline: none;
	opacity: 1;
	transition: opacity .2s;
}

.volume-slider:hover {
	opacity: 0.7;
}

.volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #ffffff;
	cursor: pointer;
}

.volume-slider::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #ffffff;
	cursor: pointer;
}

#broadcastList {
    display: flex;
    justify-content: center;
    margin-top: 120px;
    gap: 2vh;
    flex-wrap: wrap;
	padding:0 10px;
}


@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.fa {
    display: block;
    font: normal normal normal 24px/1 FontAwesome;
	animation: blink 2s infinite;
    font-size: inherit;
	color: #480078;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.program {
    background-color: #000;
    padding: 0px;
    color: #FFF;
    min-width: 250px;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0px 10px #00000030;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.program .label {
    padding: 3px 5px;
    font-size: 12px;
    font-family: "CormorantInfant", serif;
    color: #FFF;
    background-color: #ff0000;
    text-shadow: 0 0px 1px #000;
    position: absolute;
    top: -8px;
    left: 2px;
    border-radius: 5px;
}

.program.current .label {
    animation: blink 2s infinite;
}

.program.next .label {
    padding: 1px 2px;
    font-size: 10px;
    font-family: "CormorantInfant", serif;
    font-weight: 100;
    color: #ff0000;
    background-color: #FFF;
    position: absolute;
    top: 1px;
    left: 2px;
    border-radius: 5px;
}

.program .program-details {
    display: flex;
    align-items: center;
    width: 100%;  /* Ensure the details take up the full width */
}

.program img {
    width: 100px;
    height: 100px;  /* Ensure the image size is consistent */
    object-fit: cover;  /* Maintain aspect ratio and cover the area */
    border-radius: 3px;
    margin: 0;  /* Remove margin */
}

.program .info {
    display: flex;
    flex-direction: column;
	width: 191px;
    padding-left: 10px;  /* Add padding to the left of the info */
    flex: 1;  /* Allow the info to take up the remaining space */
}

.program .title {
    font-size: 16px;
    font-weight: bold;
	color: #ffffff;
}

.program .time {
    background-color: transparent;
    text-align: center;
    font-size: 14px;
    border-radius: 3px;
    color: #480078;
}

.program.current {
    background-color: #968eed;
}

.program.next {
    background-color: #eab956;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Default single column layout */
    gap: 5px;
    padding: 20px 0;
	margin:0 auto;
	max-width: 1230px;
}

.grid-item {
    padding: 10px;
	max-width: 100%; /* Ensure items don't expand beyond the column width */
    overflow: hidden; /* Prevent content from overflowing the item */
}

#medium {
    padding: 10px;
}

.title {
  color:#480078;
  font-size:1.90em;
  line-height:1.0em;
  font-family: "Cormorant Infant", serif;
  font-weight: 400;
  font-style: italic;
  display:flex;
  align-items:center;
}
.title:before,.title:after {
  content:" ";
  flex:1 0 0%;
  height:1px;
  box-shadow:0 0px 0px #AEA8BA,0 -2px 0px #AEA8BA;
  background:#AEA8BA;
  margin:0 0.5rem;
}

.content{
	padding:10px 10px;
}

.lucky{	
    background-color:transparent;
	background: url('../images/what-is-luck.jpg');
	object-fit: cover;
}

 #position {	
	font-size:16px;
}


.footer {
	background:#ddd;
	padding:20px 30px;
	display:flex;
	justify-content: space-between;
	color:#666;
}

.footer a {
	color:#3c3c3c;
	text-decoration:none;
	margin-right:5px;
	font-size:16px;
}

.form-container {
	width: 500px;
	background: white;
	padding: 20px;
	margin: auto;
	border: 1px solid #480078;
}

.input-container {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
        }
        input, textarea {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }
        input[type="submit"] {
            background-color: #1e73be;
            color: #fff;
            border: 1px solid #480078;
            padding: 10px;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #480078;
        }
		
#message-container {
            margin-top: 20px;
            padding: 10px;
            display: none;
            border-radius: 5px;
        }
        #message-container.success {
            background-color: #9dea85;
            color: #000;
            border: 1px solid #480078;
        }
        #message-container.error {
            background-color: #d85a58;
            color: #fff;
            border: 1px solid #480078;
        }
		
.actions {
    margin-left: auto;
}

.actions button {
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.actions button:hover {
    background-color: #480078;
    color: #fff;
}

button {
    margin: 0 5px;
    transition: background-color 0.3s ease;
    color: #FFF;
    background-color: #1e73be;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.team-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: auto;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-container {
    display: flex;
    flex-wrap: wrap;
}

.team-member {
    position: relative;
    flex: 1 1 45%;
    max-width: 30%;
    margin: 10px;
    text-align: center;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.text-container {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    background: #365899a8;
    color: white;
    padding: 5px 0 10px 0;
    text-align: center;
    border-radius: 0px 0px 0px  50px;
}

.name {
    font-size: 16px;
    margin: 0; /* Removes margin to tighten the space between name and role */
}

.team-member img {
    width: 100%; /* Makes the image responsive within the container */
    height: auto; /* Keeps the aspect ratio of the image */
    border-radius: 0 50px;
    object-fit: cover;
}

.name {
    font-size: 22px;
	font-weight:900;
    color: #ffffff;
    margin-top: 8px;
}

.role {
    font-size: 18px;
	font-weight:400;
    color: #f5f6f7;
}

h2 {
    color: #333;
}


@media (max-width: 768px) {
	header {
		height: 100px; /* Reduce height for mobile */
		flex-direction: row; /* Keep logo and menu button on one line */
		justify-content: space-between; /* Distribute space between logo and menu button */
	}
	
	.logo, .menu-button {
		flex: 0 0 auto; /* Prevent shrinking */
	}
	
	.radio-player {
		width: 100%;
		position: fixed;
		left: 0;
		bottom: 0; /* Fix to the bottom of the viewport */
		padding: 0; /* Remove padding */
		z-index: 999; /* Ensure it is above other content but below the sidebar */
		background-color: #d8449f; /* Optional background color */
		height:50px;
	}
	
	#playlistPanel {
		width:90%;
		padding:0 10px;
	}
	
	.song-list{
		width:100%;
	}
	
	.radio-player audio {
		max-width: 100%; /* Allow audio player to fill container */
	}
	
	.volume-slider {
		display:none;
	}
		
	.program{
		width:100%;
	}
	
	.program:not(.current) {
        display: none;
    }

	.footer {
		display:none;
	}
	
	 .team-container {
        flex-direction: column;
    }

    .team-member {
        flex: 1 1 100%; /* Takes full width in smaller screens */
        max-width: 100%;
    }
	
	.menu-button{
		display:block;
	}
	
	.navbar{
		position: fixed;
		left: -250px;
		top: 100px;
		width: 250px;
		height: 100%;
		background-color: #480078;
		box-shadow: 3px 0 5px rgba(0,0,0,0.2);
		transition: left 0.3s;
		z-index: 1000;
	}
	
	.navbar ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: block;
	}

	.navbar ul li a {
		padding: 20px 25px;
		color: white;
		text-decoration: none;
		align-items:center;
		border-bottom:1px solid #340057;
		width:250px;
		font-weight:500;
	}
	
	.navbar ul li a i{
		display:inline;
	}

	.navbar ul li a:hover {
		background-color: #340057;
	}
	
}

.accordion {
    max-width: 540px;
    margin: 40px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #f1f1f1;
    outline: none;
    transition: background-color 0.2s ease;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
	margin-top: 5px;
}

.accordion-header {
    width: 100%;
    padding: 8px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    background-color: #480078;
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #bc1888;
}

.accordion-content {
    display: none;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.accordion-content p {
    margin: 0;
    font-size: 16px;
}

.accordion i {
    margin-left: auto;
}

/* Medium devices and up */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 2fr; /* One-third / Two-thirds layout */
    }
	
    .grid-container .sidebar {
        order: 1;
    }

    .grid-container .content {
        order: 2;
    }
	
	.nested-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 5px; /* Space between nested grid items */
    }
	
	.nested-item {
        max-width: 100%; /* Ensure nested items don't expand beyond the column width */
        overflow: hidden; /* Prevent content from overflowing the item */
    }
	
	.lasted-grid {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Two equal columns */
        gap: 5px; /* Space between nested grid items */
    }
	
	.lasted-item {
        max-width: 100%; /* Ensure nested items don't expand beyond the column width */
        overflow: hidden; /* Prevent content from overflowing the item */
    }
}

@media (max-width: 767px) {
  .grid-container .sidebar {
    order: 1;
  }

  .grid-container .content {
    order: 2;
  }

  /* Ако content има клас mobile-bottom → разменяме */
  .grid-container .content.mobile-top {
    order: 1 !important;
  }

  .grid-container .sidebar {
    order: 2 !important;
  }
}

