@font-face {
    font-family: Chivo;
    src: url(Chivo/Chivo-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Chivo;
    src: url(Chivo/Chivo-Bold.ttf);
    font-weight: bold;
}

@font-face {
    font-family: Chivo;
    src: url(Chivo/Chivo-Light.ttf);
    font-weight: 200;
}

@font-face {
    font-family: Chivo;
    src: url(Chivo/Chivo-Black.ttf);
    font-weight: 800;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}


main {
    max-width: 100%;
    padding: 0;
}

body {
    font-family: Chivo, sans-serif;
    font-weight: 200;
    font-size: 40px;   
    margin: 0px;
    padding: 0px; 
}

body li {
    margin-left: 70px;
}

body h1 {
    margin-left: 40px;
    color: #ffffff;
}

textarea {
    margin-left: 50px;
    margin-top: 20px;
    margin-bottom: 50px;
    font-size:30px; 
    font-family: sans-serif; 
    width: 95%; 
    height: 100%; 
    background-color:gainsboro; 
    outline: none; 
    color: black; 
    border-radius: 25px; 
    padding: 20px; 
    font-family: Chivo, sans-serif; 
    font-weight: 200; 
    font-size: 35px;
}

/* Table colors */
thead {
    background-color: #52ab98;
}

tbody tr {
    background-color: #c8d8e4;
}

table {
    font-size: 30px;
    width: 90%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 40px 40px 40px 40px;
    overflow: hidden;
    border-radius: 0;
}

table th, td {
    padding: 15px;
    text-align: center;
    border: 6px solid #ffffff;
    overflow: hidden;
}

main {
    max-width: 100%;
    padding: 0;
}

body {
    font-family: Chivo, sans-serif;
    font-weight: 200;
    font-size: 40px;   
    margin: 0px;
    padding: 0px;
    background-color: #2b6777;
    color: white; 
}

body li {
    margin-left: 70px;
}

body h1 {
    margin-left: 40px;
    color: #ffffff;
}

textarea {
    margin-left: 50px;
    margin-top: 20px;
    margin-bottom: 50px;
} 

.home-grid {
    display: grid; 
    width: 100%; 
    grid-template-columns: 1fr auto;
}

.home-content {
    grid-column-start: 1; 
    grid-column-end:2; 
    justify-content: center;
}

.home-image {
    width: 600px;
    margin-left: 50px;
    margin-top:-4px; 
    margin-right: -65px; 
    grid-column-start: 3; 
    grid-column-end:4;
    margin-top: 0; 
    margin-right: 0;
}
.container {
    background-color: #c8d8e4;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 100%;
}
  
.home-message {
    background-color: teal;
    font-weight: normal;
    font-style: italic;
    color: #c8d8e4;
    font-size: 25px;
    width: 100%;
    text-align: center;
    margin-top: 70px; /* Push to bottom of available space */
    position: fixed; /* Normal document flow */
    bottom: 0px; /* Remove fixed positioning */
    left: auto;
}

.back-link {
    text-decoration: none;
    color: #52ab98;
    font-weight: normal;
    font-size: 30px;
    margin-left: 50px;
}

header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    height: 80px; /* Fixed height */
    width: 100%;
}

header::after {
    content:'';
    display: table;
    clear: both;
}

.logo {
    height: 50px; /* Fixed height for desktop */
    width: auto;
    display: block;
}

nav {
    margin-left: auto; /* Push nav to the right */
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 30px;
    padding: 0;
}

nav a{
    color: black;
    text-decoration: none;
    font-size: 20px;
    font-weight: normal;
    font-family:Chivo, sans-serif;
    
}

nav a:hover {
    color:teal;
}

thead {
    background-color: #52ab98;
}

tbody tr {
        background-color: #c8d8e4;
}

table a {
    text-decoration: none;
    color: #2b6777;
    font-weight: normal;
    font-size: 30px;
    display: block;
}

table a:hover {
    color:white;
}


select, input, button  {
    height: 50px;
    width: calc(100% - 80px);
    max-width: 700px;
    font-weight: lighter;
    font-size: 20px;
    border-radius: 20px;
    padding-left: 15px;
    outline: none;
    border: none;
    font-family: Chivo, sans-serif;
}

select:hover  {
    box-shadow: 5px 5px 10px #222222;
}

input:hover {
    box-shadow: 5px 5px 10px #222222;
}

.submitButton {
    width: 50%;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: #52ab98;
    color: white;
    margin-left: auto;
    margin-right: auto;
}

.submitButton:hover {
    cursor: pointer;
    filter: brightness(0.8);
}

.submitWrapper {
    display: flex;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-right: 40px;
}
.notes {
    font-size:30px; 
    font-family: sans-serif; 
    width: 80%;
    height: 100%; 
    background-color:#f2f2f2 ; 
    outline:none; 
    color: black; 
    border-radius: 25px;
    padding: 20px; 
    font-family: Chivo, sans-serif; 
    font-weight: 200; 
    font-size: 35px;
}

