interstellar_ai/app/styles/faq.css

46 lines
1.5 KiB
CSS
Raw Permalink Normal View History

2024-09-19 12:18:04 +02:00
/* Make sure the parent container of #faq takes up the full viewport height */
2024-10-08 17:37:17 +02:00
.faq-container{
2024-09-19 12:18:04 +02:00
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
height: 100vh; /* Full viewport height */
padding: 0 10px; /* Optional padding to ensure spacing on small screens */
}
2024-10-08 17:37:17 +02:00
#faq{
2024-09-19 12:18:04 +02:00
max-width: 800px;
width: 90%;
padding: 20px;
2024-09-23 11:55:58 +02:00
background-color: var(--faq-background-color); /* Use variable for background */
2024-09-19 12:18:04 +02:00
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
overflow-y: scroll; /* Allow vertical scrolling if content overflows */
2024-09-23 08:05:29 +02:00
margin: 2rem auto;
2024-09-19 12:18:04 +02:00
height: 80vh;
}
2024-10-08 17:37:17 +02:00
#faq h2{
2024-09-19 12:18:04 +02:00
text-align: center;
2024-09-23 11:55:58 +02:00
color: var(--faq-heading-color); /* Use variable for heading color */
2024-09-19 12:18:04 +02:00
font-size: 2em;
margin-bottom: 20px;
}
2024-10-08 17:37:17 +02:00
.faq-item{
2024-09-19 12:18:04 +02:00
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
2024-09-23 11:55:58 +02:00
background-color: var(--faq-item-background-color); /* Use variable for item background */
2024-09-23 08:05:29 +02:00
transition: background-color 0.3s ease-in-out;
2024-09-19 12:18:04 +02:00
}
2024-10-08 17:37:17 +02:00
.faq-item h3{
2024-09-23 11:55:58 +02:00
color: var(--faq-item-heading-color); /* Use variable for item heading color */
2024-09-19 12:18:04 +02:00
margin-bottom: 10px;
font-size: 1.5em;
}
2024-10-08 17:37:17 +02:00
.faq-item p{
2024-09-23 11:55:58 +02:00
color: var(--faq-item-text-color); /* Use variable for item text color */
2024-09-19 12:18:04 +02:00
font-size: 1.1em;
line-height: 1.5;
}
2024-10-08 17:37:17 +02:00
.faq-item:hover{
2024-09-23 11:55:58 +02:00
background-color: var(--faq-item-hover-background-color); /* Use variable for hover background */
2024-09-19 12:18:04 +02:00
}