/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#main-content {
    position: relative;
    z-index: 10;
}

#middle {
    backdrop-filter: blur(5px);
    padding: 20px 20px 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.span-foot {
	text-align: center;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000; /* Black background */
    font-family: monospace;
    overflow: hidden;
    color: #b11e1e; /* Red accent color */
}

/* Style for the Announcement Bar */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: 85%;
    background-color: rgba(0, 0, 0, 0); /* Dark background for contrast */
    color: #b11e1e; /* Light text color */
    text-align: center;
    padding: 10px;
    z-index: 10; /* Keep it above the animation and main content */
    font-family: monospace;
    backdrop-filter:blur(5px);
    border-radius: 0px 0px 16px 16px;
    padding: 10px 10px 10px 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.mobile-announcement-bar {
    margin-top: 50px;
    display: none;
    background-color: rgba(0, 0, 0, 0); /* Dark background for contrast */
    color: #b11e1e; /* Light text color */
    text-align: center;
    padding: 10px;
    z-index: 10; /* Keep it above the animation and main content */
    font-family: monospace;
    backdrop-filter:blur(5px);
    border-radius: 0px 0px 16px 16px;
    padding: 10px 10px 10px 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.description p {
	text-align: center;
	font-size: 15px;
}

.description h1 {
	text-align: center;
	color: #b11e1e;
	font-size: 30px;
}

p {
    font-size: 1.2rem; /* Adjust this value to your preferred size */
    line-height: 1.6; /* Optional: Improves readability */
    text-align: center;
    /* color: #f9f9f9; /* Light color for visibility on dark background */
}


/* Team Name Style */
.team-name {
    font-size: calc(8vh);
    text-align: center;
    color: #b11e1e; /* Red accent */
    z-index: 10;
}

.team-name a {
	font-size: calc(6vh);
	text-align: center;
	color: #b11e1e;
	z-index: 10;
	animation: blink 0.7s steps(1) infinite;
}


/* Flashing Caret Effect 
.team-name::after {
    content: '⌷'; /* Caret character 
    position: absolute;
    right: -10px; /* Position to the right of the text 
    animation: blink 0.7s steps(1) infinite; /* Blinking animation 
    color: #b11e1e; /* Same color as text 
} */

/* Blinking Animation */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Button Styling */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.action-button {
    font-size: 1rem;
    padding: 10px 20px;
    color: #b11e1e;
    /* background: rgb(255 255 255 / 50%); */
    background-color: transparent;
    border: solid 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none; /* Remove underline */
}

.action-button-mobile {
    display: none !important;
    font-size: 1rem;
    padding: 10px 20px;
    color: #b11e1e;
    /* background: rgb(255 255 255 / 50%); */
    background-color: transparent;
    border: solid 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none; /* Remove underline */

}

.action-button:hover {
    background-color: #b11e1e; /* Turn red on hover */
    color: black;
    border: solid 2px #b11e1e;
}

.action-button:active {
    transform: scale(0.95); /* Click animation */
}

.action-button-mobile:hover {
    background-color: #b11e1e; /* Turn red on hover */
    color: black;
    border: solid 2px #b11e1e;
}

.action-button-mobile:active {
    transform: scale(0.95); /* Click animation */
}

.logout-button {
	font-size: 1rem;
	color: #b11e1e;
	background-color: transparent;
	border: solid 2px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: absolute;
	overflow: hidden;
	border-radius: 0px 0px 10px 0px;
	text-decoration: none;
	top: 0px;
	left: 0px;
	width: 40px;
	height: 40px;
}
.logout-button:hover {
    background-color: #b11e1e; /* Turn red on hover */
    color: black;
    border: solid 2px #b11e1e;
}
.logout-button:active {
    transform: scale(0.95); /* Click animation */
}

/* Background Animation */
#code-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 105%;
    height: 100%;
    /*background: rgba(255, 255, 255, 0.05);*/
    z-index: 0;
    overflow: hidden;
}

/* Home Button Styles */
.home-button {
    position: fixed; /* Keep it fixed in place */
    top: 0px; /* Adjust as needed */
    left: 0px; /* Adjust as needed */
    width: 40px; /* Button width */
    height: 40px; /* Button height */
    background-color: transparent; /* Background color */
    color: #b11e1e; /* Text color */
    border: solid 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 0px 10px 0px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 15px; /* Adjust icon size */
    transition: background-color 0.3s ease; /* Smooth color transition */
}
/* Change color on hover */
.home-button:hover {
    background-color: #b11e1e; /* Hover color */
    color: black; /* Text color on hover */
    border: solid 2px #b11e1e;
}
.home-button-opaque {
    position: fixed; /* Keep it fixed in place */
    top: 0px; /* Adjust as needed */
    left: 0px; /* Adjust as needed */
    width: 40px; /* Button width */
    height: 40px; /* Button height */
    background-color: #0b0b0b; /* Background color */
    color: #b11e1e; /* Text color */
    border: solid 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 0px 10px 0px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 15px; /* Adjust icon size */
    transition: background-color 0.3s ease; /* Smooth color transition */
}
/* Change color on hover */
.home-button-opaque:hover {
    background-color: #b11e1e; /* Hover color */
    color: black; /* Text color on hover */
    border: solid 2px #b11e1e;
}

