@font-face{
    src: url(fonts/Caprasimo-Regular.ttf);
    font-family: brand;
}
@font-face{
    src: url(fonts/Noto_Sans/NotoSans-VariableFont_wdth\,wght.ttf);
    font-family: straightText;
}
@font-face{
    src: url(fonts/Noto_Sans/static/NotoSans-Bold.ttf);
    font-family: boldText;
}
@font-face{
    src: url(fonts/Sniglet/Sniglet-Regular.ttf);
    font-family: curvyText;
}
@font-face{
    src: url(fonts/Cinzel/static/Cinzel-Black.ttf);
    font-family: boldFancy;
}
@font-face{
    src: url(fonts/Redressed/Redressed-Regular.ttf);
    font-family: welcome;
}
@font-face{
    src: url(fonts/Orbitron/Orbitron-VariableFont_wght.ttf);
    font-family: blockClock;
}
@font-face{
    src: url(fonts/Strait/Strait-Regular.ttf);
    font-family: clock;
}



body{
    margin:0;

    background-color: var(--primary-page-bg);
    color: var(--primary-text-color);
    transition: background-color 0.5s ease;

    --primary-page-bg: rgb(255, 255, 255);
    --primary-text-color: black;
    --stopwatch: hsl(0, 0%, 25%);
    --time: hwb(0 30% 70%);
    --container: #A9AB9D;
    --border-color: rgb(0, 0, 0);
    --hidden: 1;
    --hidden2:0;

    overscroll-behavior: none;
}
body.dark{
    
    --primary-page-bg: black;
    --primary-text-color: white;
    --stopwatch: hsl(0, 0%, 95%);
    --time: hsl(105, 81%, 45%);
    --container: rgba(50, 50, 50, 0.84);
    --border-color: rgb(255, 255, 255);
    --hidden: 0;
    --hidden2:1;
}

/* Logo and Navbar */
#minHeader{
    display:inline-block;
    text-align: center;
    background-color:#d8572a;
    width:100%;
    height:11.75vh;
}
#companyName{
    text-align: center; 
    display:inline-block; 
    font-family: boldFancy;
    color:#CFE8EF;
}
#logo{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: relative;
    top: 18px;
}


.fa-solid.fa-moon{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: absolute;
    right:9px;
    top: 35px;
    z-index: 20;
    opacity:var(--hidden2);
}
#toggle{
    display: none;
}
.fa-solid.fa-sun{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: absolute;
    right:9px;
    top: 35px;
    opacity:var(--hidden);
    animation: smoothGrow 1.5s ease-out;
}
@keyframes smoothGrow{
    50%{
        transform: scale(1.5,1.5) rotate(180deg);
    }
}


.navbar ul{
    list-style: none;
    background-color: #db7c26;
    text-align: center;
    padding: 0;
    margin:0;
    overflow:hidden;
}
.navbar a{
    text-align: center;
    color:#CFE8EF;
    text-decoration: none;
    padding:1em;
    display: block;
    font-family: curvyText;
}
.navbar a:hover{
    background-color: #d8572a;
}
.navbar li{
    display: inline-block;
    align-content: center;
    margin-left: 25px;
    margin-right: 25px;
}


/* Stopwatch */
/*************/
#big{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-page-bg);
    
    overscroll-behavior: none;
    transition: background-color 0.5s ease;
}
#stopwatch{
    font-size: 2em;
    font-family: brand, sans-serif;
    color: var(--stopwatch);
    transition: background-color 0.5s ease;
}
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
    border: 15px solid;
    width: 30em;
    height:30em;
    
    border-radius: 50%;
    transform:translateY(2em);  
    background-color: var(--container);
    color: var(--border-color);
    transition: background-color 0.5s ease;
}
#time{
    font-size: 3.75rem;
    font-family: monospace, sans-serif;
    font-weight: bold;
    
    transform: translateY(250%);

    text-shadow: 2px 2px 2px hsla(0, 0%, 0%, 0.75);
    margin-bottom: 25px;
    color: var(--time);
    transition: background-color 0.5s ease;
}
#controls button{
    transform: translateY(350%);
    font-family: curvyText;
    font-style: italic;
    font-size: 1.75rem;
    font-weight: bold;
    padding: 10px 20px;
    margin: 5px;
    min-width: 2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    transition: background-color 0.5s ease;
}
#startButton{
    background-color: hsl(115, 88%, 38%);
}
#startButton:hover{
    background-color: hsl(115, 96%, 27%);
}
#stopButton{
    background-color: hsla(3, 67%, 46%, 0.9);
}
#stopButton:hover{
    background-color: hsla(349, 98%, 24%, 0.9);
}
#resetButton{
    background-color: #f7b538;
}
#resetButton:hover{
    background-color: goldenrod ;
}



#container {
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background-color: #333;
    border-radius: 10px 10px 0 0;
}

#container::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
}