body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

header .logo {
    height: 127px;
    max-width: 100%;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #555;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav {
        margin-top: 10px;
    }
}


main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

footer p a {
    text-decoration: none;
    color: #555;
}

footer p a:hover {
    text-decoration: underline;
}

.upload-section {
    width: 100%;
    max-width: 600px;
}

h1 {
    font-size: 28px;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-input-label {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.file-input-label:hover {
    background-color: #e6e6e6;
    color: #333;
}

.file-input-label input {
    display: none;
}

#fileName {
    font-size: 16px;
    color: #555;
}

button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #e6e6e6;
    color: #333;
}

button:active {
    transform: scale(0.98);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #555;
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    accent-color: #555;
}

.checkbox-container label {
    cursor: pointer;
}

.image-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.image-feed a {
    display: block;
    width: 80%;
    max-width: 500px;
    text-decoration: none;
}

.image-feed img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .image-feed img {
        max-width: 80%;
    }

    .form-row {
        flex-direction: column;
    }
}

.imagepreview {
    display: block;
    margin: 20px auto;
    max-width: 80%;
    height: auto; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 
                0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 8px; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.imagepreview:hover {
    transform: scale(1.02); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 
                0 3px 6px rgba(0, 0, 0, 0.1);
}

.smallpreview {
    display: block;
    margin: 20px auto;
    max-width: 30%;
    height: auto; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 
                0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 8px; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.smallpreview:hover {
    transform: scale(1.02); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 
                0 3px 6px rgba(0, 0, 0, 0.1);
}


.tos {
    text-align: left;
    width: 80vw;
    padding-left: 10vw;
    padding-right: 10vw;
}

.tos h1{
    text-align: center;
}

.tos a {
    color: #555;
}


.pagination {
    width: 80vw;
    padding-left: 10vw;
    padding-right: 10vw;
}

.pagination a {
    color: #555;
}

.piclinks {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

.piclinks input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.piclinks input[type="text"]:focus {
    border-color: #555;
    box-shadow: 0 0 8px rgba(85, 85, 85, 0.4);
    outline: none;
}

.piclinks label {
    display: block;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    text-align: left;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .piclinks {
        gap: 15px;
        padding: 15px;
    }

    .piclinks input[type="text"] {
        margin-bottom: 10px;
    }

    .piclinks label {
        margin-top: 10px;
        text-align: left;
    }
}
