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


.button-row {
    display: flex;
    gap: 10px;
    margin-right: 0px;
    margin-top: 30px;
}
.cube-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    z-index: 100;
}

#solve-button {
    font-family: "Sen", sans-serif;
    display: inline-block;
    background-color: #f5f5f5;
    font-size: 15px;
    padding: 5px 10px;
    margin-left: 10px;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition-property: color, background-color;
    transition-property: color, background-color;
    -webkit-transition-duration: 250ms;
    transition-duration: 250ms;
}

#solve-button:hover {
    background-color: #0c75e8;
    color: white;
}

#reset-button {
    font-family: "Sen", sans-serif;
    display: inline-block;
    background-color: #f5f5f5;
    font-size: 15px;
    padding: 5px 10px;
    border: 2px solid black;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition-property: color, background-color;
    transition-property: color, background-color;
    -webkit-transition-duration: 250ms;
    transition-duration: 250ms;
}

#reset-button:hover {
    background-color: #ff4444;
    color: white;
}

.controls-section {
    font-family: "Sen", sans-serif;
    width: 50%;
    background: #fff;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 600px;
}
#solve-button:hover {
    background-color: #0c75e8;
    color: white;
}
#reset-button:hover {
    background-color: #ff4444;
    color: white;
}

.three-container {
    position: relative;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    min-height: 500px;
    box-sizing: border-box;
    overflow: hidden;
}
#solve-stats {
    font-family: "Sen", sans-serif;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: rgba(245, 245, 245, 0.95);
    padding: 15px 20px;
    border: 2px solid black;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    text-align: center;
    min-width: 200px;
}

#solve-stats div {
    margin: 5px 0;
}

/* Header styles */
header {
    font-family: "Sen", sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
}

header p {
    margin: 0;
    font-size: 1.0em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Main layout */
.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1em;
    align-items: center;
    overflow: visible;
}

.content-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 20px auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.cube-section {
    flex: 100px 100px 100px;
    padding: 0 50px 30px 0;
    max-width: 420px;
    min-width: 420px;
    position: relative;
    overflow: visible;
}

.three-container {
    position: relative;
    width: 50%;
    padding: 2em;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

#three {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider {
    width: 2px;
    background-color: #e9ecef;
    position: relative;
    margin: 0;
    background: linear-gradient(to bottom, transparent, #e9ecef 20%, #e9ecef 80%, transparent);
}

.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    transform: translateY(-50%);
}

.divider::before {
    content: "";
    position: absolute;
    top: calc(50% - 100px);
    left: -4px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Controls section */
.controls-section {
    font-family: "Sen", sans-serif;
    width: 50%;
    background: #ffffff;
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cube-section {
    position: relative;
    width: 420px;
    min-width: 420px;
    max-width: 420px;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    margin: 0;
}

.controls-section h2 {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
}

/* Controls table */
.controls-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    margin-left: 2px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.controls-table th {
    background-color: #4a90e2;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 1em;
}

.controls-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.controls-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.controls-table tbody tr:hover {
    background-color: #e3f2fd;
}

.controls-table kbd {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9em;
    margin: 0 2px;
}

/* Responsive design */
@media (max-width: 800px) {
    .content-container {
        flex-direction: column;
        max-width: 100%;
        height: auto;
    }
    
    .controls-section {
        width: 100%;
        order: 2;
        max-height: none;
    }
    
    .three-container {
        width: 100%;
        order: 1;
        min-height: 350px;
    }
    
    .divider {
        width: 100%;
        height: 1px;
        order: 1;
    }
    
    .divider::after,
    .divider::before {
        display: none;
    }
    
    .cube-buttons {
        top: 10px;
        right: 10px;
    }
    
    #solve-stats {
        width: auto;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header p {
        font-size: 0.95em;
    }
    
    .main-content {
        padding: 8px;
    }
    
    .content-container {
        margin: 10px auto;
        flex-direction: column;
    }
    
    .controls-section,
    .three-container {
        width: 100%;
        padding: 15px;
    }
    
    .three-container {
        min-height: 300px;
    }
    
    #three {
        height: 300px;
    }
    
    .controls-table {
        font-size: 0.8em;
    }
    
    .controls-table th,
    .controls-table td {
        padding: 6px 4px;
    }
    
    .cube-buttons {
        padding: 10px;
    }
}
