/******************** Reset and center setup ********************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #47B2D9;
}

body {
    /* border: 3px solid red; */
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    min-height: 100vh;
}

header {
    /* border: 3px solid rgb(255, 166, 0); */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 10% 0;
}

main {
    /* border: 3px solid rgb(255, 238, 0); */
    min-height: 100vh;
    max-width: 80%;
    margin: 0 auto;
    padding: 3.5rem 0 0;
    color: #333;
}

/* Containers */
.project-container,
.team-container,
.notes-container,
.schedule-container {
    /* border: 2px solid rgb(0, 255, 255); */
    max-width: 70%;
    margin: 0 auto;
}

.project-container,
.team-container {
    padding-bottom: 3rem;
}

.project,
.team-member,
.note,
.schedule {
    border: 3px solid rgba(255, 255, 255, .2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.schedule {
    display: flex;
    flex-direction: column;
}

.project,
.team-member {
    transition: transform 0.3s ease, box-shadow 0.2s ease;
}

.project:hover,
.team-member:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/***************************************************************/
/************************** Fonts styling **********************/
h1 {
    text-align: center;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.row h1 {
    font-size: 3rem;
    padding-bottom: 0.5rem;
}

/* H2 Headings */
.project-title,
.team-title,
.notes-title,
.schedule-title {
    font-size: 2rem;
    text-align: center;
    border-bottom: 3px solid #ffffff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* H3 Headings */
h3 {
    font-size: 1.2rem;
    text-align: center;
}

.role-heading,
.completed-tasks-heading,
.tasks-heading,
.discussion-heading,
.schedule-heading {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.schedule-heading-fist {
    margin-bottom: 1rem;
}

.role-heading {
    text-align: center;
}

/* H4 Headings */
.respons-heading,
.desc-heading {
    font-size: 1.1rem;
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Paragraphs */
p {
    font-size: 1rem;
    text-align: center;
}

.meeting-form,
.meeting-duration,
.meeting-summary {
    line-height: 1.6;
}

.meeting-summary {
    margin-bottom: 1.2rem;
}

.meeting-form,
.meeting-duration {
    text-align: left;
}

.team-desc,
.project-desc,
.schedule-summary {
    line-height: 1.5;
    text-align: justify;
}

.card p {
    padding-top: 0.6rem;
}

/***************************************************************/
/*********************** Buttons styling ***********************/
button {
    background-color: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 9px 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(0.98, 0.98);
}

button:active {
    transform: scale(0.96, 0.96);
}

.download-button {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.download-button a {
    background-color: #ffffff;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 9px 25px;
    transition: all 0.3s ease;
}

.download-button a:hover {
    background-color: #333;
    color: #fff;
}

.download-section {
    margin-top: 1rem;
}

/***************************************************************/
/******************** Welcome page styling ********************/
.welcome-container {
    /* border: 3px solid rgb(255, 136, 0); */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.wrapper {
    /* border: 3px solid rgb(255, 255, 255); */
    width: 65%;
}

.row {
    /* border: 3px solid rgb(7, 109, 29); */
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 2.5rem;
}

.row.row1 {
    border-bottom: 3px solid #ffffff;
}

.row.row3 {
    flex-direction: column;
    margin-bottom: 0;
    margin-top: 3.5rem;
}

.card {
    width: 30%;
    max-width: 500px;
    border-radius: 12px;
    cursor: pointer;
    padding: 1rem;
    border: 3px solid rgba(255, 255, 255, .2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.2s ease;
}

.card .desc {
    padding-bottom: 1rem;
    text-align: center;
}

.card a {
    text-decoration: none;
}

.card:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/***************************************************************/
/********************** Table styling **********************/
/* Table styling */
.tasks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.tasks-table th,
.tasks-table td {
    padding: 1rem;
    text-align: left;
}

.tasks-table th {
    background-color: #dcdde1;
    font-weight: bold;
    width: 15%;
    border-bottom: 2px solid #ffffff;
}

.tasks-table .last-th {
    border-bottom: none;
}

.tasks-table td {
    background-color: #ffffff;
    border-bottom: 2px solid #dcdde1;
}

.tasks-table tr:last-child td {
    border-bottom: none;
}

/***************************************************************/
/*********************** List styling ***********************/
/* Notes page */
.future-goals,
.achieved-goals {
    list-style: none;
}

.future-goals li,
.achieved-goals li {
    margin-top: 1rem;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.future-goals li::before,
.achieved-goals li::before {
    content: "•";
    font-weight: bold;
}

/* Schedule page */
.phase-desc,
.summary-desc,
.phase-desc-sub {
    /* border: 2px solid rgb(99, 50, 50); */
    padding-left: 2rem;
}

.phase-desc-sub {
    margin-bottom: 1rem;
}

.phase-desc-sub li {
    margin-top: 0.5rem;
}

.summary-desc li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/***************************************************************/
/*********************** Navbar styling ***********************/
nav ul li {
    list-style: none;
    display: inline-block;
    padding: 0 1.3rem;
}

nav ul li a,
header a {
    transition: 0.5s ease 0s;
}

nav ul li a,
header a :hover {
    transform: scale(1.1, 1.1);
}

/***************************************************************/
/*********************** Tooltip styling ***********************/
/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 100px;
    font-size: 0.8rem;
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 5px 5px;
    border-radius: 40px;
    opacity: 0.8;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    top: 105%;
    left: 52%;
    margin-left: -50px;
    /* Use half of the width (100/2 = 50), to center the tooltip */
}

/* Show the tooltip text when you hover over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
}

/***************************************************************/
/*********************** Iframe styling ***********************/
iframe {
    border: none;
    max-width: 500px;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

/***************************************************************/
/*********************** Image styling ***********************/
nav img,
header img {
    cursor: pointer;
    max-width: 35px;
}

.card img {
    background-color: #fff;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.team-member img {
    /* border: 3px solid pink; */
    border-radius: 12px;
    max-width: 300px;
    width: 60%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/***************************************************************/
/*********************** Responsive design ***********************/
/* Extra small devices (phones, 600px and down) */
@media screen and (max-width: 600px) {
    header {
        padding: 0.5rem 2% 0;
    }

    main {
        max-width: 100%;
        padding: 2rem 0 0;
    }

    .project-container,
    .team-container,
    .notes-container,
    .schedule-container {
        max-width: 85%;
    }

    .project-container,
    .team-container {
        padding-bottom: 2rem;
    }

    .project,
    .team-member,
    .note,
    .schedule {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    nav img,
    header img {
        width: 80%;
    }

    nav ul li {
        padding: 0.5rem 0 0.5rem 0.5rem;
    }

    .wrapper {
        width: 90%;
    }

    .card {
        width: 40%;
        max-width: 200px;
    }

    .card .desc {
        padding-bottom: 1rem;
        text-align: center;
    }

    /* Tooltip text */
    .tooltip .tooltiptext {
        width: 90px;
        font-size: 0.7rem;
        /* Position the tooltip text */
        left: 47%;
    }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
    main {
        max-width: 100%;
    }

    .notes-container,
    .schedule-container,
    .team-container,
    .project-container {
        max-width: 80%;
    }

    .wrapper {
        width: 90%;
    }

    .card {
        width: 40%;
    }
}