* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

:root {
    --border-color: #3b5998;
    --footer-color: #3b5998;
    --header-textcolor: white;
    --header-backcolor: #3b5998;
    --text-color: #3b5998;
    --background-color: white;
    --margin-color: #7794d4;
    --hover-color: #7794d4;
    --button-backcolor: #3b5998;
    --button-textcolor: white;
    --gray-color: #afbdd4;
    --navbar-color: white;
    --navItem-color: #3b5998;
    --shadow-color: black;
    --gradient-leftcolor: #7794d4;
    --gradient-rightcolor: #3b5998;
    --outstanding-color: orangered;
}

/* Global settings */

span {
    color: inherit;
}

i {
    margin: 0px;
    padding: 0px;
}

.navItem i, .navItem span {
    cursor: pointer;
    display: block;
}

.navItem span {
    font-size: small;
}

body {
    font-family: "Baloo Chettan 2", Arial, Helvetica, sans-serif;
    background-image: linear-gradient(-90deg, var(--gradient-rightcolor), var(--gradient-leftcolor));
    position: relative;
}

main {
    position: relative;
    width: 100%;
    /* height : calc(100vh - 70px); */
    /* margin-left: 90px; */
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
    border-radius: 7px;
    box-shadow: black 5px 5px 10px;
    z-index: 2;
    /* float: right; */
    /* margin-bottom: 20px; */
    height: 100vh;
}

#main-wrapper {
    position: relative;
    display: block;
    /* flex-direction: row; */
    border-radius: 10px;
    /* margin-top: 20px; */
    /* max-height: none; */
    width: 100vw;
    max-width: 600px;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    margin-top: 0px;
    /* overflow: hidden; */
    min-height: 100vh;
}

iframe {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    border: none;
    border-radius: 7px;
    box-shadow: var(--shadow-color) 5px 5px 5px;
    display: block;
    padding: 10px;
    padding-right: 0px;
    margin-left: 0px;
    padding-top: 50px;
}

nav {
    width: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 7px;
    box-shadow: black 5px 5px 10px;
    /* float: right; */
    display: flex;
    position: sticky;
    justify-content: space-evenly;
    top: 0px;
    z-index: 3;
    height: 70px;
}

.comeIn {
    display: block;
    opacity: 1;
    animation-name: none;
    z-index: 1;
}

.comeOut {
    display: block;
    opacity: 1;
    animation-name: none;
    z-index: 1;
}

.navItem {
    padding-top: 10px;
    width: 50px;
    height: 70px;
    /* border-bottom : solid var(--gray-color) 1px; */
    text-align: center;
}

main img {
    width: 100%;
    /* height: 300px; */
}

a {
    text-decoration: none;
    color: var(--text-color);
}

#resume, #contactframe {
    font-size: smaller;
}

#footermenu {
    /* position: absolute; */
    display: flex;
    text-align: center;
    bottom: 0px;
    width: 100%;
    height: 60px;
}

#footermenu * {
    width: 50vh;
    padding-bottom: 20px;
    padding-top: 20px;
    background-color: var(--background-color);
    margin: 1px;
    cursor: pointer;
}

#footermenu *:hover {
    color: var(--hover-color);
}

#footermenu i {
    padding: 0px;
    width: 0px;
    margin: 0px 0px 0px 10px;
}

.navItem:last-of-type {
    border-bottom: none;
}

.navItem:hover {
    color: var(--hover-color);
}

/* Background animation */

.boxes {
    overflow: hidden;
    bottom: 0px;
}

.box {
    /* display: inline; */
    position: fixed;
    background-color: white;
    opacity: .2;
    animation: animate infinite linear;
    bottom: -300px;
    z-index: -1;
}

.box:nth-child(1) {
    width: 400px;
    height: 400px;
    left: 0vw;
    animation-delay: 0s;
    animation-duration: 40s;
}

.box:nth-child(2) {
    width: 250px;
    height: 250px;
    left: 10vw;
    animation-delay: 4s;
    animation-duration: 40s;
}

.box:nth-child(3) {
    width: 100px;
    height: 110px;
    left: 20vw;
    animation-delay: 7;
    animation-duration: 80s;
}

.box:nth-child(4) {
    width: 200px;
    height: 200;
    left: 30vm;
    animation-delay: 1s;
    animation-duration: 20s;
}

.box:nth-child(5) {
    width: 250px;
    height: 250px;
    left: 50vw;
    animation-delay: 5s;
    animation-duration: 20s;
}

