body {
    background-color:beige;
    margin: 0px;
    font-family: "Roboto Flex", serif;
    height: 100vh;
    width: 100vw;
    font-size: small;
    overflow-x: hidden;
}

.header {
    background: purple;
    text-align: center;
    width: 96vw;
    padding:2vw;
    margin: 0px;
    z-index: 999;
}

.header a {
    font-size: 30px;
    color:beige;
    text-decoration: none;
}

.nav {
    display: none;
}

.menuButton hr {
    width: 25px;
    height: 1.5px;
    border: none;
    background: beige;
    box-shadow: 2px 2px 10px black;
}

.menuList {
    display: none;
    background-color: beige;  
    padding:5%;
    text-align: center;
}

.menuList a, .menuList a:active, .menuList a:visited {
    background-color: none;
    padding: 2%;
    line-height: 250%;
    color: purple;
    text-decoration: none;
    margin-left: 5%;
}

#current {
    color: beige;
    background-color: purple;
    font-size: 90%;
}

.welcome {
    background-color: purple;
    text-align: center;
    width: 100vw;
    padding: 10%;
    padding-left: 0;
    padding-right: 0;
    color: beige;
}

.about {
    width: 79.6vw;
    padding: 10%;
    background-color: beige;
    color: purple;
    text-align: center;
    border: solid 0.1vw purple;
}

.linkButtons {
    margin-top: 10%;
}

.linkButtons a, .aboutButton a {
    padding: 3%;
    border: 1px solid purple;
    margin: 3%;
    text-decoration: none;
    color: purple;
    background-color: beige;
}

.imageCont {
    background-image: url("IMG_9078.JPEG");
    background-repeat: no-repeat;
    padding: 2%;
    background-size: cover;
    background-position: center;
}

.imageText, .pageBlock {
    width: 90vw;
    margin-left: 1.5vw;
    background-color: #80008067;
    text-align: center;
    padding: 1%;
    color: beige;
    border-radius: 25px;
}

.pageBlock {
    margin-left: 4vw;
}

.imageText a {
    text-decoration: none;
    color: beige
}

.imageText p, .pageBlock p {
    padding-left: 5%;
    padding-right: 5%;
}

.aboutButton {
    margin: 3%;
}

.aboutButton a {
    color: purple;
    padding: 2%;
    margin: 3%;
}

.footer {
    background-color: purple;
    text-align: center;
    padding: 2%;
}

.footer a {
    color: beige;
    text-decoration: none;
}

.footerCont {
    width: 80%;
    margin-left: 10%;
    overflow: hidden;
    margin-bottom: 2%;
}

.footerCol {
    width: 45%;
    float: left;
    margin: 2.5%;
    color: beige;
    line-height: 200%;
}

.contrast {
    color: beige;
    border: beige solid 1px;
    width: max-content;
    margin: auto;
    white-space: nowrap;
    padding: 1%;
}

.pageBlock {
    background-color: purple;
    margin-top: 2%;
    margin-bottom: 2%;
}

iframe {
    padding-top: 5%;
    padding-bottom: 5%;
    width: 78vw;
    height: 50vh;
    border: none;
}

#clock {
    position: relative;
    width: 80vw;
    height: 80vw;
    margin: auto;
    background: url(clockface.png) no-repeat center center;
    list-style: none;
}

#sec, #min, #hour {
    position: absolute;
    width: 80vw;
    height: 80vw;
    left: 17.5px;
    top: 0;
    background-repeat: no-repeat;
    background-size: contain;
}

#hour {
    background-image: url(hourhand.png);
    z-index: 3;
}

#min {
    background-image: url(minhand.png);
    z-index: 4;
}

#sec {
    background-image: url(sechand.png);
    z-index: 5;
}

.dateAndTime {
    text-align: center;
    color: purple;
    margin-bottom: 2%;
}

/* Stopwatch button styles */
#stopwatchCont button {
    background-color: purple;
    color: beige;
    border: 2px solid beige;
    border-radius: 8px;
    padding: 10px 24px;
    margin: 0 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.5s
}

#stopwatchCont button:hover {
    background-color: beige;
    color: purple;
    border: 2px solid purple;
}

#time {
    font-size: 500%;
}

#date {
    font-size: 150%;
}

embed {
    width: 98%;
    height: 60vh;
    margin: 1%;
}

@media (min-width:1000px) {
    body {
        font-size: 100%;
    }

    .header {
        text-align: left;
        padding:1vw;
        padding-left: 3.5vw;
        width: 95.5vw;
        display: flex; 
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0px;
        box-shadow: 2px 2px 10px  purple;
    }

    .header a {
        font-size: 100%;
        width: fit-content;
    }

    .header a, .nav a:hover, .footer a, .linkButtons a, .aboutButton a, .contrast, .contrast a {
        transition: 0.5s;
    }

    .header a:hover, .nav a:hover, .footer a:hover, .linkButtons a:hover, .aboutButton a:hover {
        font-size: 105%;
    }

    .nav {
        visibility: visible;
        display: inline;
        width: 60%;
        text-align: right;
        margin-right: 20px;
        line-height: 250%;
    }

    .nav a {
        margin-left:20px;
        background-color: beige;
        border: solid beige 2px;
        padding: 2%;
        color: purple;
        font-weight: bold;
    }

    .nav a:hover {
        text-shadow: none;
        color:beige;
        font-weight: bold;
        background-color: transparent;
    }

    .menuButton, .menuList {
        display: none;
    }

    .menuList {
        width: 100%;
        padding: 1.5%;
        margin: 0;
    }

    .menuList a {
        font-size: 100%;
    }

    .homeCont {
        overflow: hidden;
        border: 1px solid purple;
    }
    
    .welcome h1 {
        padding-top: 10%;
    }

    .welcome, .about {
        padding: 2%;
        width: 46%;
        float:left;
        border: none;
        height: 35vh;
    }

    .linkButtons a {
        margin: 2%;
    }

    .linkButtons a:hover , .aboutButton a:hover {
        background-color: purple;
        color: beige;
        border: solid beige 1px;
    }

    #current:hover, .contrast:hover{
        background-color: beige;
        color: purple;
        font-size: 100%;
    }

    .footerCont {
        width: 30%;
        margin-left: 35%;
    }

    iframe {
        width: 88vw;
        height: 60vh;
        padding: 0;
        border-radius: 25px;
    }

    #clock {
        width: 600px;
        height: 600px;
    }

    #sec, #min, #hour {
        width: 600px;
        height: 600px;
        left: 17.5px;
    }

    embed {
        width: 48%;
        float: left;
    }

    #port {
    padding-bottom: 65vh;
    }
}