/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    background-color: #d2b48c;

    /* Pattern background */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(75, 83, 32, 0.1) 0,
        rgba(75, 83, 32, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #2f3e1c;
    min-height: 100vh;

    padding-top: 60px;
    padding-bottom: 60px;
}

/* Header and nav container */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #4b5320;
    color: #f0e6d2;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(139, 69, 19, 0.15) 0,
            rgba(139, 69, 19, 0.15) 10px,
            rgba(160, 82, 45, 0.15) 10px,
            rgba(160, 82, 45, 0.15) 20px
        ),
        linear-gradient(to right, rgba(75, 83, 32, 1), rgba(75, 83, 32, 0));
    background-repeat: repeat;
    background-size: auto, 40px 40px, 100% 100%;
    background-blend-mode: overlay, multiply;
}

/* Title */
header h3 {
    margin-right: 40px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Nav */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Links */
nav ul li a {
    text-decoration: none;
    color: #d2b48c;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    padding-bottom: 8px;
}

/* Hover effect on all links */
nav ul li a:hover {
    background-color: #7c6f42;
    color: #f0e6d2;
    box-shadow: 0 0 8px 2px rgba(143, 151, 121, 0.7);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

/* After effect on all links */
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #8f9779;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Hover and active state for the after effect */
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Login/Registration page styling */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

.form-card {
    background-color: #f0e6d2;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 2px solid #8f9779;
}

.form-card h2 {
    color: #4b5320;
    margin-bottom: 25px;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2f3e1c;
}

.form-group input,
.form-group input[type=range] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2b48c;
    border-radius: 5px;
    font-size: 1rem;
    color: #2f3e1c;
    background-color: #fcf8f3;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7c6f42;
    box-shadow: 0 0 5px rgba(124, 111, 66, 0.5);
}

.form-card button {
    width: 100%;
    padding: 12px;
    background-color: #8f9779;
    color: #f0e6d2;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.form-card button:hover {
    background-color: #7c6f42;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Text links below forms */
.form-text-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #2f3e1c;
}

.form-text-link a {
    color: #4b5320;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-text-link a:hover {
    color: #7c6f42;
    text-decoration: underline;
}

.slider-describer {
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #4b5320;
    line-height: 1.4;
    padding: 0 15px;
}

/* Flexbox container for the slider columns */
.slider-columns-wrapper {
    display: flex;
    justify-content: space-between; 
    gap: 20px;
    flex-wrap: wrap; 
}

/* Styling for each column */
.slider-column {
    flex: 1;
    min-width: 200px;
}

/* Specific Registration Page layout */
.preference-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 20px;
}

/* Styling for the slider container */
.slider-container {
    background-color: #f0e6d2;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    border: 2px solid #8f9779;
    max-width: 800px;
}

.slider-container h3 {
    color: #4b5320;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.slider-group {
    margin-bottom: 20px;
}

.slider-group label {
    display: block;
    font-weight: 600;
    color: #2f3e1c;
    margin-bottom: 10px;
    text-align: left;
}

.slider-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #d2b48c;
    outline: none;
    opacity: 1;
    transition: opacity .2s;
    border-radius: 5px;

    /* Dynamic gradient background */
    background-image: -webkit-gradient(linear, left top, right top, from(#7c6f42), to(#8f9779));
    background-image: -webkit-linear-gradient(left, #7c6f42, #8f9779);
    background-image: -moz-linear-gradient(left, #7c6f42, #8f9779);
    background-image: -ms-linear-gradient(left, #7c6f42, #8f9779);
    background-image: -o-linear-gradient(left, #7c6f42, #8f9779);
    background-image: linear-gradient(to right, #7c6f42, #8f9779);
}

.slider-group input[type="range"]:hover {
    opacity: 1;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #8f9779;
    cursor: pointer;
    border: 2px solid #7c6f42;
    transition: background-color 0.3s;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #4b5320;
}

.slider-group .value-display {
    text-align: right;
    font-size: 0.9rem;
    color: #2f3e1c;
    margin-top: 5px;
}

/* Footer styling */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #4b5320;
    color: #f0e6d2;
    text-align: center;
    padding: 6px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    background-image:
    repeating-linear-gradient(
        45deg,
        rgba(139, 69, 19, 0.15) 0,
        rgba(139, 69, 19, 0.15) 10px,
        rgba(160, 82, 45, 0.15) 10px,
        rgba(160, 82, 45, 0.15) 20px
    ),
    linear-gradient(to right, rgba(75, 83, 32, 1), rgba(75, 83, 32, 0));
    background-repeat: repeat;
    background-size: 40px 40px;
    background-blend-mode: multiply;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.slider-container button {
    width: 100%;
    padding: 12px;
    background-color: #8f9779;
    color: #f0e6d2;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.slider-container button:hover {
    background-color: #7c6f42;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}