.box:nth-child(6) {
    width: 150px;
    height: 150px;
    left: 60vw;
    animation-delay: 8s;
    animation-duration: 40s;
}

.box:nth-child(7) {
    width: 100px;
    height: 100px;
    left: 70vw;
    animation-delay: 3s;
    animation-duration: 30s;
    bottom: -400px;
}

.box:nth-child(8) {
    width: 300px;
    height: 300px;
    left: 80vw;
    animation-delay: 6s;
    animation-duration: 20s;
}

.box:nth-child(9) {
    width: 250px;
    height: 250px;
    left: 90vw;
    animation-delay: 9s;
    animation-duration: 20s;
}

.box:nth-child(10) {
    width: 250px;
    height: 250px;
    left: 100vw;
    animation-delay: 3s;
    animation-duration: 20s;
}

@keyframes animate {
    from {
        bottom: -400px;
        transform: rotate(0deg);
    }
    to {
        bottom: 100vh;
        transform: rotate(360deg);
    }
}

/* Public classes */

.shaded {
    text-shadow: black 1px 1px 3px;
}

.spaced {
    letter-spacing: .5rem;
}

.centered {
    text-align: center;
}

.padded {
    padding: 10px;
}

.bordered {
    border: solid var(--border-color) 1px;
}

.active {
    color: var(--outstanding-color);
}

.active.navItem:hover {
    color: var(--outstanding-color);
    font-weight: bold;
}

.outstanding {
    color: var(--outstanding-color);
}

.outstanding.navItem:hover {
    color: var(--outstanding-color);
    font-weight: bold;
}

@media screen and (min-width: 1200px) {
    body {
        font-family: "Baloo Chettan 2", Arial, Helvetica, sans-serif;
        background-image: linear-gradient(-90deg, var(--gradient-rightcolor), var(--gradient-leftcolor));
        height: 100vh;
    }
    main {
        position: relative;
        width: 42%;
        margin-top: -10px;
        margin-left: 10px;
        background-color: var(--background-color);
        color: var(--text-color);
        overflow: hidden;
        height: 660px;
        border-radius: 7px;
        box-shadow: black 5px 5px 10px;
        z-index: 2;
        max-height: 100vh;
    }
    .page-title {
        margin-top: 0px;
        background-color: red;
    }
    #main-wrapper {
        position: absolute;
        display: flex;
        border-radius: 10px;
        margin-top: 20px;
        max-height: 680px;
        width: 1200px;
        top: 0;
        bottom: 100px;
        right: 0;
        left: 0;
        max-width: 1200px;
    }
    main img {
        width: 100%;
    }
    iframe {
        position: absolute;
        width: 50%;
        margin-top: 0px;
        height: 640px;
        background-color: var(--background-color);
        border: none;
        border-radius: 7px;
        box-shadow: var(--shadow-color) 5px 5px 5px;
        display: none;
        padding: 10px;
        padding-right: 0px;
        margin-left: -10px;
        max-height: 98vh;
        padding-top: 0px;
    }
    /* Navigation settings */
    nav {
        display: block;
        position: relative;
        padding: 5px;
        left: 0px;
        top: 20px;
        background-color: var(--navbar-color);
        width: 75px;
        border-radius: 7px;
        font-size: .8rem;
        color: var(--navItem-color);
        border: var(--border-color) 1px solid;
        text-align: center;
        height: 370px;
        box-shadow: var(--shadow-color) 5px 5px 5px;
        z-index: 2;
        float: none;
    }
    .navItem {
        padding-top: 20px;
        display: inline-block;
    }
    .comeIn {
        display: block;
        animation-name: comeIn;
        animation-duration: 1s;
        z-index: 1;
    }
    @keyframes comeIn {
        from {
            transform: translateX(-500px);
            opacity: .1;
        }
        to {
            transform: translateX(0px);
            opacity: 1;
        }
    }
    .comeOut {
        display: block;
        opacity: 0;
        animation-name: comeOut;
        animation-duration: 1s;
        z-index: 0;
    }
    #footermenu {
        background-image: radial-gradient(circle at top, var(--gradient-leftcolor), var(--background-color));
        position: absolute;
    }
    @keyframes comeOut {
        from {
            transform: translateX(0px);
            opacity: 1;
        }
        to {
            transform: translateX(-500px);
            opacity: .1;
        }
    }
}