/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #5D0083;
    text-align: center;
    color: #fff;
    font-weight: 400;
    padding:0;
}



h2 {
margin-top:0;;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #a89eff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #fff;
}


main p.description {
    font-size: 14px;
    line-height: 14px;
    margin: 10px 0;
   
}

.logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 30px 0 0 0;
}


/* Footer styles */
.footer {
    background-color: #7A1FA0; /* Same as header */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #7A1FA0; /* Same as header */
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-icon img {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
    opacity: 0.6;
}

.footer-icon.active img,
.footer-icon:hover img {
    opacity: 1;
}

/* Footer Row */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Space between columns */
}

.message-input {
    flex: 1; /* Takes up remaining space */
    padding: 10px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: transparent;
    color: #fff;
    outline: none;
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.leave-button {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #7A1FA0;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.leave-button:hover {
    background-color: #5D0083;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.3rem;
    }
    nav ul {
        gap: 15px;
    }
    footer {
        font-size: 0.85rem;
        padding: 10px 0;
    }
}

input[type="text"],
input[type="password"],
a.button {

  padding:14px 20px;
  color:#fff;
  text-decoration: none;
  /* border:1px solid #7A1FA0; */
  
  width:100%;
  /* max-width:240px; */
  display:table;
  border-radius:7px;
  font-size:14px;
  line-height:14px;
  background-color: #7820BA;
  border:1px solid #7820BA
   font-family: 'Inter', sans-serif;
   box-sizing:border-box;
   outline:none;
  }
  

input[type="text"],
input[type="password"] {
background-color: transparent;
border:1px solid rgba(255, 255, 255, 0.3);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color:rgba(255, 255, 255, 0.4);
}


  a.button {
     margin:25px auto;
    text-align: center;
    transition-duration: 0.3s;
    width:100%;
}

a.button.reverse {
  border:1px solid #fff;
  color: #fff;
  background-color: transparent;
  opacity: 0.9;
}

  a.button:hover{
  opacity: 0.8;
}
.form-wrapper {
  width:100%;
  max-width:320px;
  /* text-align: left; */
  display:table;
  margin:0 auto;
 padding:0 20px;
    box-sizing: border-box;
}

/* Form label styles */
label {
    display: block;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
     margin:10px auto 15px auto;
    font-family: 'Inter', sans-serif;
}

/* Header styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #7A1FA0;
    position: relative;
}


/* Header styles */
header {
    color: #fff;
   padding:15px 10px;
}

header h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 2px;

}

.back-icon img {
    width: 24px;
    height: 24px;
}

.header-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
}

.avatar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: #7A1FA0; /* Circle color */
    border-radius: 50%;
    position: absolute;
}

header .avatar {
    display:inline-table;
    vertical-align: middle;

    }

    header .avatar-circle {
        display:inline-table;
        vertical-align: middle;
        background-color: #D9D9D9;;
    }

.avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.burger-menu {
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger-menu .line {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* About Section Styles */
.about-section {
    background-color: #F2D0FF; /* Light pink background */
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for better appearance */
}

.about-section img {
    width: 80px; /* Adjust image size */
    height: 80px;
    border-radius: 0%; /* Optional: make the image circular */
    object-fit: fit;
}

.about-section .content {
    flex: 1;
    text-align: left;
}

.about-section .content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #7A1FA0; /* Optional: title color */
}

.about-section .content p {
    font-size: 14px;
    line-height: 1.6;
    color: #333; /* Optional: description color */
}

/* Grid Section */
.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto 20px auto;
    max-width: 320px;
}

.grid-item {
    text-align: center;
}

.grid-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    transition: opacity 0.3s;
    border:1px solid #7820BA;
    background-color:  #7820BA;
    padding:14px 6px;
    border-radius: 10px;;
}

.grid-button img {
    width: 22px;
    height: 22px;
    margin-bottom: 10px;
}

.grid-button:hover {
    opacity: 0.8;
}

/* Grid Table */
.grid-table {
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    background-color: #F2D0FF;
    border-radius: 5px;
    margin-top:50px;
}

.grid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:15px 15px;
    color: #7A1FA0;
    margin-bottom: 10px;
    width:100%;
    margin:0 auto;
}

.grid-row.brighter {
    background-color: rgba(122, 31, 160, 0.3)/* Brighter shade */
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-title {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.user-points {
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}

.wrapper {

    padding: 30px;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100%;
    background-color: #7A1FA0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li {
    margin: 15px 0;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 600px;
    height: 400px; /* Adjust height as needed */
}

.players-grid.finished {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    align-items: left;
    justify-content: center;
    margin:0 auto;
    text-align: center;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-top-middle {
    grid-row: 1;
    grid-column: 2;
}

.player-bottom-middle {
    grid-row: 3;
    grid-column: 2;
}

.player-left-middle {
    grid-row: 2;
    grid-column: 1;
    text-align: right;
}

.player-right-middle {
    grid-row: 2;
    grid-column: 3;
}

.players-grid.finished .player {
    grid-row: auto;
    grid-column: auto;
}

.players-grid.finished .center-icon {
    display:none;
}
.center-icon {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background-color: #7A1FA0; /* Circle color */
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.player-name {
    margin-top: 15px;
    font-size: 12px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.4  );
}

.footer {

    z-index: 2000;
}
.footer.game {
    background-color: #F2D0FF;;

}

.footer.player {
    background-color: transparent;
    padding:0px 20px;
}

.footer.game a {
    background-color: #F2D0FF;
    color: #5D0083;
    background-color:rgba(122, 31, 160, 0.4);
    text-decoration: none;
    padding:10px 15px;
    font-size:14px;
    font-weight:600;
    border-radius:20px;
    letter-spacing:0.1em;
}


.footer.player {
    background-color: #5D0083;
    white-space: nowrap;
}

.footer.player a {
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    padding:12px 15px;
    font-size:14px;
    font-weight:600;
    border-radius:20px;
    letter-spacing:0.1em;
    border-radius:10px;
}

.footer.player a img {
    width:20px;
    height:20px;
}

.footer a.button {
    background-color: #7A1FA0;
    display:inline-table;
    width:30px;
    font-weight:400;
    font-size:14px;
    letter-spacing: 0.01em;
}

.footer input[type="text"] {
    display:inline-table;
    width:auto;
    max-width:120px;
}

/* Status Bar */
.status-bar-container {
   background-color:rgba(122, 31, 160, 0.4);
   padding:8px;
   margin-top:10px;
   border-radius:7px;
}

.status-bar {
    width: 100%;
    height: 20px;
    
    background-color: #F2D0FF;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    /* padding:20px; */
}

.status-bar .bar {
    height: 20px;
    background-color: #7A1FA0; /* Progress color */
    border-radius: 5px;
    transition: width 0.3s ease;
    position: absolute;
    top:0;
    left:0;
    padding-right:20px;
}

.percentage {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-top: 5px;
    display: block;
    position: absolute;
    top:-2px;
    z-index: 100;
    left:50%;
}

.percentage.over60 {
    color: #fff;
    
}

.player-points {

    font-size:14px;
    margin-top:5px;
}