hr {
    color: white;
    border: 2px solid white;
}

body h2 {
    margin-left: 40px;
    color: #ffffff;
}

nav a::after {  
    content: '';
    display: block;
    height: 3px;
    margin-left: 10%;
    margin-right: 10%;
    background-color: #52ab98;

    width: 0%;
    transition: all ease-in-out 200ms;
}

nav a:hover::after {
    margin-left: 10%;
    margin-right: 10%;
    width: 80%;
}

.loginContainer {
    width: 100%;
    min-height: 80vh;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loginContainer h1 {
    text-align: center;
    margin-left: 0px ;
    margin-right: 0px;
}

.innerLoginContainer {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.innerLoginContainer input {
    width: 80%;
    max-width: 400px;
    margin: 10px auto;
    text-align: left;

}


.loginButton {
    background-color:#52ab98;
    color: white;
    width: 300px;
    margin-top: 30px;
}

.loginButton:hover{
    background-color: teal;
    cursor: pointer;
    color: #B9BBB6;
}

.buttonContainer {
    margin: auto;
    width: 50%;
}

p {
    font-size: 30px;
}

p a {
    font-size: 30px;
    color: #52ab98;
    text-decoration: none;

}

p a:hover {
    text-decoration: underline;
}

span {
    color: red;
    font-size: 30px;
    font-weight: normal;
    margin: auto;
}

@keyframes errorAnimation {
    from {transform: translateY(+20px); opacity: 0;}
    to {transform: translateY(0px); opacity: 100;}
}

.errorMessage {
    background-color: white; 
    border-radius: 10px; 
    padding: 10px; 
    margin-top: 30px; 
    border-left: 7px solid red; 
    display: flex; 
    max-width: 700px;
    animation-name: errorAnimation;
    animation-duration: 1.5s;
}

.deleteButton {
    color: rgb(145, 4, 4);
    margin-left: 30px;
    font-size: 30px;
    font-weight: 100;
    text-decoration: none;
}

.deleteButton:hover{
    text-decoration: underline;
    color: red;
    font-weight: 500;
}

.textMessage {
    font-weight: normal;
    font-style: italic;
    margin-left: 70px;
    color: #c8d8e4;
    font-weight: normal;
}

.addForm {
    padding-left: 80px;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-right: 40px;
    width: 80%;
}

.pageLinks {
    text-decoration: none;
    color: #52ab98;
    font-weight: normal;
    font-size: 35px;
    margin-left: 50px;
    
}

.pageLinks:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* Mobile-first approach - Base styles remain the same until header section */

/* Mobile-first approach */
@media screen and (max-width: 768px) {
    /* Keep original font-size for body but adjust slightly for mobile */
    body {
        font-size: 25px;   /* Slightly smaller font size for mobile */
    }

    .deleteButton {
        font-size: 20px;
    }


    /* Adjust table for smaller screens */
    table{
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 40px 40px 40px 40px;
        border-radius: 0;
        border:none;


    }
    
    table th, td{
        padding: 10px;
        font-size: 25px;
        border: 3px solid #ffffff;
        overflow: hidden;
    }

    /* Adjust header for smaller screens */
    header {
        height: 60px;
    }

    .logo {
        height: 35px; /* Smaller logo on mobile */
    }


    .hamburger {
        display: block;
        cursor: pointer;
        padding-right: 10px;
        z-index: 1000;
    }

    .hamburger .line {
        width: 30px;
        height: 2px;
        background-color: #333;
        margin: 6px auto;
        transition: all 0.3s ease-in-out; /* Add transition for animation */
    }

    /* Adjust the page links */
    .pageLinks {
        font-size: 25px;
        margin: 10px 10px
    }

    .errorMessage {
        font-size: 16px;
        width: 100%;
        padding: 10px;
    }

    nav {
        display: none;
        width: 100vw;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #c8d8e4;;
        transition: 0.5s;
        overflow: hidden;
        padding-bottom: 20px;
     
    }

    nav.active {
        display: inline;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        display: block;
    }

    nav li {
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    nav a {
        padding: 20px;
        display: inline-block;
        border-radius: 30px;
        color: black;
    }

    nav a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transition: 0.2s;
        color: teal;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Remove underline animation in mobile menu */
    nav a::after {
        display: none; /* Remove the underline effect */
    }

    nav a:hover::after {
        display: none; /* Remove the underline effect on hover */
    }

    /* Login container improvements */
    .loginContainer {
        padding: 15px;
    }

    .innerLoginContainer {
        width: 100%;
    }

    .loginButton {
        width: 100%;
        max-width: 300px;
    }

    /* Error message improvements */
    .errorMessage {
        margin: 15px;
        max-width: calc(100% - 30px);
    }

    /* Update table link styles */
    table a {
        font-size: 20px; /* Smaller font size for mobile */
    }

    /* Hide home image on mobile devices */
    .home-image {
        display: none; /* Completely hide the image on mobile */
    }
}


