@import url('https://fonts.googleapis.com/css?family=Khand:200,300,400,500,600,700,800');


body {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    font-family: 'Khand';
    display: flex;
    align-items: center;
    background-image: linear-gradient(#000, #000, #393000, #5d4f00);
    height: 100vh;
    margin: 0;
}

body.light-mode {
    background-image: linear-gradient(#ebe9e1, #dac98e, #d1ba46, #c8b12f );
    
}


.left-bar.light-mode {
    background-color: #a9941a;
    
}

body.light-mode select {
    color: white !important;
}

.left-bar.light-mode,
.header.light-mode,
.header.light-mode i,
.left-bar.light-mode h2,
.left-bar.light-mode h1,
.settings-dropdown.light-mode,
.header.light-mode h1{
    
    color: black;
    
}

.start-broadcast-box.light-mode {
    background-color: #a9941a;
    color: white;
    border: 1px solid white;
}

.start-broadcast-box.light-mode input {
    background-color: white;
}

.left-bar {
    display: flex;
    flex-direction: column;
    background-color: #000;
    width: 17%;
    height: 91.5vh;
    align-items: center;
    text-align: center;
    padding-top: 5%;
    font-family: 'Khand';
}

.left-bar a {
    margin-top: -5%;
    margin-bottom: 7%;
    text-decoration: none;
}

.left-bar h2 {
    color:white;
    font-size: 1.1rem;
    font-weight: 500;
}


.left-bar a:hover {
    opacity: 80%;
    cursor:pointer;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5%;
}

.brand a {
    margin-bottom: 0%;
}

.brand img {
    width: 50%
}

.brand h1 {
    color:white;
    font-size: 1.5rem;
    margin-top: -5%;
    margin-bottom: 40%;
    font-weight: 800;
}

.brand h1:hover {
    cursor: pointer;
}

.main {
    display: flex;
    flex-direction: column;
    padding: 2%;
    width: 78%;
    height: 89vh;
}

.main h1 {
    
    color:white;
    font-size: 1.1rem;
    
    
    font-weight: 300;
}

.header {
    display: flex;
    align-items: center;
    flex-direction: row;
    max-height: 13%;
    
}

.header i {
    color: white;
    
}

.header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    min-width: 87%;
}

.header a:hover {
    opacity: 80%;
    cursor: pointer;
}

.settings-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.settings-dropdown {
    position: absolute;
    right: 0;
    background-color: #000;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(255, 255, 255, 0.2);
    z-index: 1;
    border-radius: 10px;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex; /* Always flex, but invisible until hover */
}

/* IMPORTANT: display:flex always, but opacity and pointer-events control visibility! */
.settings-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.settings-dropdown {
    position: absolute;
    top: 120%; /* Push it slightly below the bars */
    left: 50%;
    transform: translateX(-50%) translateY(-10px); /* Center it under bars */
    background-color: black;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    z-index: 10;
    padding: 10px 0; /* Padding top/bottom */
}

/* Chatbox pointer (little triangle) */
.settings-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.settings-dropdown a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Khand';
    font-size: 1rem;
    text-align: center;
}
  
/* default hover for all normal links */
.settings-dropdown a:hover {
    background-color: #333;
    border-radius: 5px;
}
  
/* SPECIAL logout color */
.settings-dropdown a.logout-link {
    color: #ff4d4d; /* red text */
}
  
/* SPECIAL logout hover */
.settings-dropdown a.logout-link:hover {
    background-color: #330000; /* dark red background */
    color: #ff8080; /* lighter red text */
}
  

/* Hover open if not locked */
.settings-dropdown-wrapper:hover .settings-dropdown:not(.locked) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Locked open */
.settings-dropdown.locked {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
  



.broadcasts-section {
    height: 90%;
    width: 100%;
}

.broadcasts-section h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
}

.start-broadcast-section {
    height: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.start-broadcast-section .top {
    margin-top: 5vh;
    height: 20%;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.start-broadcast-section .top h1 {
    font-weight: 500;
    font-size: 2.7vh;
}

.banner {
    height: 65%;
    width: 75%;
    border-radius: 15px;
    
    background-image: url('../image/banner.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1%;
    color: white;
    border: 1px solid white;
    padding-left: 2%;
}

.banner img {
    height: 65%;
    border-radius: 50%;
    margin-right: 1%;
    outline: 1px solid white;
    object-fit: cover; 
    aspect-ratio: 1 / 1;
}

.banner .broadcast-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    -webkit-text-stroke-width: 1.5px;
    -webkit-text-stroke-color: black;
    min-width: 85%;
    max-width: 85%;
    height: 100%;
    font-size: 2.4vh;
    font-weight: 600;
    gap: 10px;
}

.banner .broadcast-text h2#live-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
	display: inline-block;

	color: white;
	font-weight: 600;


}


.start-broadcast-section .bottom {
    height: 70%;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2%;
}

.start-broadcast-box {
    height: 100%;
    width: 80%; /* 🔥 Relative to screen size */
    max-width: 500px; /* 🔥 But don't grow bigger than 500px */
    min-width: 280px; /* 🔥 Minimum so it doesn't get too tiny */
    padding: 1%;
    background-color: #000;
    border: 1px solid white;
    border-radius: 3vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.start-broadcast-box form {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.start-broadcast-box form input {
    width: 100%;
    padding: 10px;
    margin: 15px;
    color:black;
    background-color: black;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.start-broadcast-box form select {
    width: 100%;
    padding: 12px 40px 12px 15px; /* ⬅️ Right padding for arrow */
    margin: 15px 0;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: black;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none; /* ✅ Remove native weirdness */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center; /* ✅ Position arrow */
    background-size: 20px 20px; /* ✅ Arrow size */
    box-sizing: border-box;
    cursor: pointer; /* ✅ Show pointer on hover */
    min-height: 50px;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1), inset 0 -2px 5px rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s, box-shadow 0.3s;
}





.start-broadcast-box form button {
    background-color: #5e5107;
    color: #fff;
    border: solid 1px white;
    padding: 10px;
    
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5%;
    margin-bottom: 5%;
    text-decoration: none;
    height: 15%;
}

.start-broadcast-box form button:hover {
    background-color: #a6a6a6;
    color: #867200;
}


@media (max-width: 767px) {

    body {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }
    
    .left-bar {
        width: 100%;
        height: 10vh;
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
    }

    .left-bar .brand {
        display: none; /* Hide big logo on mobile */
    }

    .left-bar a {
        margin: 0 5px;
        font-size: 0.7rem;
        color: white;
    }

    

    .main {
        width: 100%;
        height: 90vh;
    }

    .header {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
        width: 95%;
    }

    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .start-broadcast-box {
        width: 85%;
        max-width: none; /* Remove max-width for mobile */
    }
}