@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;700&display=swap');

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

body {
   font-family: 'Noto Sans Georgian', Arial, sans-serif;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center; 
   min-height: 100vh;
   background-color: #0e0e0e;
   color: #ffffff;
   padding: 20px;
   font-family: Arial, sans-serif;
   margin: 0 auto;
   width: 100%;
}

/* დაწყება */
.initial-screen {
   text-align: center;
   padding: 20px;
   background-color: #1a1a1a;
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
   margin: 20px;
}

.colors-grid {
   display: flex;
   flex-direction: column;
   gap: 20px;
   margin: 30px 0;
}

.color-row {
   display: flex;
   justify-content: center;
   gap: 20px;
}

.color-box {
   width: 50px;
   height: 50px;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}


.tournament-container {
   display: flex;
   gap: 40px;
   margin: 30px 0;
   justify-content: center;
}

.vertical-section {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

.matchup {
   display: flex;
   align-items: center;
   background: #1a1a1a;
   padding: 20px;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.participant {
   width: 50px;
   height: 50px;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0,0,0,0.3);
   transition: all 0.3s ease;
}

.vs {
   margin: 0 20px;
   font-weight: bold;
   color: #ffffff;
}

.winner {
   transform: scale(1.1);
   box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.start-btn,
.next-round-btn,
.restart-btn {
   padding: 15px 30px;
   font-size: 18px;
   background-color: #4CAF50;
   color: white;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   transition: background-color 0.3s;
}

.start-btn:hover,
.next-round-btn:hover,
.restart-btn:hover {
   background-color: #45a049;
}

.next-round-btn:disabled {
   background-color: #333333;
   cursor: not-allowed;
}

.round-indicator {
   text-align: center;
   padding: 20px;
   font-size: 24px;
   margin-bottom: 20px;
}

/* Winner Screen */
.winner-screen {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0,0,0,0.9);
   justify-content: center;
   align-items: center;
   flex-direction: column;
   gap: 20px;
   z-index: 1000;
}

.winner-screen.active {
   display: flex;
}

.winner-title {
   font-size: 32px;
   color: #ffffff;
   text-align: center;
}

.winner-color {
   width: 100px;
   height: 100px;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ფოლო რაუნდი */
.final-round {
   display: flex;
   justify-content: center;
   margin-top: 20px;
}

.controls {
   margin-top: 20px;
   text-align: center;
}

.colors-grid {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    justify-content: center;
}

.vertical-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}