/** ==== Layout styles ==== */
html *{
    box-sizing: border-box;
    /** text-transform: capitalize;*/
}
#metronome {
    --purple: #640360;
    --light-purple: #97048f;
    --yellow: #d4e04c;
    --lucida: "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, Geneva, sans-serif;
    font-family: var(--lucida);
    font-size: 1em;
    line-height: 1.5;
}
/* Repeat font styles for buttons and inputs, otherwise the user agent resets them to defaults. */
#metronome button, #metronome input {
    font-family: var(--lucida);
    font-size: 1em;
    border-radius: 5px;
}
#metronome #main, #metronome #copyright {
    width: 100%;
    max-width: 600px;
    padding: 2em;
    margin: 0 auto;
    color: var(--purple);
    font-weight: bold;
}
#metronome #player {
    margin-bottom: 2em;
    background: url(./images/top_right.jpg) no-repeat top right;
    position: relative;
}
#metronome #player #wave {
    background-color: var(--yellow);
    border: 2px solid var(--purple);
    border-left: none;
    border-radius: 0 50% 50% 0;
    width: 400px;
}
#metronome #player h1 {
	background: url(./images/purplemonkey_metronoom.jpg) no-repeat 30px bottom #fff;
	width: 280px;
	height: 200px;
	margin: 50px 0 50px 80px;
	border: 3px solid var(--purple);
	border-radius: 50%;
	text-indent: -9999px;
}
#metronome #bpmButtons {
	position: absolute;
	left: 1em;
	top: 5em;
    border-radius: 5px;
}
#metronome #bpmButtons button {
    font-family: initial;
	font-style: normal;
	font-size: 1.5em;
	padding: .3em;
    margin-bottom: .5em;
	border: 1px solid #fff;
    border-radius: 5px;
}
#metronome #bpmButtons button:disabled {
    color: #888;
    cursor: not-allowed;
}
#metronome #bpm {
	position: absolute;
	left: 150px;
	top: 150px;
	font-size: 2em;
}
#metronome #player #btnStartStop {
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 5px;
}
#metronome #timer {
    margin-bottom: 1em;
    padding: 0 1em 0 2em;
	text-align: right;
}
#metronome #timer h2 {
	margin-bottom: -.4em;
	text-transform: uppercase;
	text-align: left;
}
#metronome #inputBox {
    border: 1px solid var(--purple);
    background-color: var(--yellow);
    margin-bottom: 1em;
    padding: 0 .25em;
}
#metronome #inputBox p {
    line-height: 2.8;
    position: relative;
    padding-right: 2em;
}
#metronome #inputBox button {
    position: absolute;
    right: .2em;
    font-family: initial;
	font-style: normal;
    font-size: 1.1em;
	padding: 0;
    line-height: 1.15;
    color: var(--purple);
    background-color: transparent;
    border-radius: 5px;
}
#metronome #inputBox button:disabled {
    color: #888;
    cursor: not-allowed;
}
#metronome #btnWplUp, #metronome #btnSpeedUp {
    top: 0;
}
#metronome #btnWplDown, #metronome #btnSpeedDown {
    bottom: 0;
}
#metronome input {
    font-weight: bold;
    text-align: right;
}
/* Remove the default spinner arrows from number input fields. */
#metronome input[type=number] {
    appearance: textfield;
}
input::-webkit-inner-spin-button {
    appearance: none;
}
#metronome #time {
    display: inline-block;
    width: 4.5em;
    padding-right: .1em;
    border: 1px solid var(--purple);
    color: #000;
}
#metronome #btnOpenSetup {
	width: 100%;
	margin-bottom: 2em;
    border-radius: 5px;
}
#metronome button {
	color: #fff;
	background-color: var(--purple);
	border: none;
	padding: .5em 2em;
	font-style: italic;
	cursor: pointer;
    border-radius: 5px;
}
#metronome button:hover {
	background-color: var(--light-purple);
    border-radius: 5px;
}

/** ==== Setup window ==== */
#metronome #setupInput {
    font-style: italic;
    text-align: right;
    margin-bottom: 4em;
}
#metronome #btnStartTimer {
	color: var(--purple);
	background-color: #fff;
	width: 90%;
	max-width: 300px;
}
#metronome #btnStartTimer:hover {
	background-color: #ddd;
}

/** ==== Technical styles ==== */
#metronome .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #555; /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
}
#metronome .modal .content {
    width: 600px;
    max-width: 80%;
    background-color: var(--light-purple);
    color: #fff;
    margin: 2% auto 0 auto;
    padding: 1em 2em;
    margin-bottom: 2%;
    font-weight: bold;
    min-height: 80%;
}
#metronome .modal .close {
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5em;
    height: 1.6em;
    background: none;
    padding: 0;
    border: 2px solid #fff;
    font-size: 1.2em;
    font-style: normal;
}
#metronome .modal .close:hover {
    color: #000;
}
