@import url(https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans&display=swap);

:root {
    --left: 40px;
    --bgcolour: #1F2937;
    /* --bgcolour: #1b2f4e; */
    /* --bgcolour: #003277; */
    /* --bgcolour: #01396d; */
    --altbcolour: #e1ebfa;
    --linkColours: #1F2937;
    --white: #f9faf8;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", "Fredoka", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    min-height: 100vh;
}


/* SECTION ONE */
.section-one {
    /* border: 6px solid red; */
    display: flex;
    flex-direction: column;
    color: #f9faf8;
    /* gap: 50px; */
    /* margin-bottom: 7%; */
    height: 25em;
}

a {
    text-decoration: none;
}

a:visited {
    color: black;
}


/* HEADER */
header {
    /* border: 3px solid yellow; */
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header>h1 {
    display: block;
    padding: 20px 25px;
    margin: 0;
    padding: 0;
    font-size: 35px;
}

header>h1>a {
    /* border: 1px solid red; */
    /* color: #f9faf8; */
    cursor: pointer;
}

header>ul {
    /* border: 1px solid red; */
    list-style: none;
    margin: 0;
    padding: 0;
    /* display: inline; */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

header>ul>li {
    display: inline-block;
    position: relative;
    height: 100%;
}

header>ul,
header>ul>li>a {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    text-align: center;
}

header>ul>li>a {
    /* border: 1px solid black; */
    cursor: pointer;
}

header>ul>li>ul.dropdown>li>a {
    /* color: #f9faf8; */
    cursor: pointer;
    align-self: center;
    justify-self: center;
}

header>ul>li>ul.dropdown>li {
    text-align: center;
    display: block;
    width: auto;
    height: 40px;
    border-bottom: 1px solid black;
}

.dropdown {
    /* background-color: #1F2937; */
    border: 1px solid black;
    background-color: white;
    width: 100%;
    visibility: hidden;
    display: none;
    position: absolute;
    z-index: 999;
}

.visible {
    visibility: visible;
    display: block;
}

/* HERO */
.hero {
    /* border: 3px solid red; */
    background-color: #1F2937;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    /* height: 40em; */
    /* height: 500px; */
    /* margin: auto; */
    /* margin-top: 30px; */
    /* flex-flow: column wrap; */
    /* justify-content: space-around; */
    /* gap: 5px; */
    /* gap: 15px; */
}

.hero>.main-text {
    /* border: 1px solid yellow; */
    margin: 0;
    font-size: 80px;
    font-weight: bold;
    color: #f9faf8;
    text-align: center;
    align-self: center;
    justify-self: center;
}

.hero>.secondary-text {
    width: 80%;
    text-align: center;
}

.hero>.btn {
    margin-top: 20px;
    padding: 20px;
    border-radius: 50px;
    font-size: 20px;
    color: black;
    background-color: white;
    /* border: 1px solid red; */
}


button {
    cursor: pointer;
}

/* SECTION TWO */
.section-two {
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1; */

    display: grid;
    grid-template-rows: 0.2fr 2fr;
}

.section-two>.section-header {
    /* border: 2px solid red; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #1f2937;
    font-size: 36px;
    font-weight: bolder;
    padding: 30px;
}

.section-two>.container {
    /* border: 3px solid yellow; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-template-rows: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    margin: 15px;
}

.section-two>.container>div {
    /* border: 2px solid green; */
    background-color: var(--bgcolour);
    color: white;
    text-align: center;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-two>.container>div>p {
    font-size: 30px;
    text-align: center;
    margin: 0;
    padding: 3%;
}

.section-two>.container>div>a {
    padding: 10px;
    border-radius: 3px;
    background-color: white;
    align-self: center;
}

.random-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #1f2937;
    font-size: 36px;
    font-weight: bolder;
    padding: 30px;
}


/* TREATMENT PAGES */
.treatment-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.treatment-container>.container {
    border: 3px solid yellow;
    display: flex;
    flex-flow: column nowrap;
    flex: 1;
}

.treatment-container>.container>.top-section,
.treatment-container>.container>.middle-section,
.treatment-container>.container>.bottom-section {
    border: 2px solid green;
    height: 700px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.top-section>p,
.middle-section>p,
.bottom-section>p {
    flex: 1;
    width: 50%;
    text-align: center;
}

.graphic {
    border: 4px solid #3882f6;
    width: 550px;
    height: 550px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* DIALOG */
/* FORM STYLING */
dialog {
    margin: 0 auto;
    align-self: center;
    width: 30rem;
    /* border-radius: 10px; */
}

dialog::backdrop {
    background-color: grey;
    opacity: 0.5;
}

form {
    /* border: 1px solid black; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    margin: 0 auto;
}

form>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3px;
    /* border: 1px solid red; */
}

form>div>input {
    width: 100%;
}

input {
    height: 2rem;
}

input>span {
    color: red;
}

.name-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}

.date-container,
.project-container {
    display: flex;
}

.priority-container>p {
    margin: 0;
    padding: 0;
    display: inline;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.button-container>button {
    border: 0px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 5px;
    height: 3rem;
    cursor: pointer;
    width: 45%;
}

.button-container>button:hover {
    filter: brightness(1.1);
}

.button-container>button[class="submit-project-btn"],
.button-container>button[class="submit-task-btn"],
.cards>button[class="edit-task"] {
    background-color: lightgreen;
    margin-bottom: 15px;
}

.button-container>button[class="close-project-dialog"],
.button-container>button[class="close-task-dialog"],
.cards>button[class="delete-task"] {
    background-color: lightcoral;
}

/* FOOTER */
.footer {
    background-color: #1F2937;
    color: #f9faf8;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-bottom: auto;
}