/* Common Styles */
body {
    transition: opacity 400ms ease-in-out;
    opacity: 0;
    font-family: 'Roboto', sans-serif;
}

.card {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Game card styling for index page */
.game-card {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.game-card:hover {
    transform: scale(1.03);
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    border-radius: 30px;
    padding: 10px 25px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-outline {
    margin-bottom: 1.5rem;
}
code {
    font-size: 3em!important;
}
/* Index Page */
.index-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Question Page */
.user-info {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    z-index: 100;
}

.user-info .btn {
    font-size: 0.8rem;
    padding: 3px 8px;
    margin-left: 8px;
    white-space: nowrap;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.answers-section {
    margin-top: 2rem;
}

.answer-card {
    margin-bottom: 1rem;
    border-left: 4px solid #4285f4;
    background-color: rgba(242, 242, 242, 0.7);
}

/* Instructor Page */
.login-card {
    max-width: 400px;
    margin: 0 auto;
    margin-top: 100px;
}

.answers-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    transition: all 0.3s ease;
    min-height: 500px; /* ESC ile tam ekrandan çıkıldığında minimum yükseklik */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* JavaScript tarafından değiştirilecek */
    flex-direction: row;
    align-content: flex-start;
}

.answers-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh !important; /* ESC ile çıkıldığında yükseklik korunacak */
    z-index: 9999;
    overflow-y: auto;
    padding: 30px;
}

#toggleFullscreen {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Tooltip styling */
.answer-list-tooltip {
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    padding-right: 10px;
}

.tooltip-title {
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
}

.tooltip-answers {
    padding-left: 15px;
    margin: 0;
}

.tooltip-answers li {
    margin-bottom: 5px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.tooltip {
    opacity: 1 !important;
}

.tooltip .tooltip-inner {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    text-align: left;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #ccc;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #ccc;
}

/* Adjust position for count badge on hover */
.answer-count:hover {
    z-index: 100;
}

#toggleFullscreen:hover {
    background-color: #e9ecef;
}

.answers-container .answer-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 15px;
    position: relative;
    overflow: visible;
    display: inline-block;
    opacity: 0;
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
    /*max-width: calc(100% - 20px);*/ 
    margin: 10px;
    border-left: 4px solid; /* Kenar rengi JavaScript tarafından belirlenecek */
}

.answers-container .answer-card .answer-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #4285f4;
    color: white;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0 5px;
    box-sizing: border-box;
    z-index: 10;
}

@media (min-width: 992px) {
    .answers-container .answer-card {
        max-width: 30%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .answers-container .answer-card {
        max-width: 45%;
    }
}

@media (max-width: 767px) {
    .answers-container .answer-card {
        max-width: 100%;
    }
}

.answers-container .answer-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.answers-container .answer-card p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0;
    word-break: break-word;
    line-height: 1.5;
}

.answers-container .answer-card {
    transition: all 0.3s ease-in-out;
    opacity: 1;
}

/* Animation artık JavaScript tarafında rastgele süre ile ayarlanıyor */

.question-controls {
    display: flex;
    gap: 10px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-inactive {
    background-color: #f8d7da;
    color: #842029;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(-0.5deg);
    }
    75% {
        transform: translateY(-3px) rotate(0.3deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

/* Answer cards animation delays */
.answer-card:nth-child(3n+1) {
    animation-delay: 0s;
}

.answer-card:nth-child(3n+2) {
    animation-delay: 0.5s;
}

.answer-card:nth-child(3n+3) {
    animation-delay: 1s;
}

/* Bump animation for collision effect */
@keyframes bump {
    0% { transform: scale(1); }
    25% { transform: scale(1.03); }
    50% { transform: scale(1); }
    75% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.bump {
    animation: bump 0.6s ease-in-out;
    z-index: 1;
}
