* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Open Sans", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Merriweather", serif;
}
.chess-pattern {
    background-image: linear-gradient(45deg, #f3f4f6 25%, transparent 25%),
        linear-gradient(-45deg, #f3f4f6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f3f4f6 75%),
        linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
    /*background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;*/
    background-size: 80px 80px;
    background-position: 0 0, 0 40px, 40px -40px, -40px 0px;
}
/**********************/
#scrollToTopBtn {
    display: none; /* Başlangıçta görünmez */
    position: fixed; /* Sayfayı kaydırırken sabit kalır */
    bottom: 20px; /* Sayfanın sağ alt köşesine yerleştirilir */
    right: 20px;
    z-index: 100; /* Üstte kalması için yüksek bir z-index */
    background-color: rgb(212 175 55); /* Sitenizin ana rengi */
    color: white;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    line-height: 50px;
    border-radius: 50%; /* Daire şekli */
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Hafif gölge */
    transition: opacity 0.3s;
}
#scrollToTopBtn > i {
    line-height: 100%;
}
#scrollToTopBtn > i::before {
    font-size: xx-large;
}
#scrollToTopBtn:hover {
    background-color: rgb(16, 16, 16); /* Hover efekti için koyu renk */
}
/*############################################################################*/
/* Custom Form Styles */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #d4af37;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.custom-checkbox:hover input ~ .checkmark {
    background-color: #f5d485;
}
.custom-checkbox input:checked ~ .checkmark {
    background-color: #d4af37;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}
.custom-checkbox .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom Radio Button */
.custom-radio {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #d4af37;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.custom-radio:hover input ~ .radio-mark {
    background-color: #f5d485;
}
.custom-radio input:checked ~ .radio-mark {
    background-color: #fff;
}
.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}
.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}
.custom-radio .radio-mark:after {
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4af37;
}

/* Custom Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: #d4af37;
}
input:focus + .toggle-slider {
    box-shadow: 0 0 1px #d4af37;
}
input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Custom Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    transition: all 0.2s ease;
}
.range-slider::-webkit-slider-thumb:hover {
    background: #aa8c2c;
    transform: scale(1.1);
}
.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.range-slider::-moz-range-thumb:hover {
    background: #aa8c2c;
    transform: scale(1.1);
}

/* Custom File Input */
.file-input-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.file-input-container input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Chess Piece Animation */
.chess-piece {
    transition: all 0.3s ease;
}
.chess-piece:hover {
    transform: translateY(-10px);
}

/* Notification Animation */
@keyframes notification-slide {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        transform: translateX(0);
        opacity: 1;
    }
    90% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}
.notification {
    animation: notification-slide 5s forwards;
}

/* Chess Board Loader */
.chess-loader {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 60px;
    height: 60px;
}
.chess-loader-square {
    background-color: #d4af37;
    animation: pulse 1.5s infinite;
}
.chess-loader-square:nth-child(1) {
    animation-delay: 0s;
}
.chess-loader-square:nth-child(2) {
    animation-delay: 0.2s;
}
.chess-loader-square:nth-child(3) {
    animation-delay: 0.4s;
}
.chess-loader-square:nth-child(4) {
    animation-delay: 0.6s;
}
.chess-loader-square:nth-child(5) {
    animation-delay: 0.8s;
}
.chess-loader-square:nth-child(6) {
    animation-delay: 0.6s;
}
.chess-loader-square:nth-child(7) {
    animation-delay: 0.4s;
}
.chess-loader-square:nth-child(8) {
    animation-delay: 0.2s;
}
.chess-loader-square:nth-child(9) {
    animation-delay: 0s;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
