.move-label {
    margin-left: 5px;
    margin-right: 5px;
}

.card-body {
    padding: 0.1rem;
}

.highlight1-32417, .highlight2-9c5d2 {
    box-shadow:inset 0 0 3px 3px #ffffff
}

.row-buttons {
    margin-top: 10px;
    margin-bottom: 10px;
}

#errorArea {
    margin-top: 15px;
    margin-bottom: 0px;
}

#errorArea .alert {
    margin-bottom: 10px;
}

.row-button {
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    width: 150px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.row-button-notation {
    width: 240px;
}

#fillButton {
    width: 220px;
}

.modal-body {
    font-size: 2rem;
}

.modal-body-text {
    margin-right: 1rem;
}

.modal-body-text-continued {
    margin-bottom: -0.5rem;
    font-weight: bold;
}

.bg-light {
    color: black;
}

.card {
    margin: 2px;
}

.modal-content {
    background: #414142;
}

.modal-title {
    font-size: 2rem;
}

.modal-header, .modal-footer {
    border: none;
}

.share-modal-body {
    margin-bottom: 0px;
}

.share-modal-pattern {
    text-align: center;
}

.share-modal-answer {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0px;
}

.close-modal-button {
    color: white;
}

.close-bubble-button {
    margin-right: 5px;
    color: white;
}

.close:not(:disabled):not(.disabled):hover {
    color: white;
}

.header-p0 {
    padding-bottom: 0px;
}

.modal-instructions {
    font-size: 1rem;
    margin-left: 5px;
    margin-right: 5px;
}

.instructions-example {
    padding-top: 15px;
}

.instructions-example-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.instructions-example-img {
    max-width: 80%;
}

.instructions-colour {
    max-width: 2rem;
}

.mode-button {
    margin: 0px 10px 20px 10px;
}

.mode-desc {
    margin-bottom: 0px;
    font-size: 0.8rem;
}

.navbar {
    align-items: start;
}

.navbar-brand {
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 0px;
}

.navbar-help-button {
    font-size: 20px;
    cursor: pointer;
}

.navbar-header {
    background: #121213;
}

.navbar-title {
    font-size: 3rem;
    font-weight: bold;
}

@media(min-width: 512px) {
    .navbar-title {
        padding-right: 40px;
    }
}

.navbar-main-title {
    width: 100%;
    text-align: center;
}

.navbar-side {
    width: 100px;
}

.lock-screen {
    touch-action: none;
}

.move-group {
    display: flex;
}

#errorBox {
    margin-bottom: 0px;
}

#alertBox {
    margin-bottom: 0px;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
}

#alertBoxNotation {
    position: relative;
    margin-bottom: 0rem;
    margin-top: 1rem;
    padding: 0.25rem 0.25rem;
    margin-right: 2rem;
    margin-left: 2rem;
    text-align: center;
}


#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.65); /* Black background with opacity */
    z-index: 1; /* Specify a stack order in case you're using a different order for other elements */
}

.bubble {
    display: none;
    position: absolute;
    bottom: 50px;
    left: -20px;
    background: #1ebaf7;
    color: #FFFFFF;
    width: 225px;
    height: 120px;
    border-radius: 10px;
    z-index: 2;
}
.bubble:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 2;
    border-style: solid;
    border-width: 20px 0 0 16px;
    border-color: #1ebaf7 transparent transparent transparent;
    bottom: -20px;
    left: 30px;
}


.bubble-text {
    font-size: 19px;
    text-align: center;
    vertical-align: middle;
    margin-top: 30px;
}

.notation-button-wrapper {
    position: relative;
    display: inline-block;
}

body {
    background-color: #121213;
    color: white;
}

@media(max-height: 1000px) {
    .chess-board {
        max-width: 600px;
    }
}

@media(max-height: 800px) {
    .chess-board {
        max-width: 460px;
    }
}

.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}


/* Notation Modal Styles */
.notation-comparison-container {
    font-size: 1rem;
}

.notation-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

.notation-card:hover {
    border-color: #007bff;
}

.notation-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.notation-card-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.notation-examples {
    margin-bottom: 1rem;
}

.notation-example {
    background-color: white;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
}

.notation-moves {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.move-notation {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.notation-piece {
    font-size: 1.3rem;
}

.vs {
    color: #6c757d;
    font-size: 0.9rem;
}

.notation-result {
    text-align: center;
    font-weight: 500;
}

.notation-same {
    color: #28a745;
}

.notation-different {
    color: #dc3545;
}

.notation-condition {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: normal;
    margin-top: 0.25rem;
}

.notation-condition.d-block {
    margin-top: 0.1rem;
}

/* Disabled button styles */
.btn.disabled, 
.btn:disabled {
    cursor: not-allowed !important;
    box-shadow: none !important;
    border-color: #6c757d !important;
}

.btn.disabled:focus, 
.btn:disabled:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .notation-card {
        padding: 1rem;
    }
    
    .notation-card-title {
        font-size: 1.1rem;
    }
    
    .move-notation {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
    }
    
    #notationModal .modal-body {
        font-size: 1rem;
        padding: 1rem;
    }
}
