/* this is the css stylesheet for meeting minutes */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#funny-word-of-the-day {
    border:2px solid #00897b;
}

input[required] {
    background-color: #f0f0f0;
}

form:has(input:required) {
    border:2px dashed #4caf50;
}

    section h3 {
        color:#00897b;
        margin-top:10px;
    }

    section ul {
        list-style-type: square;
        padding-left:20px;
    }




/* adding contrast to h1 and changing color to navy */
h1 {
    color: navy;
    font-size:32px;
    font-size:3em;
}
/* making sub headers more vibrant */
h2 {
    color:rgb(255, 132, 22);
    background-color:rgb(33,33,33);
    font-size:2rem;
}
em {
    text-decoration: solid;
    text-align: center;
}

header {
    width:80vw;
    margin-top:20px;
    margin-right:15px;
    margin-bottom: 20px;
    margin-left: 15px;
}

section {
    height:20rem;
    overflow-y:auto;
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 10px;
    padding-left: 12px;
}

footer {
    margin-top: 20px;
    font-size:1.2rem;
    text-align: center;
}



body {
    font-family:'Poppins', sans-serif;
    line-height: 1.6;
    margin:auto;
}
/* adjusting agenda to lighter color */
.agenda { 
    color:hsl(270, 65%, 40%);
}
/*making image rounder and correcting size, giving color */
img {
    width:150px;
    height:150px;
    border-radius:50%;
    border-width: 5px;
    border-style: inset;
    border-color: red;
    display:inline-block;
}

video {
    display:inline;
    max-width: 100%;
    min-width:480px;
    position:static;
}

audio {
    display:inline;
    max-width: 100%;
    min-width:480px;
    position:relative;
}

/* using color() to change p tag*/
p {
    color:rgb(255 128 51 / 100%);
    color:rgb(255,100,50);
}

/* using color-mix() to combine to colors for names */
li {
    color: color-mix(in rgb, rgb(255, 0, 0) 60%, rgb(0, 0, 255) 40%);
}

/*giving button hover and actives */

button:hover {
    background-color: orange;
    color: white;
    cursor: pointer;
}

button:active {
    background-color: darkorange;
    transform: scale(0.98);
}

.flex-layout {
    display:flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap:10px;
    margin-top: 20px;
}

.box {
    background-color: aliceblue;
    color:skyblue;
    padding: 15px;
    width:120px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
}

form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px 20px;
    align-items: center;
    margin-top: 20px;
  }
  
  form label {
    grid-column: 1 / 2;
  }
  
  form input,
  form textarea,
  form select,
  form button {
    grid-column: 2 / 3;
  }
  
  section > ol {
    padding-left: 20px;
    color: #4a148c;
  }

  img ~ h3 {
    color:#880e4f;
  }

  span + nav {
    margin-top: 10px;
  }

  div.box {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
  }

  img, video {
    max-width:100%;
    height:auto;
  }

@media screen and (max-width:768px) {
    header, footer {
        text-align: center;
        padding: 10px;
    }

    .flex-layout {
        flex-direction: column;
        align-items: stretch;
    }

    form {
        grid-template-columns: 1fr;
    }


  form label,
  form input,
  form textarea,
  form select,
  form button {
    grid-column: 1 / -1;
  }
}
