body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template: 115px 1fr 50px / 150px 1fr;
  grid-template-areas:
    "header header"
    "left main"
    "footer footer";
}

* {
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
}

header {
  background-color: rgb(3, 3, 182);
  color: aliceblue;
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  display: flex;
  gap: 75px;
  margin-left: 40px;
}

.top_links {
  color: aliceblue;
}

#left {
  background-color: white;
  grid-area: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin: auto;
}

button {
  min-width: 150px;
  text-align: left;
  background-color: rgb(3, 3, 182);
}

.side_links {
  color: aliceblue;
  text-decoration: none;
  font-size: 1.15rem;
}

main {
  background-color: wheat;
  grid-area: main;
  display: flex;
  flex-direction: row;
}

.card {
  border: 2px solid rgb(3, 3, 182);
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 50px;
  margin-right: 50px;
  padding: 10px;
}

img {
  max-width: 100%;
}

@media screen and (max-width: 1200px){
  
main {
  background-color: wheat;
  grid-area: main;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 25px;
}

.card {
  flex-direction: row;
}

.text{
  display: flex;
  flex-direction: column;
  margin-left: 10px;
    font-size: 1.5rem;

}

img{
  width: 200px;
  height: auto;
}

#left{
  margin-top: 0px;
}

}

@media screen and (max-width: 1010px){
body {
  display: grid;
  grid-template: 115px 1fr 150px 50px / 1fr;
  grid-template-areas:
    "header"
    "main"
    "left"
    "footer";
}

#left {
  grid-area: left;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: auto;
}
}

@media screen and (max-width: 860px){

.card{
  margin-left: 0;
  margin-right: 0;
}
}


@media screen and (max-width: 700px){

.card{
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body {
  display: grid;
  grid-template: 115px 1fr 300px 50px / 1fr;
  grid-template-areas:
    "header"
    "main"
    "left"
    "footer";
}

}

@media screen and (max-width: 385px){

  nav {
  display: flex;
  gap: 50px;
  margin-left: 15px;
}

}



footer{
  background-color: rgb(3, 3, 182);
  grid-area: footer;
  display: flex;
  color: aliceblue;
  justify-content: space-between;
}

.footer_text {
  margin-left: 5px;
  margin-right: 5px;
}
