
body {
    background-color: #0D0A1C;
    max-width: 100%;
    max-height: none;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

* {
    font-family: "Saira Semi Condensed", sans-serif;
    user-select: none; 
}

*::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-toggle {
    position: fixed;
    left: 10px;
    top: 10px;
    font-size: 30px;
    color: #7c4dff;
    cursor: pointer;
    z-index: 1000;
}

.sidebar {
    position: fixed;
    left: -50%;
    top: 0;
    width: 40%;
    height: 100%;
    background-color: #0D0A1C;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 60px;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: 100vh;
}

.sidebar.open {
    left: 1%;
}

.logo {
    width: 80%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0px 0px 15px rgba(124, 77, 255, 0.7));
}

a:link {
    color: #7c4dff;
    background-color: transparent;
    text-decoration: none;
  }
  
a:visited {
    color: #7c4dff;
    background-color: transparent;
    text-decoration: none;
    }

a:hover {
    color: #4507d4;
    background-color: transparent;
    text-decoration: underline;
    transition: 0.3s;

}

.description {
    color: #9234a3;
    font-size: 24px;
    text-align: center;
    flex-grow: 1;
    color: #9234a3;
    font-size: 24px;
    text-align: center;
}

.sidebar-footer {
    position: relative; 
    bottom: 20px; 
    left: 0;
    right: 0;
    text-align: center; 
    color: #e1bee7; 
    font-size: 14px; 
    padding: 10px; 
    bottom: 20px;
}

 .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    transition: margin-left 0.3s ease;
    margin-left: 0;
    overflow-y: auto; 
}

.container.shifted {
    margin-left: 40%;
}

.board {
    max-width: 100%;
    min-height: 300px;
    margin:0 auto;
    display: grid;
    border: solid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 30px;
    background: rgb(14, 12, 32);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    justify-content: center;
    overflow: auto;
}

@media (max-width: 1024px) {
    .board {
        grid-template-columns: repeat(4, 1fr); 
    }
}

@media (max-width: 768px) {
    .board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        min-width: 0
    }
}

@media (max-width: 480px) {
    .board {
        grid-template-columns: repeat (3, 1fr);
        gap: 10px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.square {
    width: 120px;
    height: 120px;
    border: 3px solid #521b9a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #e1bee7;
    background-color: #4a148c;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    animation: fadeIn 0.5s ease-out;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.square:hover {
    background-color: #7c4dff;
    transform: scale(1.05);
}

.highlighted {
    background-color: #7c4dff;
    color: #000;
    border-color: #311b92;
    box-shadow: 0px 0px 20px rgba(124, 77, 255, 0.7);
}

.highlighted:hover {
    background-color: #7c4dff;
    transform: scale(1.05);
}

.squareNumber {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #bb86fc;
    font-size: 18px;
}

@media (max-width: 480px) {
    .sidebar {
        width: 50%;
        max-width: 2000px;
        padding: 20px 10px;
    }
    
    .sidebar.open { 
        left: 0;
 }
    

    .sidebar-toggle {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .description {
        font-size: 13.2px;
    }
    
    @media (max-width: 768px) {
    .navbar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
    
    @media (max-width: 768px) {
    .sidebar {
        width: 60%%;
        padding: 20px 15px;
    }
}
    
@media (max-width: 768px) {
    .square {
        width: 100px;
        height: 100px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .square {
        width: 80px;
        height: 80px;
        font-size: 9px;
    }
    
    .container.shifted { margin-left: 50%;
    }
}
    
