html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
min-height: 100vh; /* Minimum yükseklik */
}
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
background-color: #AEC0D1;
background-image: url('arkaplan.png');
background-position: center center;
background-repeat: no-repeat;
background-size: cover; /* Tüm alanı kaplaması için */
background-attachment: fixed; /* Sabit tutulması için */
color: #343a40;
overflow-x: hidden; /* Yatay kaydırmayı engelle */
}
.container {
width: 90%; /* Genişliği responsive yap */
max-width: 60%;
margin: 50px auto;
padding: 30px;
background-color: rgba(204, 219, 233, 0.9); /* Hafif saydam */
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* Responsive Medya Sorguları */
@media (max-width: 768px) {
body {
background-size: cover;
background-position: center center;
}
.container {
width: 95%;
margin: 20px auto;
padding: 20px;
}
h1 {
font-size: 2em;
}
textarea, input[type="text"] {
width: 100%;
padding: 10px;
font-size: 0.9em;
}
}
@media (max-width: 480px) {
body {
background-size: cover;
background-position: center center;
}
.container {
width: 100%;
margin: 10px auto;
padding: 15px;
border-radius: 0; /* Küçük ekranlarda kenarları düzleştir */
}
h1 {
font-size: 1.8em;
}
.takilma-container {
width: 100%;
}
.takilma-controls {
flex-direction: column;
align-items: center;
}
.takilma-controls input[type="text"],
.takilma-controls button {
width: 100%;
margin-bottom: 10px;
}
}
/* Tüm cihazlar için arka plan ayarı */
@media screen and (min-width: 768px) {
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('arkaplan.png');
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
z-index: -1;
opacity: 1;
}
}
/* Başlık */
h1 {
text-align: center;
color: #344C64;
font-family: 'Fredoka', sans-serif;
font-size: 3em;
margin-bottom: 20px;
}
/* Textarea */
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ced4da;
border-radius: 8px;
resize: vertical;
font-size: 1em;
margin-bottom: 15px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
textarea:focus {
border-color: #114204e8;
outline: none;
}
/* Text Input */
input[type="text"] {
width: 90%;
padding: 15px;
margin: 10px 0;
border: 1px solid #ced4da;
border-radius: 8px;
font-size: 1em;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
input[type="text"]:focus {
border-color: #0d2e4de8;
outline: none;
}
/* Buton */
button {
width: 100%;
padding: 15px;
background-color: #344C64;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1.1em;
transition: background-color 0.3s, transform 0.3s;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
margin: 10px 0;
}
button:hover {
background-color: #2d3d50;
transform: translateY(-2px);
}
/* Sonuç Konteyneri */
.results {
margin-top: 20px;
padding: 20px;
background-color: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.results p {
margin: 10px 0;
font-size: 1.1em;
}
/* Takılma ve Konuşma Mesajları */
#takilmaMessage, #konusmaMessage {
padding: 15px;
text-align: center;
border-radius: 8px;
margin-top: 10px;
font-weight: bold;
font-size: 1.2em;
}
/* Otomatik Analiz Butonu */
.auto-analyze-container {
margin-top: 10px;
display: flex;
align-items: center;
border: 1px solid #344C64;
padding: 10px;
border-radius: 8px;
background-color: #f9fafc;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.auto-analyze-label {
display: flex;
align-items: center;
cursor: pointer;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 16px;
color: #333;
background-color: #ffffff;
padding: 10px 14px;
border-radius: 8px;
border: 1px solid #d1d5db;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.auto-analyze-label:hover {
background-color: #f3f4f6;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.auto-analyze-label input[type="checkbox"] {
display: none;
}
.auto-analyze-label .auto-analyze-text::before {
content: "✓";
display: inline-block;
width: 20px;
height: 20px;
margin-right: 10px;
border-radius: 4px;
background-color: #e5e7eb;
text-align: center;
line-height: 20px;
color: transparent;
transition: background-color 0.3s ease, color 0.3s ease;
}
.auto-analyze-label input[type="checkbox"]:checked + .auto-analyze-text::before {
background-color: #16a34a;
color: white;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
/* İkonlar */
.up-icon, .check-icon, .down-icon {
font-size: 20px;
margin-left: 10px;
}
.up-icon, .down-icon {
color: #FF6347;
}
.check-icon {
color: #344C64;
}
/* Durum Mesajları */
.status {
font-weight: bold;
padding: 10px;
margin-top: 10px;
border-radius: 5px;
transition: background-color 0.5s, color 0.5s;
text-align: center;
}
.low {
background-color: #d4edda;
color: #344C64;
}
.medium {
background-color: #fff3cd;
color: #856404;
}
.high {
background-color: #f8d7da;
color: #721c24;
}
.takilma-uyarı{
display: flex;
font-size: small;
align-items: center;
gap: 10px;
width: 50%;
margin: auto;
}
/* Takılma Kontrol Container */
.takilma-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
width: 50%;
font-family: Verdana, Geneva, Tahoma, sans-serif ;
margin: 0 auto;
}
.takilma-controls {
display: flex;
justify-content: center;
gap: 10px;
width: 100%;
touch-action: manipulation;
}
.takilma-controls input[type="text"] {
width: 70%;
padding: 8px;
font-size: 16px;
text-align: center;
}
.takilma-controls button {
width: 35%;
padding: 8px;
font-size: 16px;
cursor: pointer;
user-select: none; /* Metin seçimini devre dışı bırakır */
-webkit-user-select: none; /* Safari için */
-moz-user-select: none; /* Firefox için */
-ms-user-select: none; /* Internet Explorer için */
}
/* Logo */
.logo {
width: 250px;
height: auto;
display: block;
margin: 0 auto;
animation: fadeIn 1s ease-in-out;
margin-bottom: 15px;
}
/* Animasyon */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.takilma-uyarı {
font-size: small;
font-family: Verdana, Geneva, Tahoma, sans-serif;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center; /* Yatay ortalama */
display: flex; /* Esnek kutu modeli */
justify-content: center; /* Yatay ortalama (flex ile) */
align-items: center; /* Dikey ortalama */
height: 50px; /* İhtiyaca göre bir yükseklik belirleyin */
border: 1px solid #ddd; /* Görsel için sınır eklenebilir */
}
.takilma-sections {
display: flex;
justify-content: space-between;
gap: 20px;
margin-bottom: 20px;
}
.takilma-section {
flex: 1;
text-align: center;
}
.site-footer {
background-color: rgba(44, 62, 80, 0.9); /* Hafif saydam */
color: #ecf0f1;
text-align: center;
padding: 20px 10px;
width: 100%;
box-sizing: border-box;
position: relative;
bottom: 0;
left: 0;
z-index: 10;
}
.site-footer p {
margin: 5px 0;
font-size: 1em;
line-height: 1.5;
}
.site-footer a {
color: #3498db; /* Daha belirgin bir link rengi */
text-decoration: none;
transition: color 0.3s ease;
}
.site-footer a:hover {
color: #2980b9;
text-decoration: underline;
}
/* Responsive Tasarım */
@media (max-width: 768px) {
.site-footer {
padding: 15px 5px;
font-size: 0.9em;
}
.site-footer p {
margin: 3px 0;
}
}
@media (max-width: 480px) {
.site-footer {
padding: 10px 5px;
font-size: 0.8em;
}
.site-footer p {
margin: 2px 0;
}
.site-footer a {
font-size: 0.9em;
}
}
/* Mobil cihazlarda footer'ın en alt kısımda sabit kalması */
@media (max-width: 768px) {
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.site-footer {
margin-top: auto;
}
}