@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: black;
    color: whitesmoke;
    font-family: 'Noto Sans', sans-serif;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

form {
    flex: 1;
    max-width: 400px;
}

.formcontainer {
    background-color: rgb(46, 46, 46);
    padding: 20px;
}

.guidelines {
    flex: 1;
    max-width: 900px;
    height: 80vh;
    overflow-x: hidden; /* prevent sideways scroll */
}

.guidelines iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    overflow-x: hidden;
}

.userPhotos, .uploadButton {
    background-color: rgb(46, 46, 46);
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    cursor:pointer;
}

.uploadPhoto {
    width: max-content;
    display: flex;
}

.uploadPhoto a {
    text-decoration: none;
    color: whitesmoke;
}

.userPhotos {
    width: 40%;
}

.userPhotos iframe {
    height: 100%;
    width: 100%;
    border: none;
    display: block;
    overflow-x: hidden;
    border-radius: 10px;
}

.user {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px;
}

.user img {
    flex-shrink: 0;
    border-radius: 10px;
}

.user p {
    margin: 0;
}

/* Mobile layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
    }

    .guidelines {
        max-width: 100%;
        height: max-content;
        order: 2;
    }
    .guidelines iframe {
        display: none !important;
    }

    form {
        max-width: 100%;
        order: 1;
    }

    .userPhotos {
        width: 100%;
    }
}

.options {
    background-color: rgb(46, 46, 46);
    width: max-content;
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
}

.options a {
    text-decoration: underline;
    color: whitesmoke;
}

h1 {
    margin: 10px;
}

.content-container {
            display: flex;
            gap: 20px;
            margin-top: 20px;
        }

.charts h2 {
    padding: 20px;
}
        
.userPhotos {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink */
}

.userPhotos iframe {
    width: 100%;
    height: 900px;
    border: none;
}

.charts {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two charts per row */
    gap: 30px;
    background-color: rgb(46, 46, 46);
    margin: 10px;
    border-radius: 10px;
}

.chart-container {
    width: 100%;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: #62abef;
}

a:visited {
    color: #62abef;
}

.options a, .uploadPhoto a {
    color: inherit;
    text-decoration: none;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }
    
    .charts {
        grid-template-columns: 1fr; /* Stack charts vertically on small screens */
    }
}