/* General Page Style */
body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: #f9fbfd; /* Light blue-gray background */
    color: #2e3a59;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styles */
h2 {
    font-size: 1.8em;
    color: #2e3a59;
    margin-bottom: 10px;
    text-align: center;
}

/* Interactive Frame */
#website-frame {
    width: 100%; 
    height: 70vh; 
    border: none;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    background-color: white;
    overflow: hidden;
}

/* Countdown Timer */
#countdown-timer {
    font-size: 1.8em;
    font-weight: bold;
    color: #d9534f;
    margin-top: 10px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Website List and Buttons */
#website-list, #display-website-name {
    width: 100%;
    padding: 10px;
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
}

#website-list button {
    display: block;
    padding: 8px 12px;
    margin: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

#website-list button:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.active-button {
    font-weight: bold;
    background-color: #add8e6; /* Light blue background */
}

/* Table Styles */
table {
    width: 95%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0 10px;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

table th {
    padding: 15px;
    background-color: #6c92e8;
    color: white;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

table td {
    padding: 12px;
    background-color: #eef1f7;
    text-align: center;
    font-size: 1em;
    border-bottom: 2px solid #d7ddeb;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover td {
    background-color: #e3f0ff;
}

/* Summary Row */
table .summary-row {
    font-weight: bold;
    background-color: #f0f4c3; /* Light yellow */
}

/* Correct and Incorrect Answer Buttons */
button {
    padding: 10px 15px;
    margin: 10px 5px;
    border-radius: 5px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
}

#correctButton {
    background-color: #28a745; /* Green */
    color: white;
}

#correctButton:hover {
    background-color: #218838;
}

#wrongButton {
    background-color: #dc3545; /* Red */
    color: white;
}

#wrongButton:hover {
    background-color: #c82333;
}

/* Expand and Reset Buttons */
#button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: -30px;
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

#expand-button, #reset-button {
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #33333378;
    border: 0px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
    margin-left: 5px;
}

#expand-button:hover, #reset-button:hover {
    background-color: #e0e0e0;
}
