body {
  padding: 2px;
  background-image: url(filmy.jpg);
  background-size: contain;
  color: white;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  height: 100px;
  width: 100px;
  position: fixed;
  top: 0;
  right: 0;
  margin: 0;
  padding: 0;
}

header {
  background-color: transparent;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 50px;
}

section{
    font-size: large;
}

.head {
  display: flex;
  justify-content: center;
  color: rgb(255, 255, 255);
  animation: changecolor 3s linear infinite;
}

.indeximg {
  display: flex;
  justify-content: space-between;
}

#headimg {
  height: 120px;
  width: 120px;
}
#subhead {
  font-size: large;
}
#pagehead {
  font-size: x-large;
}
#foot {
  text-decoration: none;
  color: rgb(249, 247, 247);
}
#foot:hover {
  text-decoration: underline;
}
.containerbox{
    display: flex;
    flex-direction: row;
}
nav {
  position: sticky;
  top: 0px;
  left: 0px;
  display: flex;
  margin-bottom: 15px;
  padding: 5px;
  padding-left: 20px;
  overflow: hidden;
  background-color: transparent;
  border-radius: 25px;
}

nav a {
  display: flex;
  color: rgb(89, 101, 226);
  padding: 3px 4px;
  text-decoration: none;
  font-size: x-large;
  font-weight: bolder;
}

nav a:hover:not(.active) {
  color: white;
}

.active {
  color: white;
  text-decoration: underline;
}

fieldset {
  border-radius: 15px;
  padding-left: 25px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
}

.goto {
  text-decoration: underline;
  color: white;
}

footer {
  box-sizing: border-box;
  height: 50px;
  width: 100%;
  background-color: transparent;
  color: white;
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

@media (max-width: 980px) {
  .container {
    display: flex;
    flex-wrap: wrap;
  }
  .containerbox{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav{
    
    flex-wrap: wrap;
    
  }
  p{
    flex-wrap: wrap;
  }
}
@media (max-width:850px){
  #title{
    font-size: x-large;
  }
  #subhead{
    font-size: small;
  }
  nav a{
    font-size: large;
  }
}
@media(max-width:700px){

  .head{
    animation: none;
  }
  .logo{
    position: relative;
    left: 40%;
  }
  .containerbox .box1 img{
    height: 400px;
  }
  section{
    font-size: medium;
  }
}
@media(max-width:500px){
  .containerbox .box1 img{
    height: 300px;
  }
  section{
    font-size: small;
  }
}

@keyframes changecolor{
    0%{
        color: white;
        scale: 1;
    }
    25%{
        color: aqua;
        scale: 1.1;
    }
    50%{ 
        color: yellow;
        scale: 1;
    }
    75%{
        color: lime;
        scale: 1.1;
    }
    100%{
        color: rgb(231, 154, 169);
        scale: 1;
    }
}