:root {
    --var-color-primary: #007680;
    --var-color-primary-opaque: #00768022;
}

body {
    width: 1024px;
    height: 768px;
    background-color: #d7d7d7;
}

main {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
}


.cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.cover img {
    width: 80%;
    height: auto;
}

.cover #cc-title {
    color: var(--var-color-primary);
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.content-slide {
    background-image: url(../images/ipad-bg.png);
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: cover;
}

.swiper-slide > div:not(.cover) {
    padding: 2rem 5rem;
}

.swiper-slide {
    font-size: 1.2rem;
    line-height: 1.5;
}

.swiper-slide h2 {
    color: var(--var-color-primary);
    font-size: 2rem;
}

.swiper-slide ul {
    padding-left: 1.2rem;
}

.swiper-slide .form-answer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}


.swiper-slide textarea {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    width: calc(100% - 1rem);
    height: 12.5em;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.swiper-slide textarea:focus {
    border-color: var(--var-color-primary);
    background-color: var(--var-color-primary-opaque);
}

.swiper-slide .submit-answer {
    background-color: var(--var-color-primary);
    color: #ffffff;
    border: none;
    padding: 0.5rem 0;
    width: 33%;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

.swiper-slide .submit-answer:disabled {
    opacity: .3;
    pointer-events: none;
}

.swiper-slide .slide-image {
    width: 100%;
    height: auto;;
}

#answer-response {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
    padding: .5rem 1rem;
    font-size: .8rem;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

#answer-response.hidden {
    transform: translateY(-200%);
    opacity: 0;
}

#answer-response.success {
    background-color: #b2f5c1;
    border: 1px solid #28a745;
    color: #28a745;
}

#answer-response.error {
    background-color: #eda9b0;
    border: 1px solid #dc3545;
    color: #dc3545;
}