/* Blur overlay */
#blur-overlay {
    display:none;
    position: fixed;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background-color: rgba(0, 0, 0, 0.8);
    /*background-color: rgba(15, 15, 15, 0.8);*/ /* Dark gray with slight opacity */
    /* backdrop-filter: blur(2px); /* Adjust blur strength as desired */
    z-index: 5; /* Place it between the canvas and main content */
    overflow: hidden;
}

/* Container for all team members */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
	padding: 37px;
    color: #f9f9f9;
    height: 100%;
    overflow-y: auto;
    /* opacity: 1;
    transform: translateY(20px);
    animation: fadeInUp 2s forwards ease-out;*/
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.about-container details {
	text-align: center;
	
}

 /* Hide scrollbar for Chrome, Safari and Opera */
.about-container::-webkit-scrollbar {
  display: none;
}

/* Style for each team member's card */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    min-width: 250px;
    background-color: transparent;
    padding: 20px;
    border: solid 2px #b11e1e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    /* opacity: 1; Start hidden for fade-in */
    /* transform: translateY(20px); */
    /* animation: fadeInUp 1s forwards ease-in-out; */
}

.team-member a {
	color: #b11e1e;
}

/* Profile Picture Style */
.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Username and Role Styling */
.username, .role {
    color: #e63946; /* Red accent */
    font-family: monospace;
    margin: 5px 0;
}

/* Description */
.description {
    color: #c4c4c4;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Keyframes for fade-in animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Ensure it's on top */
    backdrop-filter: blur(5px); /* Blur the background */
    opacity: 1; /* Start visible */
    transition: opacity 0.5s ease; /* Transition for fade-out */
}

/* Popup Content Styles */
.popup-content {
    background-color: #333; /* Dark background for popup */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: #f9f9f9; /* Light text color */
}

/* Button Styles */
#acknowledge-button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: #e63946; /* Red button */
    color: white; /* White text */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#acknowledge-button:hover {
    background-color: #d62839; /* Darker red on hover */
}

/* Popup styling */
.mobile-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: #f9f9f9;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-align: center;
    font-family: monospace;
    padding: 20px;
}

error-message {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: #f9f9f9;
    align-items: center;
    justify-content: center;
    z-index: 100;
    text-align: center;
    font-family: monospace;
    padding: 20px;
}

.mobile-popup p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.mobile-popup button {
    padding: 10px 20px;
    background-color: #444;
    color: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.mobile-popup button:hover {
    background-color: #666;
}

/* Login Page Styles */
.login-container {
    width: 300px;
    margin: 100px auto;
    text-align: center;
    background: #0b0b0b;
    padding: 20px;
    border-radius: 10px;
    border: solid 2px;
    color: #b11e1e;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #f9f9f9;
    font-family: monospace;
    outline: none;
}

/*
.login-container button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: none;
    background-color: #333;
    color: #f9f9f9;
    cursor: pointer;
}

*/

/* 
.login-container button:hover {
    background-color: #333;
}
*/

.login-container button {
	width: 100%;
    padding: 10px;
    color: #b11e1e;
    background-color: transparent; /* Lighter gray for button */
    border: solid 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none; /* Remove underline */
}

.login-container button:hover {
    background-color: #b11e1e; /* Turn red on hover */
    color: black;
    border: solid 2px #b11e1e;
}

.login-container button:active {
    transform: scale(0.95); /* Click animation */
}



/* Dashboard Page Styles */
.dashboard-container {
    max-width: 400px;
    min-width: 300px;
    margin: 100px auto;
    text-align: center;
    background: #000;
    padding: 20px;
    border-radius: 8px;
    border: solid 2px;
    color: #b11e1e;
}

.dashboard-container button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    color: #b11e1e;
    background-color: transparent; /* Lighter gray for button */
    transition: all 0.2s ease;
    border-radius: 10px;
    border: solid 2px;
    font-family: monospace;
    cursor: pointer;
    display: flex;
}

