/* Общи стилове */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    position: relative;
}
.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}
a {
    color: #2af0fb;
    text-decoration: none;
}
p {
    width:95%;
    text-align: justify;
    text-justify: inter-word;
}
/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #000;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
form {
    width: 95%;
    max-width: 700px;
}
nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2af0fb;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav ul li a:hover::before {
    transform: scaleX(1);
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding-top: 40px;
    text-align: center;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.content-container {

    padding-bottom: 20px; /* Малко разстояние между съдържанието и footer */
}

/* Стилове за бутона "Стани част от събитието" */
.cta-button {
    display: inline-block;
    background-color: #2af0fb;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-top: 20px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #f136a4;
}
.footer-logo {
    text-align: center; /* center logo on desktop */
}

.footer-logo img {
    max-width: 200px;
    
}

.footer-links a {
    color: #fff;
    margin: 0 10px;
    
}

.social-links a {
    color: #2af0fb;
    font-size: 24px;
    margin: 0 10px;
}
.social-links {
margin-right: 20px;
}

.copyright {
    margin-top: 11px;
    font-size: 12px;
}

/* Други стилове */
main {
    padding: 40px;
    width: 100%;
    max-width: 700px; 
    margin: 0 auto;
    flex-grow: 1;
}

h1, h2, h3 {
    color: #f136a4;
    text-shadow: 0 0 10px rgba(241, 54, 164, 0.5);
}

button {
    background-color: #2af0fb;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-weight: bold;
}

button:hover {
    background-color: #f136a4;
}

input, textarea {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 10px;
    margin-bottom: 10px;
}

.profile {
    display: inline-block;
    margin: 20px;
    text-align: center;
}

.profile img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(241, 54, 164, 0.5);
}
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 40px;
}

.profile-item {
    text-align: center;
}
.profile-item img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(241, 54, 164, 0.5);
}

.password-form {
    margin-top: 40px;
    text-align: center;
}
.password-message {
    color: #f136a4;
    font-weight: bold;
}
.password-form input[type="password"] {
    padding: 10px;
    font-size: 16px;
    width: 300px;
}

.result-container {
    text-align: center;
    margin-bottom: 40px;
}

.result-container img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.result-container h2 {
    margin-bottom: 10px;
}

.result-container h3 {
    margin-bottom: 5px;
}

.winner-container,
.runner-up-container {
    display: inline-block;
    vertical-align: top;
    margin: 0 20px;
}
/* Media Queries */
@media (max-width: 768px) {
    header {
        justify-content: center;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    main {
        padding: 20px;
    }
    .event-image {
        max-width: 100%;
        height: auto;
    }
    .profile {
        display: block;
        margin: 20px auto;
    }

    .footer-logo {
        text-align: center; /* center logo on mobile */
    }
}

.voting-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.rating-input {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.rating-input label {
    margin-right: 10px;
    width: 100px;
}

.slider {
    flex-grow: 1;
}

.rating-scale {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin-left: 10px;
}

.rating-scale span {
    font-size: 14px;
}

.rating {
  --dir: right;
  --fillbg: rgb(255 255 255 / 20%);
  --heart: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 21.328l-1.453-1.313q-2.484-2.25-3.609-3.328t-2.508-2.672-1.898-2.883-0.516-2.648q0-2.297 1.57-3.891t3.914-1.594q2.719 0 4.5 2.109 1.781-2.109 4.5-2.109 2.344 0 3.914 1.594t1.57 3.891q0 1.828-1.219 3.797t-2.648 3.422-4.664 4.359z"/></svg>');
  --stars: 5;
  --starsize: 3rem;
  --symbol: var(--heart);
  --value: 1;
  --w: calc(var(--stars) * var(--starsize));
  --x: calc(100% * (var(--value) / var(--stars)));
  block-size: var(--starsize);
  inline-size: var(--w);
  position: relative;
  touch-action: manipulation;
  -webkit-appearance: none;
  background: transparent; /* Прозрачен фон за input полето */
}

[dir="rtl"] .rating {
  --dir: left;
}

.rating::-moz-range-track {
  background: linear-gradient(to var(--dir), var(--fill) 0 var(--x), var(--fillbg) 0 var(--x));
  block-size: 100%;
  mask: repeat left center/var(--starsize) var(--symbol);
}

.rating::-webkit-slider-runnable-track {
  background: linear-gradient(to var(--dir), var(--fill) 0 var(--x), var(--fillbg) 0 var(--x));
  block-size: 100%;
  mask: repeat left center/var(--starsize) var(--symbol);
  -webkit-mask: repeat left center/var(--starsize) var(--symbol);
}

.rating::-moz-range-thumb {
  height: var(--starsize);
  opacity: 0;
  width: var(--starsize);
}

.rating::-webkit-slider-thumb {
  height: var(--starsize);
  opacity: 0;
  width: var(--starsize);
  -webkit-appearance: none;
}

.rating, .rating-label {
  display: block;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.rating-label {
  margin-block-end: 1rem;
}

/* NO JS */
.rating--nojs::-moz-range-track {
  background: var(--fillbg);
}

.rating--nojs::-moz-range-progress {
  background: var(--fill);
  block-size: 100%;
  mask: repeat left center/var(--starsize) var(--star);
}
#password::-webkit-input-placeholder {
    color: #999;
    font-weight: bold;
}

#password::-moz-placeholder {
    color: #999;
    font-weight: bold;
}

#password:-ms-input-placeholder {
    color: #999;
    font-weight: bold;
}

#password::placeholder {
    color: #999;
    font-weight: bold;
}
#password-form {
    display: inline-block;
    text-align: center;
}
.password-form {
    margin-top: 40px;
    text-align: center;
}
.container {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 20px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Центриране на форми */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    border-radius: 5px;
}

/* Стилове за полета за въвеждане на текст */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
textarea {
    display: block;
    width: 95%;
    margin-bottom: 15px;
    font-size: 16px;
    border: none;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

input[type="file"] {
    margin-bottom: 15px;
}
.form-check-label {
    display: inline-block;
}
input[type=checkbox] {
	appearance: none;
  background-color: #000;
  margin: 0;
	font: inherit;
  color: currentColor;
  width: 1.5em;
  height: 1.5em;
  border: 0.15em solid #b81f84;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
	display: grid;
  place-content: center;
	&::before {
		content: "";
		width: 0.65em;
		height: 0.65em;
		transform: scale(0);
		transition: 120ms transform ease-in-out;
		box-shadow: inset 1em 1em #b81f84;
		background-color: CanvasText;
		clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
		transform-origin: left top;
	}
	&:checked::before {
		transform: scale(1);
	}
}
/* Стилове за бутони */
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #2af0fb;
    text-transform: uppercase;
    color: #000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.vote-btn {
    font-weight: bold;
}
button[type="submit"]:hover {
    background-color: #f136a4;
}

/* Стилове за чекбокс и label */
input[type="checkbox"] {
    margin-right: 5px;
}

label {
    font-size: 14px;
  display: inline-block;
  flex-direction: column-reverse;
  color: #fff !important;
}