@media only screen and (min-width: 768px) {
    /* tablets and desktop */
    * {
        margin: 0;
        font-family: 'Martel', serif;
    }
    
    #pagepiling {
        display: grid;
        height: 100vh;
        display: grid;
        grid-template-columns: 1;
        grid-row: auto auto;
        justify-self: center;

    }
    
    #first {
        background-color: #0D232E;
        height: 100vh;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-row: auto;
        justify-content: center;
        align-content: center;
    }
    #first .pp-tableCell{
        grid-row: 1/-1;
        grid-column: 1/-1;
        justify-content: center;
        align-content: center;
        display: grid;
        
    }
    .again{
        display: grid;
        width: 500px;
        height: 500px;
        grid-template-columns: 1fr;
        grid-template-rows: 200px 50px 50px 50px 50px;
    }
    
    h1 {
        margin: 0 0;
        line-height: 1em;
        font-size: 6rem;
        
    }
    
    h3 {
        font-size: 2rem;
        line-height: 2rem;
        align-self: center;
    }
    
    h1,
    h3 {
        color: white;
    }
    
    #first img {
        height: 2rem;
        padding-top: 2rem;
        cursor: pointer;
    }
    #fir {
        background-color: #393d4c;
        height: 100vh;
        width: 100vw;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    
    #fir .pp-tableCell {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: auto auto auto;
    }
    
    #fir h2 {
        line-height: 3rem;
        font-size: 3rem;
        color: whitesmoke;
        margin-top: 1rem;
        margin-left: 1rem;
        grid-column: 6/-1;
        grid-row: 2;
        align-self: end;
        padding: 10px;
    }
    
    #fir #second {
        font-weight: 500;
        font-size: 1.7rem;
        margin-top: -.6rem;
        grid-row: 3;
        align-self: first baseline;
    }
    
    #fir img {
        height: 80vh;
        grid-row: 2/-1;
        grid-column: 1/5;
        align-self: center;
        justify-self: right;
    }
    #third{
        background-color: #266485;
        color: white;
        font-weight: 400 !important;
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: repeat(4, min-content);
        align-content: center;
    }
    
    #title {
        font-weight: 900;
        font-size: 40px;
        grid-column: 3/-3;
        grid-row: 1;
    }
    #thing{
        grid-row: 2;
        grid-column: 3/-3;
    }
    
    #subtitle {
        font-weight: 900;
        font-size: 25px;
        grid-column: 3/-3;
        grid-row: 3;
    }
    #thing2{
        grid-row: 4;
        grid-column: 3/-3;
    }
    
    #third p {
        padding-left: 25px;
        padding-right: 25px;
        margin-top: 5px;
    }
    
    #third b {
        font-size: 25px;
        line-height: 0.8rem;
    }
    #fourth {
        background-color: #5993B3;
        display: grid;
    }
    
    #fourth .pp-tableCell {
        background-color: #5993B3;
        color: white;
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: repeat(4, min-content);
        align-content: center;
    }
    #fourth #title {
        padding-left: 25px;
        grid-row: 1;
        grid-column: 3/-3;

    }
    
    #fourth #parragraph {
        padding: 25px;
        font-size: 20px;
        grid-row: 2;
        grid-column: 3/-3;

    }

    #fourth .clickables{
        grid-row: 3/4;
        grid-column: 3/-3;
        display: grid;
        grid-template-columns: repeat(4, 80px);
        grid-template-rows: 80px;
        padding-left: 25px;
        justify-items: left;
    }
    #fourth img {
        height: 60px;

    }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px){
    * {
        margin: 0;
        font-family: 'Martel', serif;
    }
    
    #pagepiling {
        display: grid;
        height: 100vh;
        display: grid;
        grid-template-columns: 1;
        grid-row: auto auto;
    }
    
    #first {
        background-color: #0D232E;
        height: 100vh;
        display: grid;
        grid-template-columns: 1;
        grid-row: auto auto;
        justify-content: center;
        align-content: center;
    }
    
    h1 {
        margin: 0 0;
        line-height: 1em;
        font-size: 4rem;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.5em;
    }
    
    h1,
    h3 {
        color: white;
    }
    
    #first img {
        height: 2rem;
        padding-top: 2rem;
        cursor: pointer;
    }
    
    
    #fir {
        background-color: #393d4c;
        height: 100vh;
        width: 100vw;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    
    #fir .pp-tableCell {
        display: grid;
        grid-template-columns: 1fr;
        /*grid-template-rows: 350px 90px 40px;
        ^ this line made my tex ove rlap into picture on second
        page, i debugged on google chrome and removed it and it was fixed lol*/
        align-content: center;
    }
    
    #fir h2 {
        line-height: 2.5rem;
        font-size: 2.5rem;
        color: whitesmoke;
        grid-row: 2;
        justify-self: center;
        text-align: left;
        width: 60vw;
    }
    
    #fir #second {
        font-weight: 500;
        font-size: 1.5rem;
        margin-top: -.6rem;
        grid-row: 3;
    }
    
    #fir img {
        width: 60vw;
        grid-row: 1;
        justify-self: center;
        align-self: center;
    }
    #third{
        background-color: #266485;
        color: white;
        font-weight: 400 !important;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-rows: auto;
    }
    
    #title {
        font-weight: 900;
        font-size: 40px;
        margin-top: 15px;
    }
    
    #subtitle {
        font-weight: 900;
        font-size: 25px;
    }
    
    #third p {
        padding: 25px;
        padding-top: 0px;
    }
    
    #third b {
        font-size: 25px;
        line-height: 0.8rem;
    }
    
    #fourth {
        display: grid;
    }
    
    #fourth #title {
        padding-left: 25px;
    }
    
    #fourth #parragraph {
        padding: 25px;
        font-size: 20px;
    }
    
    #fourth .pp-tableCell {
        background-color: #5993B3;
        color: white;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 80px 160px;
    }
    
    #fourth img {
        height: 20vw;
    
    }
    #fourth .clickables{
        padding-left: 7px;
        width: 60vw;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 13vh 13vh;
        justify-self: left;
        justify-items: center;
        align-items: center;
        align-self: center;
    }
    
}
