/*
Theme Name: Hasartmangusoltuvus
Theme URI: https://hasartmangusoltuvus.ee/
Author: Hasartmangusoltuvus.ee
Description: Infoleht hasartmängusõltuvuse teemal. Käsitsi kirjutatud, JavaScriptita teema.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hasartmangusoltuvus
*/

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #444;
	background: #e8e8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23e8e8e8'/%3E%3Crect width='1' height='1' fill='%23e2e2e2'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }

a { color: #2e6da4; text-decoration: none; }
a:hover { color: #1d4a73; text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: "Open Sans", Arial, sans-serif;
	color: #333;
	line-height: 1.3;
	margin-bottom: 14px;
}

p, ul, ol, table { margin-bottom: 18px; }

ul, ol { padding-left: 24px; }

/* ---------- Boxed page ---------- */
#page {
	max-width: 1060px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.inner {
	max-width: 1020px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Top bar ---------- */
#topbar {
	background: #23303c;
	color: #aab8c2;
	font-size: 12px;
	padding: 6px 0;
}
#topbar .inner { overflow: hidden; }
#topbar .tb-left { float: left; }
#topbar .tb-right { float: right; }
#topbar strong { color: #fff; }

/* ---------- Header ---------- */
#masthead {
	background: #fff;
	padding: 24px 0 20px;
	border-bottom: 1px solid #e5e5e5;
}
#masthead .inner { overflow: hidden; }

