/*Universal Styles*/
* {
    font-family: 'Merriweather', serif;
}

h1 {
    text-align: center;
    font-size: 5rem; /*Resize later if required*/
    color: rgb(159, 41, 206);
}

button {
    font-size: 1.5rem;  
}

div {
    display: inline-block;
}

.container {
    /*padding-left: 10px;*/
    margin-bottom: 25px;
    width: 100%;
}

h2 {
    font-size: 2.5rem;
    text-decoration: underline;
    color: rgb(159, 41, 206);
}

p {
    font-size: 1.5rem;
    line-height: 1.5;
}

/*Header section*/
header {
    padding: 1em;
}
#logo {
    width: 10%;
    padding-left: 2em
}

nav {
    margin-bottom: 1em;
    text-align: center; 
}

nav ul {
    padding: 0;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

nav ul li {
    background-color: rgb(196, 93, 236);
    padding: 2.5em;
    margin: 0.75em;
    box-shadow: 1em 1em 1em purple;
    border-radius: 1em;
    list-style-type: none;
}

nav ul li a{
    color: rgb(255, 238, 0);
    text-decoration: none;
    font-size: 2rem;
}

a:hover {
    text-decoration: underline;
}

/*About Section*/
#info {
    width: 74%;
    padding-left: 10px;
}

#image {
    width: 20%;
}

/*Profile Image*/
#image img {
    width: 75%;
    padding-left: 60px;
}

/*Projects Section*/
.project {
    padding: 1em;
}

.project-title h3 {
    display: inline;
    font-size: 1.75rem;
}

details {
    cursor: pointer;
}

details:hover {
    text-decoration: underline;
}

/*Skills Images*/
#html img {
    width: 30%;
}

#css img {
    width: 30%;
}

#javascript img {
    width: 30%;
}

#github img {
    width: 30%
}

/*Contact Page Styles*/
.contact {
    margin-left: 1em;
}

table {
    font-size: 1.5rem;
}

@media screen and (min-width: 1024px) { /*Desktop*/
    header {
        background-color: rgb(196, 93, 236);
    }
    nav {
        width: 70%;
        float: right;
        margin: 40px 25px;
    }

    nav ul li{
        padding: 0.65em;
        display: inline-block;
        border-radius: 1em;
        min-width: 10%;
    }

    #html, #css, #javascript, #github {
        width: 15%;
    }

    #css {
        margin-left: -9em;
    }

    #javascript {
        margin-left: -9em;
    }

    #github {
        margin-left: -9em;
    }
}

@media screen and (min-width:768px) and (max-width: 1023px) { /*Tablet*/
    header {
        background-color: white;
    }
    
    .container {
        text-align: center;
    }

    p, table {
        font-size: 1.5rem;
    }
    
    #logo {
        margin-left: 40%;
    }

    nav {
        width: 100%;
    }

    nav ul li {
        padding: 0.65em;
        display: inline-block;
        border-radius: 1em;
        min-width: 10%;
        box-shadow: 1em 1em 1em purple;
    }

    #image {
        display: none;
    }

    /*Skills section*/
    #html, #css, #javascript, #github {
        width: 15%;
    }
    #css {
        margin-left: 0;
    }
    #javascript {
        margin-left: 0;
    }
    #github {
        margin-left: 0;
    }
}

@media screen and (max-width: 767px) { /*Mobile*/
    * {
        text-align: center;
    }

    #logo {
        width: 20%;
        margin-left: -10%
    }

    nav ul li{
        padding: 0;
        box-shadow: 0.5em 0.5em 0.5em purple;
    }

    #image {
        display: none;
    }
}