@font-face {
    font-family: Inter;
    src: url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
}

/* =========================
   GLOBAL
========================= */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;

    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: #86efac;
    color: #242424;
}

main {
    flex: 1;
}

.error {
    color: red;
}

/* =========================
   HEADER + NAVBAR
========================= */

header {
    padding: 5px;
    background-color: white;
    border-radius: 20px;
    margin: 10px;


    /* =========================
    NAVBAR
    ========================= */

    .navbar {

        display: flex;
        flex-direction: row;

        align-items: center;
        justify-content: space-between;

        flex-wrap: wrap;

        gap: 10px;
    }

    .navbar__link {
        margin-left: 30px;
        color: #242424;
        text-decoration: none;
        padding: 15px 20px;

        transition: 0.2s ease;
    }

    .navbar__logo {
        font-size: x-large;
        font-weight: bold;
    }

    .navbar__status {
        margin-left: 30px;
        color: #242424;
    }

    .navbar__status--purple {
        color: #00ff00;
    }

    .navbar__link:hover {
        background-color: lightblue;
        border-radius: 20px;
    }




    /* =========================
    DROPDOWN
    ========================= */

    .dropdown {
        float: left;
        overflow: hidden;
    }

    .dropdown .dropbtn {
        font-size: 16px;
        border: none;
        outline: none;

        padding: 14px 16px;

        background-color: inherit;

        font-family: inherit;

        margin: 0;

        cursor: pointer;
    }

    .dropdown-content {
        display: none;

        position: absolute;

        background-color: #f9f9f9;

        min-width: fit-content;

        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);

        z-index: 1;

        border-radius: 12px;

        overflow: hidden;
    }

    .dropdown-content a {

        float: none;

        color: black;

        padding: 12px 16px;

        text-decoration: none;

        display: block;

        text-align: left;
    }

    .dropdown-content a:hover {
        background-color: #ddd;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}



/* =========================
   MAIN CONTAINER
========================= */



.hero {
    text-align: center;

    padding: 120px 20px 80px 20px;

    max-width: 900px;

    margin: auto;
}

.hero h1 {
    font-size: 3.5rem;

    line-height: 1.2;

    margin-bottom: 25px;
}

.hero__subtitle {
    font-size: 1.2rem;

    color: #4B5563;

    margin-bottom: 40px;
}

/* BUTTON */

.hero button {
    background-color: #22C55E;

    color: white;

    border: none;

    padding: 16px 32px;

    font-size: 1rem;

    border-radius: 14px;

    cursor: pointer;

    transition: 0.2s ease;


}

.hero button:hover {
    background-color: #16A34A;

    transform: translateY(-2px);
}

/* FEATURES */

.features {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    max-width: 1100px;

    margin: auto;

    padding: 0 20px 80px 20px;
}

/* CARD */

.feature-card {
    background-color: white;

    padding: 30px;

    border-radius: 20px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.feature-card h2 {
    font-size: 1.3rem;

    margin-bottom: 15px;
}

.feature-card p {
    color: #4B5563;

    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}


.baseContainer {

    text-align: center;

    padding: 20px;
}

.checkMark {
    color: #00ff00;
}

.container {

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);

    max-width: fit-content;

    margin: auto;

    text-align: center;

    border-radius: 20px;

    background-color: white;

    padding: 20px 40px;
}

/* =========================
   EXERCISE
========================= */

.phraseExo {
    font-size: 2em;
}

.emplacementReponse {

    background-color: lightgray;

    border-radius: 20px;

    display: inline-block;

    width: 70px;

    padding: 5px;
}

.container button {

    background-color: white;

    border: 2px solid black;

    color: black;

    padding: 10px 40px;

    text-align: center;

    text-decoration: none;

    display: inline-block;

    margin: 4px 2px;

    cursor: pointer;

    border-radius: 10px;

    transition: 0.2s ease;
}

.container button:hover {
    opacity: 0.7;
}



/* =========================
   HISTORY
========================= */


  .historyStats {
        display: flex;
        justify-content: space-around;
   

        div {
            padding: 10px;
            margin: 5px;
            border: black 1px solid;
        }

    }


.table-container {
    overflow-x: auto;

  

    .table-zebra {
        width: 100%;
        border-collapse: collapse;
        font-family: sans-serif;
        font-size: 0.9rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .table-zebra caption {
        caption-side: top;
        text-align: center;
        font-weight: bold;
        color: #666;
        padding: 10px 0;
    }

    .table-zebra thead {
        background-color: #2c3e50; /* A dark blue-grey header */
        color: #ffffff;
    }

    .table-zebra th, 
    .table-zebra td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #dddddd;
    }

    /* This is the magic for the zebra-striping */
    .table-zebra tbody tr:nth-of-type(even) {
        background-color: #f3f3f3;
    }

    .table-zebra tbody tr:last-of-type {
        border-bottom: 2px solid #2c3e50;
    }

    /* Optional: Add a hover effect for better user interaction */
    .table-zebra tbody tr:hover {
        background-color: #e2e8f0;
        cursor: pointer;
    }


}











/* =========================
   PARAMETERS
========================= */


.parameters{

    * {box-sizing: border-box}


    button {


        text-align: center;
        text-decoration: none;
        margin: 4px 2px;
        border-radius: 10px;
        background-color: white;
        color: black;
        padding: 10px 40px;
        margin: 8px 0;
        border: 2px solid black;
        cursor: pointer;
        width: 100%;
        opacity: 0.9;

    }

    button:hover {
        opacity: 0.7;
    }

  
    /* Float cancel and delete buttons and add an equal width */
    .cancelbtn, .deletebtn {
        float: left;
        width: 50%;
    }

    /* Add a color to the cancel button */
    .cancelbtn {
        background-color: #ccc;
        color: black;
    }

    /* Add a color to the delete button */
    .deletebtn {
        background-color: #f44336;
    }

    /* Add padding and center-align text to the container */
    .containerPopUp {
        padding: 16px;
        text-align: center;
    }

    /* The Modal (background) */
    .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1; /* Sit on top */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: #474e5d;
        padding-top: 50px;
        background:rgba(55,55,55,.6);
    }

    /* Modal Content/Box */
    .modal-content {
        background-color: #fefefe;
        margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
        border: 1px solid #888;
        width: 30%; /* Could be more or less, depending on screen size */
    }

    /* Style the horizontal ruler */
    hr {
        border: 1px solid #f1f1f1;
        margin-bottom: 25px;
    }

    /* The Modal Close Button (x) */
    .close {
        position: absolute;
        right: 35px;
        top: 15px;
        font-size: 40px;
        font-weight: bold;
        color: #f1f1f1;
    }

    .close:hover,
    .close:focus {
        color: #f44336;
        cursor: pointer;
    }

    /* Clear floats */
    .clearfix::after {
        content: "";
        clear: both;
        display: table;
    }

    /* Change styles for cancel button and delete button on extra small screens */
    @media screen and (max-width: 300px) {
        .cancelbtn, .deletebtn {
            width: 100%;
        }
    }

}












/* =========================
   FOOTER
========================= */

footer {

    margin-top: 40px;

    padding: 10px;

    background-color: #1f2937;

    color: white;

    display: flex;

    justify-content: space-evenly;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    width: 100%;

    box-sizing: border-box;



    .footer__link {
        text-decoration: none;
        color: white;

        transition: 0.2s ease;
    }

    .footer__link:hover {
        opacity: 0.7;
    }

    .footer__logo {
        font-size: x-large;
        font-weight: bold;
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .navbar {

        flex-direction: column;

        align-items: center;
    }

    .navbar__link,
    .navbar__status {
        margin-left: 0;
    }

    .container {

        width: 90%;

        max-width: 90%;

        padding: 20px;
    }

    .phraseExo {
        font-size: 1.5em;
    }

    footer {

        flex-direction: column;

        text-align: center;
    }
}