@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap');

:root{
    --primary-colour: #0091c9;
    --accent-colour-light: #a7e6ff;
    --background-colour-light: #f5f7fa;
    --icon-colour-light: #ebeff0;
    --icon-colour-dark: #94a4a5;
    --secondary-colour: #444444;
}

* {
      font-family: 'Open Sans', sans-serif;
}

/* Style for the main sample container */
.sample-container {
    min-width: 40vw;
    max-width: 90vw; /* Limit the width for better readability */
    margin: 0 auto; /* Center the container and add vertical spacing */
    padding-left: 2vw;
    padding-right: 2vw;
    color: var(--secondary-colour);
    font-size: 2vh;

}
@media all and (max-width: 600px) and (orientation:portrait)
{
    .sample-container{
        max-width: 90%;
        margin: 0 auto; /* Center the container and add vertical spacing */
    }
}
@media screen and (max-width: 992px) and (orientation:landscape)
{
    .sample-container{
        max-width: 90%;
        margin: 0 auto; /* Center the container and add vertical spacing */
    }
}
@media screen and (min-width: 600px) and (max-width: 992px) and (orientation:portrait)
{
    .sample-container{
        max-width: 90%;
        margin: 0 auto; /* Center the container and add vertical spacing */
    }
}
@media (min-width: 992px) and (max-width: 1500px)
{
    .sample-container{
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Style for the main title */
.sample-container h1 {
  text-align: center;
}

/* Style for each sample item */
.sample-item {
    border: 0.1rem solid #d9d9d9;
    border-bottom: 0.2rem solid #d9d9d9;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2vh auto;
}

/* Style for the question buttons */
.sample-question {
    background-color: var(--background-colour-light);
    width: 100%;
    padding: 1.25rem;
    font-size: 1.25rem;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    color: black;
    transition: background-color 0.3s ease; /* Smooth background transition on hover */
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Hover effect for question buttons */
.sample-question:hover {
    background-color: #d0d7de; /* Slightly darker gray on hover */
}

.sample-question-text {
    justify-content: left;
    text-align: left;
    align-items: center;
    margin: auto;
    max-width: 80%;
}

/* Style for the arrow icon */
.sample-question .arrow {
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 1vw;
    margin-left: auto;
    transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the arrow when the question is active (expanded) */
.sample-question.active .arrow {
    transform: rotate(180deg); /* Rotate arrow 180 degrees */
    color: var(--primary-colour);
}

/* Style for the answer sections */
.sample-answer {
    max-height: 0; /* Initially hide the answer */
    overflow: hidden;
    transition: max-height 0.3s ease; /* Smooth transition for expanding */
    background-color: #fff; /* White background for answers */
}

/* Style for the answer text */
.sample-answer p {
  padding: 1vw;
  font-size: 1rem;
  line-height: 1.5; /* Increase line height for better readability */
  color: var(--secondary-colour);
}
@media all and (max-width: 600px) and (orientation:portrait)
{
    .sample-answer p{
      padding: 5vw;
    }
}
@media screen and (max-width: 992px) and (orientation:landscape)
{
    .sample-answer p{
      padding: 2vw 2vh;
    }
}
@media screen and (min-width: 600px) and (max-width: 992px) and (orientation:portrait)
{
    .sample-answer p{
      padding: 3vw;
    }
}