body {
    background-image: url('/UfoDisclosureBulgaria/images/space_img.jpg');
    background-size: cover;       
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-position: center;  
    margin: 0;                    
    min-height: 100vh; 
    overflow-y: auto; 
}

h1 {
	color: #744769;
    margin-bottom: 40px;
    padding-top: 20px;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
	font-family: 'Jura', sans-serif;
    font-weight: 700;
    -webkit-text-stroke: 1.5px #744769;
	text-align: center;
	border-bottom: 2px solid #744769;
    padding-bottom: 5px;
}

p {
	letter-spacing: 2px;
	font-size: 1rem;
	margin-bottom: 10px;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

.logo_img {
	position: absolute;
	left: 1%;
	top: 3%;
	height: 80%;
	max-width: 100%
}

.ribbon {
	margin-top: 1%;
    position: relative;
    top: 0%;
    left: 50%;
	width: 90%;
    transform: translateX(-50%); 
    background-color: #744769; 
    color: white;
    padding: 1.5%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
	text-align: center;
}

.register-btn {
    background-color: #744769;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
}

.register-btn:hover {
    background-color: #5a3651;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 54, 81, 0.3);
}

.delete-btn {
    background-color: #744769;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
}

.delete-btn:hover {
    background-color: #5a3651;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 54, 81, 0.3);
}

.event {
    margin: 2px 0;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.4; 
    word-wrap: break-word;
}

.event-btn {
    background-color: #744769;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
}

.event-btn:hover {
    background-color: #5a3651;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 54, 81, 0.3);
}

.cancel-btn {
	background-color: #d3d3d3;
	color: white;
	border: none;
	border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
}

.cancel-btn:hover {
	background-color: #ccc;
	transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 54, 81, 0.3);
}

@keyframes contentanimation {
	from {
		opacity: 0%;
	}	
	to {
		opacity: 100%;
	}
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background-color: #744769;
    padding: 1% 0;
	font-weight: bold;
}

.nav-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
    width: 10%;
	margin: 1%;
}

.nav-item a {
    text-decoration: none;
    color: white;
    display: block;
    font-size: 90%;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    -webkit-text-stroke: 0.5px white;
}

.nav-item a:hover {
    background-color: #5a3651;
}

.dropdown-menu {
	list-style: none;
    display: none;
    position: absolute;
    background-color: #5a3651;
    top: 100%; 
    width: 140%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-menu li {
    border-bottom: 1px solid #744769;
}

.dropdown-menu li a {
    padding: 5%;
    color: white;
}

.dropdown-menu li a:hover {
    background-color: #442538;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.fa-container {
  position: fixed; 
  top: 40%;        
  right: 10%;
  display: flex;   
  flex-direction: row; 
  gap: 45%;     
  
}

.fa {
  padding: 10%;       
  width: auto;         
  height: auto;        
  text-align: center;
  text-decoration: none;
}

.fa-brands {
  text-decoration: none;
}

.fa-patreon,
.fa-facebook,
.fa-youtube,
.fa-instagram {
  background: #744769;
  color: white;
  border-radius: 5%;
  font-size: 1.3rem;
}

.fa:hover {
  background-color: #442538;
}

.registered-label {
    background-color: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-right: 5px;
    display: inline-block;
}

.error-message {
	color: #d23100;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin: -25px 0;
	margin-bottom: 10px;
    border-radius: 4px;
	font-size: 1.5rem;
	font-style: italic;
	font-weight: 200;
}

.success-message {
	color: #2e7d32; 
    background-color: #c8e6c9; 
    border: 1px solid #388e3c;
    padding: 10px;
    margin: -25px 0;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 200;
	animation: fadeOut2 10s forwards;
}

.login-message {
    text-align: center;
    margin: 0;
    padding: 15px;
    background-color: rgba(216, 71, 105, 0.1);
    border-radius: 8px;
    font-style: italic;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 25px;
    left: 20px;
    z-index: 200;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu-overlay.active {
    display: block;
}

.dropdown-arrow {
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotate {
    transform: rotate(90deg);
}


@media screen and (max-width: 768px) {
    body {
        transform: none;
        width: 100%;
        margin: 0 auto;
        height: auto;
        overflow: auto;
    }

    .ribbon {
        margin-top: 0;
        width: 100%;
        padding: 10px;
        position: relative;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .calendar {
        min-width: 100%;
        overflow: auto;
        max-height: auto;
        padding-bottom: 100px;
        margin-bottom: 0px;
    }

    .logo_img {
        position: relative;
        left: 0;
        top: 0;
        height: 60px;
        display: block;
        margin: 0;
        margin-left: 50px;
    }

    .fa-container {
        position: relative;
        top: auto;
        right: auto;
        flex-direction: row;
        gap: 10px;
        margin: 0;
    }

    .fa-patreon,
    .fa-facebook,
    .fa-youtube,
    .fa-instagram {
        font-size: 0.9rem;
        padding: 6px;
    }

    .navbar {
        padding: 0;
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
    }

    .navbar.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
    }

    .nav-item {
        width: 100%;
        margin: 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item a {
        padding: 25px 20px;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #744769;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu li a {
        padding: 12px 20px 12px 35px;
        font-size: 14px;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-top: 15px;
    }

    .hamburger-menu {
        display: block;
    }

    .dropdown-arrow {
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .dropdown-arrow.rotate {
        transform: rotate(90deg);
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 8px;
    }

    .event {
        font-size: 10px;
        padding: 4px;
    }

    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .modal input,
    .modal textarea,
    .modal select {
        width: 80%;
        padding: 12px 8px;
    }

    .event-btn,
    .cancel-btn,
    .register-btn,
    .delete-btn {
        width: 160px;
        font-size: 1rem;
        padding: 8px 20px;
    }

    .popup {
        width: 300px;
        padding: 20px;
    }

    .popup h2 {
        font-size: 18px;
    }

    .popup button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1132px) {
    body {
        transform: scale(1, 1.15);
        transform-origin: top center;
        width: 100%;
        margin: 0 auto;
    }

    .ribbon {
        width: 98%;
        left: 50%;
        transform: translateX(-50%);
    }

    .calendar {
        min-width: 98%;
    }

    .nav-item a {
        font-size: 65%;
    }

    .nav-item.dropdown {
        font-size: 90%;
    }

    .fa-brands {
        font-size: 0.8rem;
        padding: 4px;
    }

    .fa-container {
        gap: 15px;
        right: 2%;
        top: 35%;
    }

    .nav-list {
        flex-direction: row;
    }
}

@media screen and (min-width: 1133px) and (max-width: 1320px) {
    body {
        transform: scale(0.9, 1);
        transform-origin: top center;
        width: 100%;
        margin: 0 auto;
    }

    .ribbon {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .calendar {
        min-width: 90%;
    }

    .nav-item a {
        font-size: 75%;
    }

    .nav-item.dropdown {
        font-size: 90%;
    }

    .fa-brands {
        font-size: 1rem;
        padding: 5px;
    }

    .fa-container {
        gap: 15px;
        right: 2%;
        top: 35%;
    }

    .nav-list {
        flex-direction: row;
    }
}

@media (hover: none) {
    .nav-item.dropdown .dropdown-menu {
        display: none;
    }

    .nav-item.dropdown:active .dropdown-menu {
        display: block;
    }
}