* {
    box-sizing: border-box;
}

body {
    background-color: #f0f2f5;
    background-image: linear-gradient(to bottom, #ffffff, #dcdde1);
    background-attachment: fixed;
    color: #2f3640; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #353b48;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

nav {
    background-color: #2f3640;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: static;
    width: 100%;
}

nav a {
    color: #f5f6fa;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s, transform 0.3s; 
}

nav a:hover {
    color: #9c88ff;
    transform: scale(1.1); 
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    width: 95%;
    max-width: 1000px;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.9); 
    padding: 20px;
    border: 1px solid #dcdde1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #353b48;
    border-bottom: 2px solid #9c88ff;
    padding-bottom: 10px;
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
}

table, th, td {
    border: 1px solid #dcdde1;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #9c88ff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}


details {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dcdde1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

summary {
    font-weight: bold;
    cursor: pointer;
    color: #353b48;
}

img, video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: block;
    margin: 20px auto;
    transition: transform 0.5s;
}

img:hover {
    transform: rotate(2deg);
}

#gallery .gallery-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

#gallery .video-box, #gallery .image-box {
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    padding: 30px;
    color: #7f8c8d;
    background-color: rgba(53, 59, 72, 0.05);
}

.scroll-container{
    max-height: 300px;
    width: 100%;
    height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #9c88ff;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    background-color: #ffffff;
    margin-top: 10px;
}

.responsive-form {
    display:flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.responsive-form label {
    margin-top: 15px;
    font-weight: bold;
    color: #353b48;
}

.responsive-form input, .responsive-form select, .responsive-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #dcdde1;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.submit-btn {
    background-color: #9c88ff;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.submit-btn:hover{
    background-color: #8c7ae6;
}


@media only screen and (min-width: 600px) {
    body {
        font-size: 1.1rem;
    }
    main {
        padding: 40px;
        width: 90%;
    }
    #gallery .gallery-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (min-width: 768px) {
    nav {
        flex-direction: row;
    }
    .grid-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}