* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #cbced9 0%, #d0cce9 100%);
    min-height: 100vh;
}

.landing-page, .dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    padding: 40px 0;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.info-block h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.info-block ul {
    list-style: none;
    margin-top: 20px;
}

.info-block li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.auth-block {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.auth-form {
    margin-top: 20px;
}

.auth-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-form button:hover {
    background: #5a67d8;
}

.error-msg {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success-msg {
    background: #efe;
    color: #3c3;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Стили для дашборда */
.dashboard header, .room header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.user-info {
    color: white;
}

.logout-btn {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

.dashboard main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
} 
.room main{
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}
/* Profile Page Styles */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-container h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.profile-info {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.avatar-section {
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.change-avatar-btn {
    padding: 8px 16px;
    background: #e9ecef;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.change-avatar-btn:hover {
    background: #dee2e6;
}

.info-section {
    flex: 1;
}

.info-group {
    margin-bottom: 20px;
}

.info-group label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-group p {
    font-size: 1.1rem;
    color: #333;
    padding: 8px 0;
    border-bottom: 2px solid #e9ecef;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

/*room style;*/
#real,
#translate {
	width: 100%;
	padding: 1em;
}

#result,
#trResult {
	white-space: pre-wrap;
	border: 1px solid #ccc;
	padding: 1em;
	min-height: 4em;
	margin-top: 1em;
	max-height: 300px;
	overflow-y: auto;
	/*display: flex;*/
	flex-direction: column;
	padding: 10px;
	gap: 6px;
}

#status {
	margin-top: 0.5em;
	color: gray;
}

.enabled {
	background: aqua;
}

.disabled {
	background: red;
}

button {
	margin-right: 1em;
}

.word.active {
	background: yellow;
}
.controls button{
	padding: 1em;
}
.table {
	width: 100%;
}

.row {
	display: flex;
	width: 100%;
}

.cell {
	padding: 8px;
}

.left {
	flex: 1;
}

.right {
	flex: 1;
}

/*.left.big {
	flex: 3;
}

.left.small {
	flex: 1;
}

.right.big {
	flex: 3;
}

.right.small {
	flex: 1;
}*/

.cell {
	transition: flex 0.3s ease;
}

@media (max-width: 1024px) {
	body{
		font-size: 30px;
	}
  .row {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    /* big — верхняя страница, задаёт высоту */
    .big {
        position: relative; /* ВАЖНО: big остаётся в потоке */
        width: 90%;
        z-index: 2;
        background: white;
        transition: all 0.35s ease;
    }

    /* small — нижняя страница, растягивается по высоте big */
    .small {
        position: absolute; /* ВАЖНО: small не влияет на высоту */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* растягивается по высоте big */
        z-index: 1;
        overflow: hidden;
        background: rgba(0,0,0,0.1);
        transition: all 0.35s ease;
    }

	.left.big {
        left: 0;
        box-shadow: 10px 0 25px rgba(0,0,0,0.15);
    }

    /* Если big справа → смещаем влево на 10% и тень слева */
    .right.big {
        left: 10%;
        box-shadow: -10px 0 25px rgba(0,0,0,0.15);
    }
	
	.left,
    .right {
        flex: none !important;   /* ← ключевой момент */
    }

	.row:last-child .left.big {
        border-radius: 0 0 25px 0; /* скругление справа */
    }

    .row:last-child .right.big {
        border-radius: 0 0 0 25px; /* скругление слева */
    }
	.cell {
		padding: 0;
	}
	.cell > div {
		padding: 9px;
		box-sizing: border-box;
	}
	
	.table button {
        padding: 14px 18px;
        font-size: 30px;
        font-weight: 500;
        line-height: 1.3;
        border: none;
        border-radius: 10px;
        background: #f2f2f2;
        color: #111;
        text-align: center;
        cursor: pointer;
        outline: none;
        transition: background 0.2s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent; /* убирает синий флэш на Android */
    }

    .table button:active {
        background: #e0e0e0;
        transform: scale(0.97);
    }

    .table button:disabled {
        opacity: 0.5;
        transform: none;
    }
	#result, #trResult{
		min-height: 50vh;
	}

/*.big::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: url('corner.png') no-repeat;
    background-size: contain;
    pointer-events: none;
}*/



}
