
/* Default css */

:root {
    font-family: 'Fira Sans', sans-serif;
    font-size:17px;             
}

/* Base classes are set for iPhone 16, iOS 26 */

body {
    background-color: hsl(210, 60%, 30%); /* blue */
    height: 100%;
    margin: 0;
    overflow: hidden;
}

div {
    margin: 0; padding: 0;
}

form {
    margin: 0;
}

/* App header */

.app-header {
    margin: 0 -1em 0 -1em;
    padding: .7em 2em .8em 1.9em;
}
.app-header-title-line {
    display: flex;
    column-gap: .9em;
    align-items: center;
}
.app-header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white; opacity: 95%;
}
.app-header-icon {
    width: 1.8em; 
    margin: -.15em .2em 0 0;
}
.app-header-comment {
    font-weight: 400;
    opacity: 100%;
    color: white;  
}
.app-footer {
    margin: .5em .2em 8em .3em;
}
.app-footer-link {
    color: hsl(210, 60%, 40%);;
    font-size: 1em; 
    font-weight: 500; 
    margin-left: .3em;gree
}

.content {
    margin: 0;
    padding:.7em;
    height: 100%;
    background-color: hsl(0,0%,94%);
    overflow-y: auto;
}

.page-title {
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    margin: .7em 0 .9em 0;
}

/* Round-rect white panel */

.panel {
    background-color: white;
    border-radius: 12px;
    font-size: 1em;
    margin-bottom: 1em;
}
.panel-header { /*border: 1px solid blue;*/
    padding: .7em 1.2em .7em 1.2em;
    border-bottom: 5px solid hsl(0, 0%, 90%);
}
.panel-body { /*border: 1px solid red;*/
    padding: .5em 1.2em .5em 1.2em;
}
.panel-option-footer { /*border: 1px solid green;*/
    padding: .3em 1.2em .4em 1.2em;
}
.panel-option-row {
    padding: .7em 0 .8em 0;
}
.panel-label {
    padding: .4em 0 .7em .3em;
    font-size: .9em;
    font-weight: 400;
    color: hsl(0,0%, 60%);
    text-transform: uppercase;
}
.panel-rule {
    border-top: .5px solid hsl(0, 0%, 50%);
}

/* Member list */

.member-list-row {
    padding: .4em 0 0 0;
    display: flex; 
    align-items: center;
}
.member-list-info {
    flex-grow: 1;
}
.member-list-name {
    font-size: 1.1em;
    font-weight: 700;
    display: flex;
    align-items: center;
    column-gap: .2em;
}
.member-list-phone {
    font-size: 1em;
    font-weight: 400;
}
.member-list-comment {
    font-size: 1em; 
    font-weight: 500;
    opacity: 70%;
    color: hsl(0,70%,55%);
}
/* Event list panels */

.event-list-title-line {
    display: flex; 
    align-items: center; 
    padding: .3em 1em .5em .3em;
}
.event-list-name {
    font-size: 1.1em;
    font-weight: 700;
    /*margin-bottom: .2em;*/
}
.event-list-location {
    font-size: 1.2em;
    font-weight: 600;
    color: hsl(0,0%,55%);
}
.event-list-comment {
    font-size: 1em; 
    color: hsl(0,70%,50%);
    padding-top: .2em;
}
.event-note { /* used with panel-label */
    color: hsl(210, 80%, 30%);

}
/* Player (participant) details row */

.player-row {
    width: 100%;
    padding: .6em 0 .6em 0;
    margin: 0;
}
.player-name {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    padding-bottom: .2em;
}
.player-status {
    font-size: 1em;
    font-weight: 400;
    color: gray;
    opacity: 75%;
}
/* Color values for member and player status */
.in { /* invited */
    color: royalblue;
}
.co { /* confirmed */
    color: green;
}
.wl { /* waitlisted */
    color: chocolate;
}
.av { /* available */
    color: hsl(0,0%,40%);
}
.na { /* not available */
    color: hsl(0,70%,50%);
}
.ac { /* active */
    color: black;
}
.ia { /* inactive */
    color: hsl(0,80%,40%);
}

.player-comment {
    font-size: 1.1em; 
    opacity: 70%;
    color: hsl(0,80%,50%);
}

.error-block {
    margin-top: .5em;
}
.error-message {
    color: red;
    font-weight: 400;
    margin-bottom: 0;
}
ul {
    list-style-type: None;
    margin-block-start: 0;
    padding-inline-start: 0;
    margin:0; padding:0;
}

a {
    text-decoration: none;
    color: black;
}
hr {
    border-top: hsl(0, 0%, 80%);
    border-radius: 0;
    margin: .1em 0 .1em 0;
}

/* Form elements */

select {
    border-radius: 6px;
    font-size: 1em;
    background-color: hsl(0,0%,97%);
    border: 1px solid lightgray;
    /*padding: .2em .3em .25em .6em;*/
    margin: 0 0 0 .3em;
}

input { /* doesn't use the root font */
    width: 100%;
    font-size: 1.1em;
    margin: 0 0 .2em -1px;
    padding: .4em .6em .6em .6em;
    border-radius: 8px;
    border: 1px solid hsl(0,0%,75%);
}
textarea {
    width: 100%;
    max-height: 3.5em;
    margin: 0 0 .3em -1px;
    padding: .4em .6em .6em .6em;
    border-radius: 8px;
    font-size: 1.1em;
    border: 1px solid hsl(0,0%,75%);
}

.input-label {
    margin-top: .6em;
    padding-bottom: .5em;
    font-size: .9em;
    font-weight: 400;
    color: hsl(0,0%, 60%);
    text-transform: uppercase;
}
.icon {
    width: 1.8em;
    opacity: 15%;
    padding: 0; margin:0;
}

/* Buttons */

.button-row {
    display: flex;
    column-gap: .75em;
    justify-content: center;
    padding: 0 0 1em 0;
}
.button {
    font-size: 1em;
    font-weight: 500;
    color: black;
    border-radius: 8px;
    padding: .5em 1.3em .5em 1.3em;
    text-decoration: none;
}
.default {
    background-color: hsl(210, 60%, 30%);
    color: white;
}
.cancel {
    background-color: hsl(0, 0%, 60%);
    color: white;
}
.delete {
    background-color: hsl(0,100%,60%);
    color: white;
}


input[type="checkbox"] {
    float: left;
    margin-left: 10px;
    margin-top: 4px;
}

/* iPhone 13 mini */

/*@media (max-width: 375px) {
    body {
           margin: 1em;
           font-size: .85rem;
    }
}*/
/* I don't know why adding another media query herefucks things up… */

