/* Variables */
:root {
    --colorDarkest: #000;
    --colorDarker: #2b2b4a;
    --colorDark: #55556e;
    --colorMedium: #808092;
    --colorLight: #d5d5db;
    --colorLighter: #f7f5f9;
    --colorLightest: #fff;

    --colorPrimary: #BF92B7;
    --colorDanger: #dc2626;

    --rounded: 3px;
    --roundedFull: 999px;
}

/* Base Styles */
body {
    background-color: var(--colorLightest);
    color: var(--colorDarker);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.container {
    padding: 1rem 0;
    margin: 10px auto 0;
    max-width: 1024px;
    width: 90vw;
}

/* Typography */
h1,
h2,
h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p:not(:last-of-type) {
    margin-bottom: 1rem;
}

/* Header */
.navBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #3333;
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.8s;
    padding-left: 4rem;
    padding-right: 4rem;
}

.navBar.hide {
    top: -100px;
}

.menu {
    display: flex;
    align-items: center;
}

.menuHideMobile {
    display: none;
}

.menuItem {
    display: flex;
    font-size: 1.125rem;
    margin-right: 1rem;
}

.menuItemLarge {
    font-size: 1.25rem;
}

/* Links */
.link {
    color: var(--colorPrimary);
    display: inline-block;
    text-decoration: none;
}

.linkNoColor {
    color: inherit;
}

.link:not(.linkNoDecor):hover::after,
.link:not(.linkNoDecor):focus::after {
    border-bottom: 2px solid var(--colorPrimary);
    content: '';
    display: block;
}

.linkNoColor:hover::after,
.linkNoColor:focus::after {
    border-color: var(--colorDarker);
}

/* Images */
.image {
    display: inline-block;
}

.imageSmall {
    width: 50px;
}

.imageRounded {
    border-radius: var(--roundedFull);
}

/*Drop down menu*/
.dropbtn {
    background-color: #3333;
    color: #55556e;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropbtn:hover,
.dropbtn:focus {
    background-color: var(--colorLighter);

}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

.dropdown {
    display: none;
}


/* Main Content */
main {
    flex-grow: 1;
}

section {
    margin-bottom: 10px;
    padding: 1.5rem 0;
}

section ul li,
#skills ul li,
#usersMessage ul li {
    background-color: #f9f9f9;
    padding: 10px;
}

.skill {
    align-items: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* On-hover effect for skills icons */
.skill-icon {
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.2);
}

/* Form Styles */
.message-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0;
}

.form-group {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}

.form-group label {
    flex: 1;
    font-size: 14px;
    color: #555;
    padding-right: 10px;
}

.form-group input,
.form-group textarea {
    flex: 2;
    font-size: 16px;
    padding: 5px;
    border: 1px solid #ccc;
}

.message-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #555;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Users Messages */
.usersMessage ul li {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
}

.usersMessage ul li button {
    padding: 5px 10px;
    background-color: #4f79ef;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--colorLighter);
    /*font-size: 1.125rem;*/
    padding: 1rem 4rem;
    font-size: small;
}

/* Media Queries */
@media screen and (min-width: 768px) {
    .menuHideMobile {
        display: flex;
    }

    .imageContainer {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
    }
}

@media screen and (max-width: 767px) {
    .dropdown {
        display: block;
    }

    .navBar {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

#repos ul.languages {
    list-style-type: none;
    padding: 0;
}

#repos ul.languages li {
    display: inline-block;
    margin-right: 10px;
    /* font-size: 1.2em; */
}

#repos ul.languages li i {
    margin-right: 5px;
}