@media (max-width: 1000px) {
    /* top navigation bar*/
    .topnav {
        text-align: center;
        background-color: black;
        overflow: hidden;
        top: 0;
        z-index: 100;
        position: sticky;
        height: 50px; 
    }
    
    .topnav a {
        display: inline-block;
        color: white;
        text-align: center;
        padding: 15px 5px; 
        text-decoration: none;
        font-size: 15px; 
        margin-right: 15px ;
    }
    
    .topnav a:hover {
        background-color: white;
        color: black;
    }
    
    .topnav .image-button-left {
        display: none;
    }
    
    .topnav .image-button-right {
        display: none;
    }

    .topnav .image-button-left-mobile{
        float: left;
        padding: 0px 0px;
    }

    /*index.html: download and donate button*/
    .downloads {
        background-color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 50px;
        overflow: hidden;
        flex-direction: column; 
    }
    
    .stuff {
        background-color: rgb(0, 75, 0);
        color: white;
        padding: 10px;
        width: 300px;
        border-radius: 10px;
        margin: 0 10px;
        display: flex;
        align-items: center;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, .75);
        margin: 10px 0;
    }
    
	.instruction {
    background-color: rgb(226, 255, 205); 
    padding: 10px;
    width: 300px; 
    border-radius: 10px;
    margin: auto;
    display: flex; 
    align-items: center;
	text-align: left;
	font-style:italic;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, .75)
	}
	
    .text_container {
        flex: 1;
        font-size: 10px;
    }
    
    .button_container {
        border: solid white;
        border-radius: 10px;
    }
    
    .button_1 {
        background-color: rgb(0, 75, 0);
        color: lightgrey;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        cursor: pointer;
    }
    
    .button_1:hover {
        background-color: rgb(100, 255, 100);
    }
    
    /* Style the popup content */
    .popup_content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 20px;
        width: 75%; 
        text-align: left;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        color: black;
        font-size: 15px;
    }

    .close {
        position: absolute;
        top: 40px;
        right: 15px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
    }

    /* about us */
    .about {
        text-align: center; 
        position: relative;
        background-color: white;
        overflow: hidden;
      }
      
    .about img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }
      
    .content {
        position: absolute;
        top: 15px;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5); 
        color: white;
        padding: 30px; 
        width: 345px; 
        height: 415px; 
      }
    .about p1 {
        font-size: 15px;
    }

    .topnav .image-button-left-mobile{
        background-color: rgba(255, 255, 255, 0);
    }

    /*bottom navigation bar*/
    .bottomnav img {
        display: block;
        position: absolute;
        right: 20px; 
        top: 20px; 
        width: 100px; 
        height: 100px; 
    }

    .content_1 .list_1,
    .content_1 .list_2 {
        position: static; 
        left: 0;
        padding: 10px; 
        width: 100%; 
        height: auto; 
    }

    .bottomnav {
        height: auto; 
    }

    /* head images */
    .head_image {
        background-color: rgb(200,200,200);
        display: flex; 
        align-items: center; 
        font-size: 8px;
        font-family: cursive;
    }

    .head_image img {
        margin-right: 25px; 
        box-shadow: 0px 5px 10px rgba(0, 0, 0, .5);
    }

    /*Pop-up for when they enter page*/
    .modal {
        display: none;
        position: fixed;
        top: 15%;
        right: 10px;
        transform: translate(0, -50%); 
        width: 40%;
        z-index: 1;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
    }

    .modal-content {
        background-color: rgba(0, 0, 0, 0.75);
        margin: 0;
        padding: 20px; 
        text-align: center;
        border-radius: 0;
        color: white;
        font-size: 15px;
    }

    .close {
        color: white;
        float: right;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
    }

    /* news */
    .news {
        padding: 10px; 
        background-color: rgb(225, 225, 225);
        overflow: hidden;
        font-size: 15px;
        text-align: center;
    }
    
    .updates {
        background-color: rgb(225, 225, 225);
        border: 2px dotted green;
        padding: 10px; 
        max-width: 90%; 
        margin: 0 auto;
        text-align: center;
    }
  

    /* infos */
    .info_1 {
        padding-top: 30px; 
        padding-bottom: 30px; 
        background-color: white;
        display: flex;
        align-items: center;
        font-size: 15px;
        justify-content: space-between;
        flex-wrap: wrap; 
    }
    
    .info-text {
        flex: 1;
        margin-right: 20px;
        margin-left: 20px;
        max-width: 100%; 
    }
    
    .info_1 img {
        width: 30%; 
        max-width: 100%; 
        margin-right: 20px;
    }
    
    .info_2 {
        padding-top: 30px; 
        padding-bottom: 30px; 
        background-color: white;
        display: flex;
        align-items: center;
        font-size: 15px;
        flex-wrap: wrap; 
    }
    
    .info_2 img {
        margin-left: 20px; 
        max-width: 100%; 
    }
    
    .info-text2 {
        margin-left: 20px; 
        margin-right: 20px;
        max-width: 100%; 
    }

    /*Lessons.html: coaches*/
    .coaches {
        background-color: white;
        text-align: center;
        padding: 20px;
        padding-top: 50px;
        padding-bottom: 100px;
    }

    .grid-container {
        display: grid;
        grid-template-columns: 1fr; 
        grid-gap: 20px;
        justify-content: center;
    }

    .flip-card {
        background-color: white;
        width: 300px;
        height: 300px;
        border: 1px solid #f1f1f1;
        perspective: 1000px;
        margin: 50px auto; 
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s;
        transform-style: preserve-3d;
    }
    
    .flip-card:hover .flip-card-inner {
        transform: rotateY(-180deg);
    }

    .flip-card-front, .flip-card-back {
        text-align: center;
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .flip-card-back {
        background-color: #bbb;
        color: black;
        transform: rotateY(180deg);
    }

}


@media (max-width: 700px) {
    /* top navigation bar*/
    .topnav {
        text-align: center;
        background-color: black;
        overflow: hidden;
        top: 0;
        z-index: 100;
        position: sticky;
        height: 50px; 
    }
    
    .topnav a {
        display: inline-block;
        color: white;
        text-align: center;
        padding: 15px 5px; 
        text-decoration: none;
        font-size: 11px;
        margin-right: 15px ;
    }
    
    .topnav a:hover {
        background-color: white;
        color: black;
    }
    
    .topnav .image-button-left {
        display: none;
    }
    
    .topnav .image-button-right {
        display: none;
    }

    .topnav .image-button-left-mobile{
        float: left;
        padding: 0px 0px;
    }
}