@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/*PERUSJUTUT*/
:root {
	--halm-font-family: 'Noto Sans';
	--halm-font-weight-h: 900;
	--halm-font-weight-p: normal;
}

body, html {
    background-color: rgb(247, 247, 247);
    font-family: var(--halm-font-family);
	font-weight: var(--halm-font-weight-p);
    margin: 0;
    padding: 0;
    color: rgb(0, 0, 0);
	max-width: 100dvw;
	overflow-x: hidden;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #c9c9c9;
}
  
::-webkit-scrollbar-thumb {
    background-color: #414141a1;
    border-radius: 10px;
}

/* Yleiset */

#maincontent {
	padding: 40px;
	min-height: 500px;
    max-width: 1200px;
    width: 100%;
    margin-left: calc((100% - 1200px) / 2);
}

@media only screen and (max-width: 1200px) {
    #maincontent {
        margin-left: 0;
    }
}

#top {
	position: relative;
	color: white;
}

#top img {
	width: 100dvw;
	height: 500px;
	object-fit: cover;
}

#top #title {
	position: absolute;
	top: 15px;
	left: 15px;
	font-weight: bold;
}

#top #imgtexts {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    justify-content: space-around;
	padding: 25px;
}

#bar {
	width: 100%;
	height: 65px;
	background-color: none;
	position: absolute;
	top: 0;
}

html:not([data-scroll='0']) #bar {
	background-color: rgba(53, 53, 53, 0.815);
	position: fixed;
	transition: background-color 0.5s;
	z-index: 1;
}

/* Sivupalkkimenu */
#menulink {
	position: absolute;
	top: 5px;
	right: 15px;
	font-size: 40px;
	z-index: 1000;
	user-select: none;
	cursor: pointer;
    font-weight: 200;
}

html:not([data-scroll='0']) #menulink {
	position: fixed;
	z-index: 1000;
}

#menu img {
	filter: brightness(1);
}

#menu {
    height: 100dvh;
    width: 275px;
    position: fixed;
    top: 0;
    right: -300px;
    padding-top: 50px;
    user-select: none;
    z-index: 105;
    color: rgb(255, 255, 255);
    overflow-x: auto;
    background-size: cover;
    background-position: center center;
}

#menu::-webkit-scrollbar-track {
    background: #5f565600;
}

#menu ul {
    padding-left: 20px;
    padding-right: 20px;
	list-style-type: none;
}

.menu {
	margin-top: 50px;
}

#menu li {
	margin-top: 15px;
}

.menu-item-has-children,
.page_item_has_children {
    list-style: none;
    line-height: 15px;
    margin-top: 10px;
}

.submenu-toggle {
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
    margin-left: 10px;
	position: absolute;
	right: 20px;
}

#menu a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.sub-menu, .children {
    padding-left: 20px;
    display: none;
}

/* Artikkelilistaus */
#articles {
    margin-top: 30px;
}

#articles li h2 {
    margin-top: 1px;
    word-wrap: break-word;
    font-size: 20px;
}

#articles ul {
    list-style-type: none;
    padding-left: 0;
}

#articles li {
    margin-top: 20px;
    padding-bottom: 0.1px;
    background-color: rgb(243, 243, 243);
    overflow: hidden;
}

#articles p {
    padding-top: 30px;
    margin: 0;
    margin-top: -30px;
}

#articles img {
    width: 120px;
    height: 100%;
    float: left;
    object-fit: cover;
    margin: auto;
    margin-left: 0px;
    margin-right: 0px;
}

#articles li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    display: flex;
    padding: 10px;
}

#article-texts {
    margin-right: 10px;
}

/* Alapalkki */
.footer {
	width: 100%;
	padding: 20px;
	background-color: #e2e2e2;
}

/* Mobiilikäyttö */
@media only screen and (max-width: 700px) {
    #maincontent {
        padding: 20px!important;
    }
}

/*
Theme Name: Sammi 1.0
Author: Leevi Halminen
Author URI: https://halminen.net/
Description: Sammin kyläyhdistyksen WordPress-teema
Version: 1.0
Text Domain: wpsammi
*/