@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
    background: #888;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#pendulumCanvas {
    border: 1px solid #000;
    margin-top: 2rem;
}



/* ---------------------------------- Laptops and Desktops ------------------------- */

@media (min-width: 1200px) {

.max-width {
    max-width: 1500px; 
    width: 100%;
    /* padding: 0 40px; */
}


.box-question {
    box-sizing: border-box;
    overflow-x: visible;
    margin-right: 1.5rem; /* adjust this value as needed */
}

section .title {
    position: relative;
    text-align: center;
    color: #000000;
    font-size: 40px;
    font-weight: 500;
    margin-top: 1%;
    font-family: 'Ubuntu', sans-serif;
}

.fre {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000000; /* Color of Name, and moving text in first page */
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
}

.box {
    position: relative;
    margin-top: 5%;
    width: 50%;
}

.box select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #98CB3B;
    border-radius: 5px;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease;
}


.box::before {
    content: "\f13a";
    font-family: 'Ubuntu', sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    text-align: center;
    font-size: 28px;
    line-height: 45px;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    
}

.box:hover::before {
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
}

.box select option {
    padding: 30px;
}

.figureLast {
    margin-left: -50%;
}

.slider {
    width: 100%;
    height: auto;
    border-radius: 5px;
    font-size: 24px;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin-top: 1rem;
    margin-bottom: 2rem;   
}

.buttonTotal {
    display: block;
    width: 50%;
    height: auto;
    font-size: 100%;
    position: relative;
    padding: 10px 20px;
    background-color: #98CB3B;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin-top: 10px;
}

.buttonTotal:hover {
    background-color: #2C9AD1;
    transform: scale(1.05);
}


.flex{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}


}


/* -----------------------------------------  Tabs ------------------------------------------ */

@media (max-width: 1200px) and (min-width: 768px) {

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

section .title {
    position: relative;
    text-align: center;
    color: #000000;
    font-size: 40px;
    font-weight: 500;
    margin-top: 10%;
    width: 100%;
    font-family: 'Ubuntu', sans-serif;
}

.fre {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000000; /* Color of Name, and moving text in first page */
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
}

.box {
    position: relative;
    margin-top: 5%;
    width: 70%;
}

.box select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #98CB3B;
    border-radius: 5px;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease;
}

.box::before {
    content: "\f13a";
    font-family: 'Ubuntu', sans-serif;
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    text-align: center;
    font-size: 28px;
    line-height: 45px;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.box:hover::before {
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
}

.box select option {
    padding: 30px;
}

.figureLast {
    margin-left: -30%;
}

.slider {
    width: 100%;
    height: 15px;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.buttonTotal {
    display: block;
    width: 70%;
    height: auto;
    font-size: 100%;
    position: relative;
    padding: 10px 20px;
    background-color: #98CB3B;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.buttonTotal:hover {
    background-color: #2C9AD1;
    transform: scale(1.05);
}

}


/*---------------------------------- Phones ------------------------------------ */

@media (max-width: 768px) {
    .max-width {
        max-width: 100%;
        padding: 0 15px;
        margin: auto;
    }
      /* Adjust column widths for mobile */
      .column.is-2-desktop.is-4-tablet.is-10-mobile {
        width: 100%;
        margin-bottom: 1rem;
    }

    .column.is-7-desktop.is-10-tablet.is-10-mobile {
        width: 100%;
        margin-bottom: 1rem;
    }

    .column.is-3-desktop.is-10-tablet.is-5-mobile {
        width: 100%;
    }

    section .title {
        position: relative;
        text-align: center;
        color: #000000;
        font-size: 24px;
        font-weight: 500;
        margin-top: 1rem;
        width: 100%;
        font-family: 'Ubuntu', sans-serif;
        padding: 0 10px;
    }

    .fre {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #000000;
        background-size: cover;
        background-attachment: fixed;
        font-family: 'Ubuntu', sans-serif;
    }

    .box {
        position: relative;
        margin-top: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .box select {
        width: 100%;
        height: 44px;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #98CB3B;
        border-radius: 5px;
        background-color: #FFFFFF;
        transition: border-color 0.3s ease;
        font-size: 16px;
    }

    .box::before {
        content: "\f13a";
        font-family: 'Ubuntu', sans-serif;
        position: absolute;
        top: 0;
        right: 0;
        width: 20%;
        height: 100%;
        text-align: center;
        font-size: 28px;
        line-height: 45px;
        color: rgba(255, 255, 255, 0.5);
        background-color: rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }

    .box:hover::before {
        color: rgba(255, 255, 255, 0.6);
        background-color: rgba(255, 255, 255, 0.2);
    }

    .box select option {
        padding: 10px;
    }

    .figureLast {
        margin-left: 0%;
        width: 100%;
    }

    .slider {
        width: 100%;
        height: 44px;
        border-radius: 5px;
        outline: none;
        opacity: 0.7;
        margin: 1rem 0;
        margin-bottom: 4rem;
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .slider input[type="range"] {
        width: 100%;
        height: 20px;
    }

    .slider label {
        margin-top: 0.5rem;
        text-align: center;
    }

    .buttonTotal {
        display: flex;
        width: 100%;
        height: 44px;
        font-size: 16px;
        position: relative;
        padding: 10px 20px;
        background-color: #98CB3B;
        color: #FFFFFF;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        margin: 0.5rem auto;
    }

    .buttonTotal:hover {
        background-color: #2C9AD1;
        transform: scale(1.05);
    }

    .input-group {
        width: 100%;
        margin: 1rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    input[type="text"] {
        width: 100%;
        height: 44px;
        padding: 8px;
        font-size: 16px;
        margin-bottom: 0.5rem;
        border: 1px solid #98CB3B;
        border-radius: 5px;
    }

    #observations3,
    #observations4,
    #observations5 {
        width: 100%;
    }

    #observations3 div,
    #observations4 div,
    #observations5 div {
        width: 100%;
    }

    #pendulumCanvas {
        width: 100% !important;
        height: 300px !important;
        margin: 1rem 0;
    }

    .box-question {
   
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #hint,
    #pendulumHint,
    #result,
    #pendulumResult {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* ---------------------------------------------------- Tabs -------------------------------------------- */

.tab {
    overflow: hidden;
    border: 1px solid #FFFFFF;
    background-color: #FFFFFF;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
    border-style: solid;
    border-radius: 10px;
    border-color: #98CB3B;
    color: #176696;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

/* ------------------------------------------ Table ------------------------------------ */

table, td, tr {
    padding: 10%;
    border: 3px solid black;
    border-collapse: collapse;
}

th {
    border: 3px solid black;
    background-color: #AAA;
}

/* -------------------------------------- Area -------------------------------------------------- */

#canvas {
    border: 1px solid #000;
}