*{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

:root {
    --primary-color: #3DDA24;
    --secondary-color: #91CE76;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav{
    height: auto;
    min-height: 90px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-wrap: wrap;
    border: 2px solid white;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
}

.nav-logo{
    height: 80px;
    width: 200px;
    flex-shrink: 0;
}

.logo{
    background-image: url("logo.png");
    height: 100%;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-wel{
    margin: 25px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    flex-grow: 1;
}

.nav-sec{
    background-color: var(--secondary-color);
    height: auto;
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    border: 2px solid white;
    padding: 5px;
    justify-content: center;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    padding: 5px 15px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:active,
.nav-link:focus {
    border: 2px solid white;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.nav-search{
    display: flex;
    margin: 20px auto;
    height: 40px;
    width: 100%;
    max-width: 660px;
    padding: 0 15px;
}

.search{
    width: calc(100% - 35px);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: .8rem;
    border: 2px solid var(--primary-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search:focus {
    box-shadow: 0 0 5px rgba(61, 218, 36, 0.5);
}

.search-icon{
    width: 35px;
    background-color: var(--primary-color);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background-color: var(--secondary-color);
}

.fa-solid {
    color: white;
}

.list {
    color: var(--primary-color);
    margin: 30px 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    width: 100%;
}

.practicals{
    text-align: center;
    width: 90%;
    max-width: 905px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.practical {
    margin: 0;
    padding: 30px 20px;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    font-size: clamp(1rem, 2vw, 1.25rem);
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.practical h1 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4;
}

.practical a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.practical a:hover {
    background-color: white;
    color: var(--primary-color);
}

.background{
    color: white;
    transition: all 0.3s ease;
}

.background:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer{
    background-color: var(--primary-color);
    margin-top: auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.quicklinks, .aboutlab {
    margin: 0;
}

.quicklinks h3, .aboutlab h3, .data h3 {
    color: white;
    margin-bottom: 20px;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.quicklinks a, .aboutlab a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.quicklinks a:hover, .aboutlab a:hover {
    opacity: 0.8;
    padding-left: 5px;
}

.scan {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scan img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

.data {
    text-align: center;
}

.data h3 {
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-wel {
        margin: 15px 0;
    }
    
    .nav-search {
        margin: 15px auto;
    }
    
    .practical {
        margin: 0;
    }
    
    footer {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo {
        height: 60px;
        width: 150px;
    }
    
    .nav-wel h1 {
        font-size: clamp(0.875rem, 4vw, 1rem);
    }
    
    .nav-sec {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
}
a{
    text-decoration: none;
    color: white;
}