:root {
    --main-bg-color: #474747;
}


body {
    background-color: var(--main-bg-color);
    font-family: "Poppins", sans-serif;
    color: #fff;
 
}
.body1 {
    background-color: transparent;
    color: #f0f0f0;
    font-family: sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-height: 100vh;
    margin-top: 10;
    padding: 12px;
      position: relative; /* ::before için gerekli */

}

/* Kapsayıcı Genel Ayar */
.container {
    max-width: 1200px;
    margin: 1px auto;
    padding: 20px;
    background-color: #474747;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
  a {
  color: #28a745;
  }
/* Başlıklar */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ccc;
    font-weight: 700;
}

/* Form Stilleri */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 16px;
    font-weight: bold;
    color: #ccc;
}

input, textarea, select {
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    
       background-color: #000;
    color: #fff;
    
}

input:focus, textarea:focus, select:focus {
    border-color: #007bff;
    outline: none;
    
}

textarea {
    min-height: 80px;
    resize: vertical;
}

button {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
    
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    word-wrap: break-word;
}

table th {
    background-color: #f1f1f1;
    color: #444;
    font-weight: bold;
}

table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Tablo Mobil Uyum */
@media (max-width: 768px) {
    table {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th, table td {
        font-size: 16px;
    }
}

/* Küçük Ekranlar için Form */
@media (max-width: 768px) {
    form {
        gap: 10px;
    }

    input, textarea, select, button {
        font-size: 16px;
    }

    .container {
        padding: 12px;
    }
    .pattern-container {
        width: 250px;
        height: 250px;
    }
 
    .dot {
        width: 25px;
        height: 25px;
    }

}
/* Tablo Stilleri */
table {
    width: 100%; /* Tabloyu tam genişlikte tutar */
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 2px;
    text-align: left; /* Yazıları sola hizalar, okunabilirliği artırır */
    vertical-align: top; /* İçeriğin üstte hizalanmasını sağlar */
    word-wrap: break-word; /* İçeriği taşmadan kelime bazında böler */
    white-space: normal; /* Hücre içindeki metnin satır alta inmesini sağlar */
}

table th {
    background-color: #000;
    color: #fff;
    font-weight: bold;
}

table tbody tr:nth-child(odd) {
    background-color: #ccc;
    color: #000;
}

table tbody tr:hover {
   background-color: #28a745;
    color: #ccc;
}

/* Mobil Uyum için */
@media (max-width: 768px) {
    table th, table td {
        font-size: 15px; /* Küçük ekranlarda yazı boyutunu düşürür */
    }

    table {
        display: block; /* Tabloyu yatay kaydırma yerine dikey hale getirir */
        overflow-x: auto;
    }
}
/* Pattern alanı */
.pattern-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.dot {
    width: 55px;
    height: 55px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
        z-index: 2; /* Canvas'tan daha yüksek */

}

.dot.active {
    background: #28a745;
}


canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
/* Reset için animasyon */
.pattern-container.resetting {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}