* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #666;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #f0f0f0;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c69255;
    padding: 10px 20px;
}

.logo {
    cursor: pointer;
}

.logo h1 {
    color: white;
    font-weight: normal;
    font-size: 28px;
    font-family: 'Brush Script MT', cursive;
    line-height: 0.9;
    transition: color 0.3s, transform 0.3s;
}

.logo:hover h1 {
    color: #ffeb3b;
    transform: scale(1.1);
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-register {
    background-color: white;
    color: #c69255;
}

.btn-login:hover, .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.btn-logout {
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 3px 8px;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

.profile {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.profile:hover {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.profile-icon {
    width: 50px;
    height: 50px;
    background-color: #eee;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    border-radius: 50%;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile input[type="text"] {
    color: white;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    transition: border 0.3s;
}

.profile input[type="text"]::placeholder {
    color: white;
}

.profile input[type="text"]:hover {
    border-bottom: 2px solid white;
}

/* Main content */
main {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.left-panel, .right-panel {
    background-color: #e0ddd5;
    padding: 20px;
    border-radius: 5px;
}

.left-panel {
    flex: 2;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.game-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.game-icon {
    width: 80px;
    height: 80px;
    background-color: #333;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-icon img {
    max-width: 70%;
    max-height: 70%;
}

.game-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.game-icon.selected {
    border: 3px solid #4CAF50;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.game-name {
    font-size: 14px;
    font-weight: bold;
}

.room-controls {
    margin-top: 20px;
}

.room-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.buttons {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.btn-small.selected {
    background-color: #4CAF50;
    color: white;
}

.btn-create {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    margin-left: auto;
    cursor: pointer;
}

.btn-suggest {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 3px;
    margin: 30px 0;
    cursor: pointer;
}

.date-info {
    margin-top: auto;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Rooms section */
.rooms {
    padding: 20px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.room-card {
    background-color: #b1a664;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
}

.room-title {
    font-weight: bold;
    color: #333;
}

.player-count {
    background-color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.room-game {
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 12px;
}

.game-icon-small {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 8px;
}

/* 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.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #333;
}

.line {
    margin: 15px 0;
}

.styled {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    width: calc(100% - 22px);
    margin: 5px auto;
}

label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

button.styled {
    background-color: #4CAF50;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.styled:hover {
    background-color: #45a049;
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin: 5px 0;
}

.success-message {
    color: #4CAF50;
    font-size: 14px;
    margin: 5px 0;
}

.toggle-form {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.toggle-form a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.toggle-form a:hover {
    text-decoration: underline;
}

/* Suggestion modal styles */
.suggestion-info {
    margin: 10px 0 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

textarea.styled {
    min-height: 100px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

/* Profile upload in register form */
.profile-upload {
    display: flex;
    justify-content: center;
    margin: 15px 0 20px;
}

.profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-preview:hover .profile-upload-overlay {
    opacity: 1;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-container input {
    margin-right: 8px;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
}