* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-size: 100%;
    font: inherit;
    font-family: 'fragment-mono';
    vertical-align: baseline;
    background-color: #222;
    color: #e6e6e6;
}

.change-mode {
    cursor: pointer;
    width: 20px;
    text-align: center;
    padding: 0px;
    margin-left: 0px;
}

.light {
    background-color: #e6e6e6;
    color: #222;
}

.light .selected {
    background-color: #222;
    color: #e6e6e6;
}

.selected {
    background-color: #e6e6e6;
    color: #222;
}

@font-face {
    font-family: 'fragment-mono';
    src: url('../fonts/FragmentMono-Regular.ttf');
}

li a button {
    font-weight: 500;
    font-size: 16px;
}

.dropdown-content {
    display: none;
    overflow: hidden; 
    overflow-y: scroll;
}

.dropdown-content a {
    display: flex;
}

.dropdown:hover .dropdown-content {
    display: block;
    position: fixed;
}

.timezone {
    height: 200px; 
    width: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8%;
    font-size: 8px;
}

.logo {
    text-decoration: none;
    cursor: pointer;
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav__links li {
    display: inline-block;
    padding: 0px 8px;
}

.nav__links li a {
    transition: 0 0.3s ease 0s;
    text-decoration: none;
    cursor: pointer;
}

.nav__links a:hover {
    color: #0088a9;
}

body {
    font-size: 72px;
    line-height: 1.5;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Centering container with flexbox */
.clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 160px);
    text-align: center;
}

/* Styling for clock and timezone display */
.clock-time {
    font-size: 4rem;
    margin: 10px;
    font-weight: bold;
}

.clock-timezone {
    font-size: 2rem;
    margin: 5px;
    font-style: italic;
}

/* Footer Styling */
.footer {
    text-align: center;
    position: relative;
    padding: 14px 8%;
    width: 100%;
    font-size: 8px;
}

/* Responsive Font Sizes for Clock Time */
@media screen and (min-width: 1200px) {
    .clock-time {
        font-size: 6.5rem;
    }

    .clock-timezone {
        font-size: 2.5rem;
    }

    header {
        padding: 14px 8%;
        font-size: 16px;
    }

    body {
        font-size: 86px;
        line-height: 1.5;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
    .clock-time {
        font-size: 6rem;
    }

    .clock-timezone {
        font-size: 2.25rem;
    }

    header {
        padding: 14px 8%;
        font-size: 14px;
    }

    body {
        font-size: 72px;
        line-height: 1.5;
    }

}

@media screen and (min-width: 900px) and (max-width: 1023px) {
    .clock-time {
        font-size: 5.5rem;
    }

    .clock-timezone {
        font-size: 2rem;
    }

    header {
        padding: 14px 8%;
        font-size: 14px;
    }

    body {
        font-size: 64px;
        line-height: 1.5;
    }
}

@media screen and (min-width: 768px) and (max-width: 899px) {
    .clock-time {
        font-size: 5rem;
    }

    .clock-timezone {
        font-size: 1.75rem;
    }

    header {
        padding: 14px 8%;
        font-size: 14px;
    }

    body {
        font-size: 56px;
        line-height: 1.5;
    }
}

@media screen and (min-width: 600px) and (max-width: 767px) {
    .clock-time {
        font-size: 4.5rem;
    }

    .clock-timezone {
        font-size: 1.5rem;
    }

    header {
        padding: 14px 8%;
        font-size: 12px;
    }

    body {
        font-size: 44px;
        line-height: 1.5;
    }
}

@media screen and (min-width: 480px) and (max-width: 599px) {
    .clock-time {
        font-size: 4.0rem;
    }

    .clock-timezone {
        font-size: 1.25rem;
    }

    header {
        padding: 14px 8%;
        font-size: 12px;
    }

    body {
        font-size: 36px;
        line-height: 1.5;
    }
}

@media screen and (min-width: 320px) and (max-width: 479px) {
    .clock-time {
        font-size: 3.0rem;
    }

    .clock-timezone {
        font-size: 1rem;
    }

    header {
        padding: 14px 8%;
        font-size: 8px;
    }

    body {
        font-size: 32px;
        line-height: 1.5;
    }
}

@media screen and (max-width: 319px) {
    .clock-time {
        font-size: 1.8rem;
    }

    .clock-timezone {
        font-size: 0.9rem;
    }

    header {
        padding: 14px 8%;
        font-size: 8px;
    }

    body {
        font-size: 28px;
        line-height: 1.5;
    }
}


/* Typography */
h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}
