/* CSCI121 Final Project, MathMarvels Website - style.css
  Author: Janelle Holcomb
  Date: 4/12/2023 */

/* html page specific styles */


iframe {
  max-width: 100%;
    height: auto;
			border: none;
			margin: 0 auto;
   display: flex;
  justify-content: center;

}
  .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}


.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



  /* default styles */
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }


  .left-content {
    width: 85%;
  }

  .right-content {
    width: 15%;
  }

form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
}

label {
  margin-top: 20px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  width: 100%;
}

input[type="submit"] {
  background-color: #005f6b;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #005f6b;
}

input[type="submit"]:focus {
  outline: none;
}

textarea {
  height: 150px;
}



  .quiz-video {
    max-width: 100%;
    height: 100;
  }

  table {
    border-collapse: collapse;
    width: 80%;
    margin: 0 auto;
  }

  th,
  td {
    text-align: center;
    padding: 1px;
    border-bottom: 1px solid #ddd;
  }

  th {
    background-color: #f2f2f2;
  }

  tr:nth-child(even) {
    background-color: #f2f2f2;
  }

  table,
  th,
  td {
    border: 1px solid black;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  body {
    font-family: Arial, sans-serif;
  }

  header {
    background-color: #005f6b;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-size: 36px;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav ul {
    list-style: none;
    display: flex;
  }

  nav li {
    margin: 0 10px;
  }

  nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 4px;
    border: 1px solid #fff;
  }

  main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1rem;
  }

button {
  background-color: #005f6b;
  color: white;
  transition: background-color 0.5s ease;
}

button:hover {
  background-color: #cc0000;
}


.video-container {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


  section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  section iframe {
    width: 100%;
    height: auto;
    float: left;
    margin-right: 2rem;
  }


/* Make the website responsive for different screen sizes */

/* Small screens */
@media only screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    font-size: 18px;
  }
  nav {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    font-size: 16px;
  }
  td.video {
    width: 100%;
    vertical-align: top;
    overflow: hidden;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
}

th {
  background-color: #f2f2f2;
  text-align: left;
}

@media only screen and (max-width: 400px) {
  table {
    font-size: 0.5rem;
  }
  
  th, td {
    padding: 4px;
  }
}


@media only screen and (max-width: 768px) {
  table {
    width: 100%;
    margin-top: 20px;
  }
}



/* Medium screens */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  header {
    padding: 10px;
    font-size: 20px;
  }
  nav {
    width: 80%;
  }
}

/* Default styles for large screens */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header,
.footer {
  flex-basis: 10%;
  background-color: #333;
  color: #fff;
}

.main {
  flex-basis: 80%;
}

/* Styles for small screens */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    justify-content: flex-start;
  }

  .header,
  .footer {
    flex-basis: auto;
  }

  .main {
    flex-basis: 100%;
  }
}

section {
  width: 60%;
}

aside {
  width: 35%;
}

.video-container {
  position: relative;
  padding-bottom: 70%;
  height: 0;
  max-width: 500px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

 



section h2 {
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
  text-align: center; 
  color: #cc0000;
}

section p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: left;
}

section .media img {
  width: 100%;
}

aside h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}


aside li {
  margin-bottom: 0.5rem;
}

footer {
  background-color: #cc0000;
  padding: 1rem;
  text-align: center;
}
