html {
    scroll-snap-type: y mandatory;
    overflow-x:hidden;
}
body {
    margin: 0;
    padding: 0;}

h1 {
    font: 36px/40px 'DM Sans';
    font-weight: 900;
}
h2 {
    font: 24px/30px 'DM Sans';
    font-weight: 500;
}
h3 {
    font: 18px/18px 'DM Sans';
    font-weight: 700;
}
p {
    font: 12px/20px 'Inter', sans-serif;
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #333;
    overflow: hidden;
}

nav li {
    float: left;
}

nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav li a:hover {
    background-color: #111;
}

.active {
    background-color: #4CAF50;
}

.woven-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.woven-row {
    width: 100%;
    height: 50px; /* Adjust height as needed */
}

/* General section styling */
.section {
    /* padding: 2rem;
    margin: 2rem 0; */
    box-sizing: border-box;
    scroll-snap-align: center;

}

h2 {
    color: #333;
    margin-bottom: 1.5rem;
}
#air-quality-map, #pattern-builder, #fabric-showcase {
    width: 100%;
    margin: 0 auto;
    scroll-snap-align: start;
}
.map-container iframe, .builder-container iframe {
    width: 100%;
    height: 100%;
}

/* Map Section */
.map-container {
    width: 100%;
    height: 100vh;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
}

/* Pattern Builder Section */
.builder-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    margin-top: 1rem;
}

.builder-component {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    max-width: 50%;
    margin-bottom: 20px;
}



/* Showcase Section */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 1rem;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .builder-container {
        flex-direction: column;
    }
    
    .builder-component {
        margin-bottom: 1rem;
    }
    .page iframe {
        overflow-x: hidden;
      }
}
.knit-sliders{
    width:100%

}

.slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.slider-group label {
    font-weight: bold;
    color: #444;
}

.slider-with-ticks {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}


.ticks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: absolute;
    left: 100%;
    top: 0;
    padding: 0;
}

.ticks span {
    font-size: 0.8rem;
    color: #666;
    transform: none;
    margin-left: 5px;
    position: relative;
}

.ticks span::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 8px;
    height: 1px;
    background-color: #666;
    margin-right: 3px;
}

.slider-value {
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
}



/* About Page Styles */
.section {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: flex;
    flex-direction:row;
    border-radius: 5px;

}

section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Project Objectives List */
.project-objectives ul {
    list-style-type: none;
    padding-left: 0;
}

.project-objectives li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.project-background{
    border-radius:5px;
}

.project-objectives li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Team Section */
.team-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.member {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    border: 1px solid #e9ecef;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member h3 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.member h4 {
    color: #3498db;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.member p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.mobile-logo{
    max-width: 100vw;
    max-height: 20%;
    display:none;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-members {
        grid-template-columns: 1fr;
    }
    .mobile-logo{
        display:block
    }
}


.logo-item img {
    vertical-align: middle;
}

#badair{
    position: absolute;
    max-width: 100vw;
    top: 30%;
    left:50%;
    transform: translate(-50%,-50%);
    color: white;
    font-size-adjust:calc(); 
    /* TODO:adjust font size to size with resizing */
}
#sub-badair{
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    color:white
}