/**
 * This file was created by Mathieu Stenzel (student number: 4367489)
 */

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
    border-radius: 25px;
}
  
nav ul li {
    float: left;
}
  
nav ul li a {
    display: block;
    color: white;
    font-family: Calibri;
    font-size: medium;
    text-align: center;
    padding: 10px 16px;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #111;
}

h1 {
    font-family:  Calibri;
    font-size: xx-large;
    margin-left: 2%;
}

h2 {
    font-family:  Calibri;
    font-size: small;
    text-align: right;
    position: absolute;
    top: 1%;
    right: 1%;
}

p {
    font-family:  Calibri;
    font-size: medium;
    margin-left: 1%;
    margin-right: 1%;
    hyphens: auto; 
	text-align: justify
}

.instructions {
    margin-top: 1%;
    columns: 400px auto;
    margin-right: 40%;
}

form {
    margin-top: 1em;
}

label, input, button {
    font-family:  Calibri;
    font-size: medium;
    margin-left: 1%;    
}

.border-index-animation {
    width: 70vh;
    height: 70vh;
    border: 5px solid black;
    border-radius: 5.5vh 0 5.5vh 0;
    margin-top: 5vh;
    margin-left: auto;
    margin-right: auto;
}

.index-animation {
    width: 10vh;
    height: 10vh;
    border-radius: 50%;
    position: relative;
    animation: ball 12s ease-in-out infinite;
}

@keyframes ball {
    0%   {background-color:red; left: 0px; top: 0px;}
    25%  {background-color:yellow; left: calc(70vh - 10vh); top: 0px; border-radius: 0%;}
    50%  {background-color:green; left: calc(70vh - 10vh); top: calc(70vh - 10vh); border-radius: 50%;}
    75%  {background-color:blue; left: 0px; top: calc(70vh - 10vh); border-radius: 0%;}
    100% {background-color:red; left: 0px; top: 0px;}
}

@media screen and (max-width: 900px) { 
    nav ul {
        border-radius: 15px;
    }

    nav ul li {
        float: none;
        border-bottom: 1px solid white;
    }
    nav ul li a {
        text-align: center;
    }

    .instructions {
        margin-right: 1%;
    }

    .border-index-animation {
        width: 60vw;
        height: 60vw;
        border-radius: 6vw 0 6vw 0;
        margin-top: 10vh;
    }
    
    .index-animation {
        width: 10vw;
        height: 10vw;
    }
    
    @keyframes ball {
        0%   {background-color:red; left: 0px; top: 0px;}
        25%  {background-color:yellow; left: calc(60vw - 10vw); top: 0px; border-radius: 0%;}
        50%  {background-color:green; left: calc(60vw - 10vw); top: calc(60vw - 10vw); border-radius: 50%;}
        75%  {background-color:blue; left: 0px; top: calc(60vw - 10vw); border-radius: 0%;}
        100% {background-color:red; left: 0px; top: 0px;}
    }
}