/*HOSTS Landing Page Styles */
.landing-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a8b9d, #1ec675);
    color: white;
    position: relative;
    overflow: hidden;
}

.animation-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.landing-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.landing-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #ff7b00;
    color: white;
}

.btn-secondary {
    background-color: #ffffff;
    color: #1a8b9d;
}

.btn-join, .btn-create {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

.landing-footer {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Host Page Styles */
.host-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.host-page header {
    background-color: #1a8b9d;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* allow vertical stack on the left */
    gap: 1rem;
}

.host-page h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* Group title and the Solo button vertically on the left side of the header */
.header-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Make the solo button visually distinct but consistent */
.btn-solo-header {
    align-self: flex-start;
}

.btn-back {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Solo start section placed between header and parameters container */
.solo-start-container {
    max-width: 900px;
    margin: 1rem auto 0.5rem auto;
    padding: 0 1.5rem;
}

.solo-start-container .btn {
    /* keep the button aligned to the left */
    display: inline-flex;
}

.form-section {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
    margin-top: 0;
    color: #1a8b9d;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    padding: 10px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

small {
    color: #777;
    font-size: 0.9rem;
}

.team-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr auto;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: start;
}

.logo-selection, .logo-selection-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo-preview {
    width: 60px;
    height: 60px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btn-add-team {
    margin-top: 1rem;
}

.btn-remove-team {
    align-self: center;
    padding: 0.5rem;
    background-color: #ff5757;
}

.btn-danger {
    background-color: #ff5757;
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Logo Library Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #f8f9fa;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.logo-library-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.logo-item {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.logo-item:hover {
    border-color: #4caf50;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-preview img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    margin-top: 5px;
}



@media (max-width: 768px) {
    .host-page {
        margin-left: 2.5rem;
        margin-right: 2.5rem;
    }
    .team-row {
        grid-template-columns: 80%;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }
}
/* Flag logo library styling */
.logo-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    margin-right: 5px;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

.logo-search {
    margin-bottom: 15px;
}

.logo-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.logo-item:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.flag-item .fi {
    font-size: 48px;
    margin-bottom: 5px;
}

.country-name {
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.selected-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selected-flag .fi {
    font-size: 36px;
    margin-bottom: 5px;
}

.selected-flag-name {
    font-size: 12px;
}

.custom-logos-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
}