* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;


}

body {
    font-family: Arial, sans-serif;
    background-color: #1c1c1c;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}


.dashboard {
    flex: 1;
    display: flex;
}

.sidebar {
    width: 80px;
    background-color: #333;
    height: 100vh;
    display: flex;
    justify-content: center;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    position: relative;
    text-align: center;
    padding: 20px 0;
}

.sidebar-icon {
    width: 40px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.tooltip { /*  Used to control sidebar functions */
    visibility: hidden;
    background-color: #FF8C00;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 1001; /*  keeps hover above other elements */
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 10px;
    font-size: 14px;
}

.sidebar li:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.sidebar-icon:hover {
    transform: scale(1.2);
    filter: grayscale(0);
    opacity: 1;
    cursor: pointer; /*    initiates hover effect with the cursor  */
}

.sidebar-icon:focus {
    outline: 2px solid #E74C3C;
}

.main-content {
    flex-grow: 1;
    background-color: #444;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

header { /*  to keep header ontop */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #D35400;
    color: white;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    position: sticky;
}

.website-title h1 {
    font-size: 24px;
    margin: 0;
}

.top-right-options {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.file-claim-button, /*  stacked to apply to all  */
.customize-button,
.back-button {
    background-color: #D35400;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

}

.file-claim-button:hover,
.customize-button:hover,
.back-button:hover {
    background-color: #A84300;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.file-claim-button:focus,
.customize-button:focus,
.back-button:focus {
    outline: 2px solid black;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}


.dashboard-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-grow: 1;
}




.user-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
}

.user-image {
    text-align: center;
}

.user-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #D35400;
    transition: transform 0.3s ease;
}

.user-image img:hover {
    transform: scale(1.1);
}

.upload-options {
    margin-top: 10px;
}

.upload-options button {
    background-color: #D35400;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.upload-options button:hover {
    background-color: #A84300;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.dashboard {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-welcome {
    margin-top: 20px;
    text-align: center;
}

.dashboard-welcome h2 {
    color: white;
    margin-bottom: 20px;
}

.grid-container { /*  auto control of content in the container */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    max-width: 800px;
}

.grid-container div { /*  to center content in the grid */
    text-align: center;
}

a.button {
    background-color: #D35400;
    color: white;
    border: none;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 16px;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

a.button:hover {
    background-color: #A84300;
}

a.button:focus {
    outline: 2px solid black;
}

footer { /*  added footer */
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

.footer p {
    margin: 0;
    color: #D35400;
    font-weight: bold;
}

.footer p a {
    color: white;
    text-decoration: none;
}

.footer p a:hover {
    text-decoration: underline;
}

@media (max-width : 768px) { /*  to make mobile friendly "fingers crossed" */
    .sidebar {
        width: 60px;
    }

    .sidebar-icon {
        width: 30px;
    }

    .main-content {
        padding: 10px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width : 480px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
    }

    .sidebar ul {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .sidebar li {
        padding: 10px;
    }

    .sidebar-icon {
        width: 25px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    header {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .website-title h1 {
        font-size: 20px;
    }

    .top-right-options {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    button {
        padding: 8px;
        font-size: 12px;
    }
}


.back-button { /*  added back button and needed to style  */
    background-color: #D35400;
    border: black;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}


.image-container { /*  to control the images on the page */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

.image-class {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}



.giscus-widget {
    display: flex;
    margin: auto;
    max-width: 640px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}


.comments-container {
    max-height: 640px;
    overflow-y: scroll;
}





.about {
    padding: 50px 0;
    text-align: center;
}

.about h3 {
    margin-bottom: 5px;
    text-align: left;



}



.about p {
    margin: 0 auto;

    text-align: left;
    max-width: 550px;

}


.container {
    width: 45%;
    margin: 0 auto;
    text-align: center;
}

.container div {
    text-align: center;
}
/* Grid Styling */
.grid-container {
                display: grid;
                gap: 10px;
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            /* Button sizing */
            .small .button {
                font-size: 12px;
                padding: 5px 10px;
            }
            .medium .button {
                font-size: 16px;
                padding: 10px 20px;
            }
            .large .button {
                font-size: 20px;
                padding: 15px 30px;
            }
            .button {
                display: inline-block;
                background-color: #007bff;
                color: white;
                text-align: center;
                text-decoration: none;
                padding: 10px;
                border-radius: 5px;
                transition: background-color 0.3s;
            }
            .button:hover {
                background-color: #0056b3;
            }
            .form-container {
                margin: 20px;
            }
            .form-group {
                margin-bottom: 15px;
            }
            label {
                margin-right: 10px;
            }
            .size-selector {
                margin-bottom: 20px;
            }
