body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@media only screen and (max-width: 600px) {
    .header, .footer {
        flex-direction: column;
        align-items: center;
    }

    .instructions, .footer {
        width: 95%;
    }
}

.header {
    width: 90%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
}

.instructions {
    width: 80%;
    height: 60%;
    text-align: center;
    background-color: #ffffff;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
    position: relative;
}

.instruction-content {
    height: 80%;
    overflow-y: auto;
    text-align: left;
    padding-right: 15px; /* Prevents text from being hidden by the scrollbar */
}

.footer {
    width: 90%;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    opacity: 0.9;
}

.deny {
    background-color: #ff4136;
    color: white;
}

.agree {
    background-color: #2ecc40;
    color: white;
}

/* Scrollbar Styles */
.instruction-content::-webkit-scrollbar {
    width: 6px;
}

.instruction-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.instruction-content::-webkit-scrollbar-thumb {
    background: #888;
}

.instruction-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