.dashboard-container button a {
	text-align: center;
	flex: 1;
	margin-left: 20px;
	margin-right: 20px;
}

.dashboard-container button:hover {
    background-color: #b11e1e; /* Turn red on hover */
    color: black;
    font-weight: bold;
    border: solid 2px #b11e1e;
    
}

.dashboard-container button:active {
    transform: scale(0.95); /* Click animation */
}

.dashboard-container span {
	text-align: left;
	align-content: flex-start;
	align-items: flex-start;
	align-self: flex-start;
}

/* Portal Button Styles */
.portal-button {
    position: fixed; /* Keep it fixed in place */
    bottom: 0px; /* Adjust as needed */
    left: 0px; /* Adjust as needed */
    /* width: 100px; Button width
    height: 30px; /* Button height */
    padding: 10px 20px;
    background-color: transparent; /* Background color */
    color: #b11e1e; /* Text color */
    border: 1px solid rgba(255, 255, 255, 0.075);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 10px 0px 0px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 15px; /* Adjust icon size */
    transition: background-color 0.3s ease; /* Smooth color transition */
    backdrop-filter: blur(5px);
}
/* Change color on hover */
.portal-button:hover {
    background-color: #b11e1e; /* Hover color */
    color: black; /* Text color on hover */
    /*border: solid 2px #b11e1e;*/
}

.portal-button-2 {
    position: fixed; /* Keep it fixed in place */
    bottom: 0; /* Adjust as needed */
    right: 0; /* Adjust as needed */
    /* width: 100px; Button width
    height: 30px; /* Button height */
    padding: 10px 20px;
    background-color: transparent; /* Background color */
    color: #b11e1e; /* Text color */
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 0; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 15px; /* Adjust icon size */
    transition: background-color 0.3s ease; /* Smooth color transition */
    backdrop-filter: blur(5px);
}
/* Change color on hover */
.portal-button-2:hover {
    background-color: #b11e1e; /* Hover color */
    color: black; /* Text color on hover */
    /*border: solid 2px #b11e1e;*/
}

.now-playing {
	position: fixed;
	bottom: 0px;
	left: 50%;
	padding: 10px 10px;
	border: none;
	color: #b11e1e;
	background-color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	/*border-radius: 10px 10px 0 0;*/
	transform: translate(-50%);
	text-align: left;
	font-size: 15px;
	/*width: 75%;*/
    width: 385px;
}

.now-playing button {
	all: inherit;
	width: 85%;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 10px 10px 0px 0px;
	padding: 10px 20px;
}

hr {
	border: 1px solid #b11e1e;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 10px;
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: auto; /* Enable scrolling if needed */
        height: auto; /* Allow natural flow */
        padding: 20px;
    }

    .team-name {
        font-size: 8.5vw;
        padding: 10px 15px 10px 15px;
        word-break: break-word;
    }

    p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 10vh;
        align-items: center;
        backdrop-filter: blur(5px);
        padding: 7% 0px 7% 0px;
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.075);
    }

    .action-button, .portal-button, .portal-button-2 {
        font-size: 1rem;
        padding: 12px 20px;
        width: 80%;
        text-align: center;
        position: relative;
        border-radius: 10px;
    }

    .action-button {
        display: none !important;
    }

    .action-button-mobile {
        flex-direction: column;
        display: flex !important;
        font-size: 1rem;
        padding: 12px 20px;
        width: 80%;
        align-items: center;
        position: relative;
        border-radius: 10px;
    }

    .portal-button {
        border: 2px solid #b11e1e;
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
    }

    .portal-button:hover {
    background-color: #b11e1e; /* Hover color */
    color: black; /* Text color on hover */
    border: solid 2px #b11e1e;
}

    .portal-button-2 {
        border: 2px solid #b11e1e;
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
    }

    .portal-button-2:hover {
    background-color: #b11e1e; /* Hover color */
    color: black; /* Text color on hover */
    border: solid 2px #b11e1e;
}
    
    .now-playing {
    	/*display: none;*/
    	/*width: 100%;*/
        width: 385px;
    }
    
    .now-playing button {
    	width: 85% !important;
        border: 1px solid rgba(255, 255, 255, 0.075);
    }

    #main-content {
        padding: 20px;
        text-align: center;
    }

    .announcement-bar {
        display:none;
        font-size: 0.9rem;
        padding: 5px 10px;
        border-radius: 16px;
    }

    .mobile-announcement-bar {
        display: flex;
        font-size: 0.9rem;
        padding: 5px 10px;
        border-radius: 16px;
    }

    #code-background,
    #blur-overlay {
        width: 105% !important;
        height: 100% !important;
    }
}