.site-branding { float: left; }
.site-title {
	font-size: 30px;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.5px;
}
.site-title a { color: #2c3e50; text-decoration: none; }
.site-title a span { color: #2e6da4; }
.site-description {
	color: #999;
	font-size: 13px;
	font-style: italic;
	margin: 2px 0 0;
}

.header-help {
	float: right;
	text-align: right;
	padding-top: 4px;
}
.header-help .hh-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.header-help .hh-number {
	display: block;
	font-size: 30px;
	font-weight: 700;
	color: #d9534f;
	line-height: 1.2;
}
.header-help .hh-number a { color: #d9534f; text-decoration: none; }
.header-help .hh-number a:hover { color: #c9302c; }
#topbar a { color: #fff; text-decoration: none; }
.header-help .hh-hours { font-size: 12px; color: #888; }

/* ---------- Navigation ---------- */
#site-navigation {
	background: #2e6da4;
	background: linear-gradient(to bottom, #3579b5 0%, #2a6398 100%);
	border-bottom: 3px solid #1d4a73;
}
#site-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
#site-navigation li { float: left; }
#site-navigation a {
	display: block;
	padding: 13px 20px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	border-right: 1px solid rgba(255,255,255,0.12);
}
#site-navigation li:first-child a { border-left: 1px solid rgba(255,255,255,0.12); }
#site-navigation a:hover,
#site-navigation .current-menu-item a,
#site-navigation .current_page_item a {
	background: #1d4a73;
}

/* ---------- Hero ---------- */
#hero {
	background: #eaf2f8;
	border-bottom: 1px solid #d6e4ef;
	padding: 36px 0;
}
#hero h1 {
	font-size: 32px;
	color: #2c3e50;
	margin-bottom: 10px;
}
#hero .hero-lead {
	font-size: 17px;
	color: #5a6b7b;
	max-width: 700px;
	margin-bottom: 22px;
}
.btn {
	display: inline-block;
	padding: 11px 26px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid transparent;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.15);
	cursor: pointer;
}
.btn:hover { text-decoration: none; color: #fff; }
.btn-primary {
	background: #2e6da4;
	background: linear-gradient(to bottom, #3d80b8 0%, #2e6da4 100%);
	border-color: #275d8c;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.1);
}
.btn-primary:hover { background: #275d8c; }
.btn-danger {
	background: #d9534f;
	background: linear-gradient(to bottom, #e0625e 0%, #d9534f 100%);
	border-color: #c9302c;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.1);
	margin-left: 8px;
}
.btn-danger:hover { background: #c9302c; }

/* ---------- Layout columns ---------- */
#content { padding: 34px 0 40px; }
#content .inner { overflow: hidden; }

#primary {
	float: left;
	width: 655px;
	max-width: 100%;
}
#secondary {
	float: right;
	width: 300px;
	max-width: 100%;
}

/* ---------- Content styles ---------- */
.entry-content h2 {
	font-size: 23px;
	color: #2c3e50;
	padding-bottom: 8px;
	border-bottom: 2px solid #eee;
	margin-top: 34px;
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 {
	font-size: 18px;
	color: #2e6da4;
	margin-top: 24px;
}

.entry-content li { margin-bottom: 6px; }

/* Panels (Bootstrap 3 style) */
.panel {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 20px;
	box-shadow: 0 1px 1px rgba(0,0,0,0.05);
	background: #fff;
}
.panel-heading {
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
	padding: 10px 15px;
	font-weight: 700;
	font-size: 15px;
	color: #333;
	border-radius: 3px 3px 0 0;
}
.panel-body { padding: 15px; }
.panel-body :last-child { margin-bottom: 0; }

.panel-blue { border-color: #bce8f1; }
.panel-blue .panel-heading { background: #d9edf7; border-color: #bce8f1; color: #31708f; }
.panel-red { border-color: #ebccd1; }
.panel-red .panel-heading { background: #f2dede; border-color: #ebccd1; color: #a94442; }
.panel-green { border-color: #d6e9c6; }
.panel-green .panel-heading { background: #dff0d8; border-color: #d6e9c6; color: #3c763d; }

/* Alert / well */
.well {
	background: #f9f9f9;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	padding: 16px 18px;
	margin-bottom: 20px;
	box-shadow: inset 0 1px 1px rgba(0,0,0,0.04);
}
.well :last-child { margin-bottom: 0; }

.alert-info {
	background: #d9edf7;
	border: 1px solid #bce8f1;
	color: #31708f;
	border-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 20px;
}
.alert-info a { color: #245269; font-weight: 700; }

/* Phases table-ish blocks */
.faas {
	border-left: 4px solid #2e6da4;
	background: #f7fafc;
	padding: 12px 16px;
	margin-bottom: 14px;
}
.faas h3 { margin: 0 0 6px; font-size: 16px; color: #2c3e50; }
.faas p { margin: 0; font-size: 14px; }
.faas-2 { border-left-color: #f0ad4e; }
.faas-3 { border-left-color: #d9534f; }

/* Checklist */
.checklist { list-style: none; padding-left: 0; }
.checklist li {
	padding: 8px 10px 8px 34px;
	border-bottom: 1px dotted #ddd;
	position: relative;
}
.checklist li:before {
	content: "\2713";
	position: absolute;
	left: 8px;
	color: #2e6da4;
	font-weight: 700;
}

/* ---------- Sidebar ---------- */
.widget {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 22px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.widget-title {
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
	padding: 10px 15px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
	border-radius: 3px 3px 0 0;
	margin: 0;
}
.widget-body { padding: 14px 15px; font-size: 14px; }
.widget-body :last-child { margin-bottom: 0; }
.widget-body ul { list-style: none; padding: 0; margin: 0; }
.widget-body ul li {
	padding: 7px 0;
	border-bottom: 1px dotted #e5e5e5;
}
.widget-body ul li:last-child { border-bottom: 0; }

.widget-helpline {
	background: #2e6da4;
	background: linear-gradient(to bottom, #35719f 0%, #2a6398 100%);
	border-color: #1d4a73;
	color: #fff;
	text-align: center;
}
.widget-helpline .widget-body { padding: 20px 15px; }
.widget-helpline .wh-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #cfe0ee; }
.widget-helpline .wh-number {
	display: block;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0,0,0,0.25);
	margin: 4px 0;
}
.widget-helpline .wh-number a { color: #fff; text-decoration: none; display: block; }
.widget-helpline .wh-number a:hover { color: #fff; text-decoration: underline; }
.widget-helpline p { color: #d8e5f0; font-size: 13px; margin: 0; }

.widget-facts .fact {
	border-bottom: 1px dotted #e5e5e5;
	padding: 8px 0;
}
.widget-facts .fact:last-child { border-bottom: 0; }
.widget-facts .fact strong { color: #2c3e50; display: block; }
.widget-facts .fact span { font-size: 13px; color: #777; }

/* ---------- Footer ---------- */
#colophon {
	background: #2c3e50;
	color: #a9b7c4;
	font-size: 13px;
}
#colophon .footer-cols {
	overflow: hidden;
	padding: 30px 0 20px;
}
#colophon .fcol {
	float: left;
	width: 33.333%;
	padding-right: 30px;
}
#colophon h4 {
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #3d5266;
}
#colophon a { color: #c8d4de; }
#colophon a:hover { color: #fff; }
#colophon ul { list-style: none; padding: 0; }
#colophon ul li { padding: 4px 0; }

.site-info {
	background: #23303c;
	padding: 12px 0;
	font-size: 12px;
	color: #7a8a99;
	text-align: center;
}

/* ---------- Posts / pages fallback ---------- */
.entry-title { font-size: 26px; color: #2c3e50; }
.entry-meta { font-size: 12px; color: #999; margin-bottom: 16px; }
.hentry { margin-bottom: 34px; }

/* ---------- Responsive ---------- */

/* Tahvelarvuti: kaks veergu jaavad, aga kitsamalt */
@media (max-width: 1080px) {
	#primary { width: 62%; }
	#secondary { width: 34%; }
	#site-navigation a { padding: 13px 14px; }
	#hero h1 { font-size: 28px; }

	/* Puuteseadmed: nimekirjade lingid mugavama korgusega */
	.widget-body ul li { padding: 0; }
	.widget-body ul li a { display: block; padding: 11px 0; }
	#colophon ul li { padding: 0; }
	#colophon ul li a { display: block; padding: 10px 0; }
	#topbar a { display: inline-block; padding: 4px 2px; }
}

/* Kitsas tahvelarvuti / suur telefon: uks veerg */
@media (max-width: 760px) {
	#primary, #secondary { float: none; width: 100%; }
	#secondary { margin-top: 30px; }
	.site-branding, .header-help { float: none; text-align: left; }
	.header-help { margin-top: 12px; }
	#site-navigation li { float: none; }
	#site-navigation a {
		border-right: 0;
		border-bottom: 1px solid rgba(255,255,255,0.12);
		padding: 14px 20px;
	}
	#colophon .fcol { float: none; width: 100%; padding-right: 0; margin-bottom: 22px; }
	#topbar { text-align: center; }
	#topbar .tb-left, #topbar .tb-right { float: none; }

	/* Suuremad puutealad telefonis */
	.widget-body ul li a { padding: 12px 0; }
	#colophon ul li a { padding: 11px 0; }
	.checklist li { padding-top: 11px; padding-bottom: 11px; }
}

/* Telefon */
@media (max-width: 480px) {
	body { font-size: 15px; }
	.inner { padding: 0 15px; }

	.site-title { font-size: 22px; letter-spacing: 0; }
	.site-description { font-size: 12px; }

	#hero { padding: 26px 0; }
	#hero h1 { font-size: 23px; }
	#hero .hero-lead { font-size: 15px; }

	/* Nupud uksteise all, vordselt joondatud */
	.btn { display: block; width: 100%; text-align: center; padding: 13px 18px; }
	.btn-danger { margin-left: 0; margin-top: 10px; }

	.entry-content h2 { font-size: 20px; }
	.entry-content h3 { font-size: 17px; }
	.entry-title { font-size: 22px; }

	#content { padding: 26px 0 30px; }
	.panel-body, .widget-body { padding: 13px 14px; }
	.faas { padding: 11px 13px; }

	/* Pikad lingid ei tohi kasti laiust lohkuda */
	a { word-wrap: break-word; overflow-wrap: break-word; }
}

/* Vaga kitsas ekraan (iPhone SE jms) */
@media (max-width: 360px) {
	.site-title { font-size: 19px; }
	#hero h1 { font-size: 21px; }
	.header-help .hh-number { font-size: 26px; }
	.widget-helpline .wh-number { font-size: 36px; }
}
