body {
    font-family: "Lato", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;   /*#f0f8ff;*/
    overflow-x: hidden;
    color: #333;
}

/*MAIN PAGE*/
main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: #333;
}

.activity {
    background-color: #e7f3e7;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    position: relative;
}

button {
    background-color: #008080;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #005959;
}

.details {
    display: none;
    margin-top: 0.5rem;
    background-color: #d1f1d1;
    padding: 0.5rem;
    border-radius: 5px;
}


/*WELCOME MESSAGE*/
#welcome-section {
    background: linear-gradient(135deg, #008080, #004747);
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 2rem;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}


.welcome-content h1 {
    font-size: 3.5rem;
    margin: 0;     
    line-height: 1.2;
}

.welcome-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
    color:#f0f8ff;
}


.welcome-content p {
    font-size: 1.2rem;
    margin-top: 20px;
    line-height: 1.5;
}

.parental-access {
    display: inline-block;
    background-color: #005959;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 20px;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.parental-access:hover {
    background-color: #004747;
}

.parental-access .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: white;
    color: #333;
    font-size: 13px;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.parental-access .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.parental-access:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}



/*BIG BUTTONS*/
.activity-buttons {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.activity-button {
    background: linear-gradient(135deg, #004747, #003636);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.5rem;
    margin: 0 30px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.activity-button:hover {
    background: linear-gradient(135deg, #003636, #002525);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.activity-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75px;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.activity-button:hover::before {
    left: 100%;
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* CONTENT SECTION */
#content-section {
    padding: 2rem;
    background-color: #f4f4f4;
    border-radius: 10px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*#313d47*/
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-block:nth-child(odd) .content-text {
    order: 1;
}

.content-block:nth-child(odd) .content-image {
    order: 2;
}

.content-block:nth-child(even) .content-image {
    order: 1;
}

.content-block:nth-child(even) .content-text {
    order: 2;
}

.content-text {
    flex: 1;
    padding: 1rem;
}

.content-text h2 {
    color: #333;
    margin-top: 0;
}

.content-text p,
.content-text ul {
    color: #666;
    line-height: 1.5;
}

.content-text ul {
    padding-left: 20px;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* TOOLTIP FOR DIFFICULT WORDS */
.tooltip {
    position: relative;
    cursor: pointer;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 500px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.content-image {
    flex: 1;
    max-width: 300px;
    margin-left: 1rem;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

/* ARTICLES SECTION */
#articles-section {
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

#articles-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.articles-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    margin: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1rem;
}

.article-content h3 {
    margin-top: 0;
    color: #333;
}

.article-content p {
    color: #666;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #008080;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #005959;
}

/* HELPFUL RESOURCES */
#helpful-resources {
    text-align: center;
    margin-top: 2rem;
}

#helpful-resources h2 {
    margin-bottom: 1rem;
}

#helpful-resources p {
    margin-bottom: 1rem;
}

#helpful-resources ul {
    list-style-type: none;
    padding: 0;
}

#helpful-resources ul li {
    margin-bottom: 0.5rem;
}

#helpful-resources ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

#helpful-resources ul li a:hover {
    color: #008080;
}

/* BACK TO TOP BUTTON */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #008080;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #005959;
}


/*FEEDBACK*/
.feedback-btn {
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin-left: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.feedback-btn:hover {
    background-color: #004747;
}

/* POPUP CHARACTER */
#popup-character {
    position: fixed;
    bottom: 10%;
    left: -200px;
    width: 150px;
    height: 150px;
    transition: left 0.5s ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-character img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

#popup-character:hover img {
    transform: scale(1.1);
}

.speech-bubble {
    background-color: #ff9900;
    border-radius: 10px;
    padding: 10px;
    position: absolute;
    top: -60px;
    left: 130px;
    width: 200px;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ff9900 transparent transparent transparent;
}

.speech-bubble p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    color: white;
}

/* KEYFRAMES FOR THE FADE IN ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}