/* See on igale alamlehele kehtiv stiil */

h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif;
}

p {
    font-family: serif;
}

/* Linkide stiil */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Sarnane nagu GitHubi koodi stiliseerimine */
code {
    font-family: monospace;
    background-color: #f6f8fa; /* Helehall taust */
    border: 1px solid #d1d5da; /* Natuke tumedam raam */
    border-radius: 3px; /* Teeme kasti ümaraks */
    padding: 2px 4px; /* Vahe teksti ja raami vahel */
}


/*         Navigeerimisriba, mille allikas on GeeksForGeeks       */
/* https://www.geeksforgeeks.org/navigation-bar-using-javascript/ */


/* Navigeerimisriba stiil */
.navtext {
    font-family: sans-serif;
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    font-weight: bold;
}

/* navbar styling */
.navbar {
    display: flex;
    height: 7rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-bottom: 2px solid #4499cc;
}

/* logo style */
.logo img {
    width: 4rem;
    height: 4rem;
    margin-left:1rem;
}

.hamburger-menu {
    padding-right: 1.5rem;
    cursor: pointer;
}

.hamburger-menu .line {
    display: block;
    width:2.5rem;
    height: 2px;
    margin-bottom: 10px;
    background-color: black;
    cursor: pointer;
}

.nav-menu {
    position: fixed;
    width: 94%;
    top: 6rem;
    left: 18px;
    background-color: grey;
    font-weight: 600;
    border-radius: 25px;
}

.nav-menu a {
    display: block;
    text-align: center;
    padding: 5px 0;
}

.nav-menu a:hover {
    background-color: grey;
}

.hide {
    display: none;
}

/* kui ekraan on piisavalt väike laiuselt, teeb hamburger menu (kolm kriipsu) */
@media screen and (min-width:1250px) {
    .navbar {
	justify-content: space-around;
    }
    .nav-menu {
	display: block;
	position: static;
	width: auto;
	margin-right:20px;
	background: none;
    }
    .nav-menu a {
	display: inline-block;
	padding: 15px 20px;
    }
    .nav-menu a:hover {
	background-color: #4499cc;
	border-radius: 5px;
    }
    .hamburger-menu {
	display: none;
    }
}

/*                         Dark Mode lüliti, mille allikas on GeeksForGeeks                         */
/* https://www.geeksforgeeks.org/how-to-create-dark-light-mode-for-website-using-javascript-jquery/ */

/*                 Nupu enda allikas on https://uiverse.io/ErzenXz/slimy-chicken-63                 */

.dark .navtext {
    color: #e6e6e6;
}

button {
    width: fit-content;
    min-width: 100px;
    height: 45px;
    padding: 8px;
    border-radius: 5px;
    border: 2.5px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease-in-out 0ms;
    user-select: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin: 0 auto;
    display: block;
}
  
button:hover {
    background-color: #F2F2F2;
    box-shadow: 0px 0px 20px -18px;
}
  
button:active {
    transform: scale(0.95);
}

.dark button {
    width: fit-content;
    min-width: 100px;
    height: 45px;
    padding: 8px;
    border-radius: 5px;
    border: 2.5px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    cursor: pointer;
    background-color: #222;
    transition: all 0.2s ease-in-out 0ms;
    user-select: none;
    font-family: 'Poppins', sans-serif;
    color: #e6e6e6;
    font-weight: bold;
}
  
.dark button:hover {
    background-color: #3A3B3C;
    box-shadow: 0px 0px 20px -18px;
}
  
.dark button:active {
    transform: scale(0.95);
}

.dark code {
    color: black;
}

.dark .hamburger-menu .line {
    background-color: white;
}
