/* Updated styles.css with profile picture preview styling and tab functionality */
body {
    font-family: 'Arial', sans-serif;
    background: #f5f5f5;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    max-width: 900px;
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.comment-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.upload-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e1306c;
    color: #f5f5f5;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    text-align: center;
}

.upload-label:hover {
    background: #c1275d;
}

.pfp-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

input, textarea, button {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    resize: none;
    height: 80px;
}

button {
    background:  #e1306c;
    color: #f5f5f5;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #c1275d, #d01717);
}

span{
    color:#e1306c
}

.preview {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 350px;
    margin-top: 20px;
}

.phone-frame {
    max-width: 100%;
    width: 300px;
}

canvas {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -18%);
    width: 80%;
    border-radius: 10px;
}

.button{
    width: 108%;
}

.about-section {
    max-width: 800px;
    margin-top: 40px;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    margin-top: -20px
}

.about-section p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Tab styles */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    width: 900px;
    max-width: 100%;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    flex: 1;
    color: #333;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #e1306c;
    color: white;
}

.tabcontent {
    display: none;
    width: 100%;
}

.tabcontent.active {
    display: block;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .preview {
        order: 2;
    }
    .comment-box {
        order: 1;
        max-width: 100%;
    }
    .upload-section {
        flex-direction: row; /* Keep items side by side */
        justify-content: center; /* Center items horizontally */
        align-items: center; /* Align items vertically */
        gap: 10px; /* Add space between button and preview */
    }
    .tab {
        width: 100%;
    }
}