@font-face {
    font-family: "Source Sans 3";
    src: url(../css/fonts/SourceSans/static/SourceSans3-Bold.ttf);
}

@font-face {
    font-family: Merriweather;
    src: url(../css/fonts/Merriweather/Merriweather-Regular.ttf);
}

/* Generella regler */

html {
    font-size: 105%;
}

body {
    font: 300 1rem/1.375 Merriweather, Georia, serif;
    color: #212931;
}

h1, h2, h3, nav ul, #copyright, table th, .heading {
    font-family: "Source Sans 3", Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 0.075em;
}

h1 {
    font-size: 2.25rem;
    text-transform: uppercase;
    color: #fff;
    border: 5px solid #fff;
}

h2 {
    font-size: 2rem;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    text-align: justify;
    margin: 0 0 2rem 0;
    font-size: 1rem;
}

/* Bakgrundsfärg och bild */

main, #copyright {
    background-color: #fff;
}

#wrapper {
    background: url("../images/Sunset_at_Pacific_Ocean.jpg") no-repeat fixed;
    background-size: 100% auto;
}

nav, footer {
    background-color: #f5f5f5;
}

main, footer, #copyright {
    margin: 0 auto;
    max-width: 74rem;
}

/* Nav */

nav {
    font-size: 1.2rem;
    max-width: 72rem;
    margin: 0 auto;
}

nav ul {
    text-transform: uppercase;
    display: flex;
}

nav ul li a {
    color: #08546B;
}

nav a:hover, nav a:focus {
    color: #000;
    font-weight: bold;
    letter-spacing: 0.15rem;
    outline: none;
}

nav .active {
    background-color: #fff;
}

/* Main */

section > header p {
    font-style: italic;
    text-align: center;
}

section ul {
    list-style-type: circle;
    list-style-position: inside;
    line-height: 2;
}

video, img {
    height: 100%;
    width: 100%;
    margin: 1rem 0;
}

footer {
    display: flex;
}

footer p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

#copyright {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #000;
    background-color: #fff;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Tabell */
tbody tr:nth-of-type(odd) {
    background-color: rgba(220, 220, 220, 0.25);
}

/* Form */

input, select, textarea {
    border: 1px solid #dfdbdb;
    color: #212931;
    font-size: 1.3rem;
}

input[type="submit"], input[type="reset"] {
    background-color: #212931;
    color: #fff;
    border: none;
    padding: 0.5rem 0.8rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background-color: #18bfef;
}

body#grid, #gridParent, body#grid > div {
    background-image: none;
    background-color: #0c718f;
    color: #fff;
}






@media(max-width:600px) {
    h1 {
        text-shadow: 2px 1px black;
    }

    div > header {
        padding: 2rem;
        text-align: center;
    }

    nav {
        line-height: 2rem;
        padding-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        text-align: center;
        padding: 0;
    }

    main section {
        padding: 4rem 2rem 2rem 2rem;
    }

    footer {
        flex-direction: column;
        padding: 1rem;
    }

    /* Table */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border-bottom: 1px solid #ccc;
        padding-top: 0.5rem;
    }

    td {
        position: relative;
        padding-left: 50%;
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;

        font-family: "Source Sans 3", Helvetica, sans-serif;
        font-weight: 900;
        letter-spacing: 0.075em;
    }

    td:nth-of-type(1):before {
        content: "Package Name";
    }

    td:nth-of-type(2):before {
        content: "Description";
    }

    td:nth-of-type(3):before {
        content: "Nights";
    }

    td:nth-of-type(4):before {
        content: "Cost per Person";
    }

    /* Form */

    label {
        width: 100%;
        text-align: left;
        display: block;
    }

    textarea {
        width: 15rem;
    }

    input[type="submit"], input[type="reset"] {
        margin-bottom: 1rem;
    }

    /* Landningssida (index) */

    #grid h1 {
        color: #fff;
        text-shadow: none;
    }

    #intro {
        line-height: 1.5;
        margin-top: 1.8rem;
    }
}



@media(min-width: 601px) {

    h1 {
        padding: 1rem 1.75rem;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 4rem;
    }

    h3 {
        font-size: 1.7rem;
    }

    div > header {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        height: 10rem;
        padding-bottom: 8rem;
    }

    /* Nav*/
    nav {
        background: rgba(255, 255, 255, 0.7);
        height: 4rem;
        line-height: 4rem;
        margin: -4rem auto 0;
        padding: 0 2rem 0 0;
    }

    nav ul li a {
        padding: 0 1rem;
    }

    main section {
        padding: 6rem 4rem 4rem 4rem;
    }

    video {
        display: block;
        margin: 0 auto 2rem;
        width: auto;
    }

    /* Footer */
    footer {
        justify-content: space-around;
    }

    footer address {
        width: 12rem;
        padding: 2rem 4rem;
        font-style: normal; /*Address har förvalt italic så ändrar detta till normal*/
    }

    #copyright ul li {
        border-left: solid 2px black;
        display: inline-block;
        line-height: 1;
        margin-left: 1rem;
        padding-left: 1rem;
    }

    /* Form */

    form {
        width: 30rem;
        margin: 1rem auto 0;
    }

    label {
        width: 8rem;
        float: left;
        text-align: right;
        margin-right: 0.6rem;
        font-size: 1.2rem;
    }

    /* Table */
    table {
        width: 100%;
        max-width: 60rem;
        margin-bottom: 2rem;
    }

    th {
        color: #212931;
        font-weight: bold;
        font-size: 0.8rem;
        padding: 0.75rem;
        text-align: left;
        text-transform: uppercase;
    }

    td {
        padding: 0.3rem;
    }

    td.right {
        text-align: right;
    }

    /* Landningssida */

    #grid header {
        padding-top: 5rem;
    }

    #intro {
        width: 75%;
        line-height: 1.5;
    }

    #gridParent img {
        width: auto;
    }

    #gridParent p {
        text-align: center;
        margin: 0;
    }

    /* Galleriet */
    /* Ska bara vara galleri om skärmen större än 600px så läggs i denna mediaquery */

    p img {
        width: 20%;
        margin-left: 1rem;
    }

    /* För att centrera alla bilderna */
    #gallery p {
        display: flex;
        justify-content: center;
    }
}

@media(min-width: 1024px) {
    /* Landningssida (Index) */

    nav ul li a {
        padding: 0 2rem;
        color: #08546B;
    }

    body#grid, #gridParent, body#grid > div {
        background-image: none;
        background-color: #0c718f;
        color: #fff;
    }

    #grid header {
        padding-top: 5rem;
    }

    #intro {
        width: 35%;
        line-height: 1.5;
        margin-bottom: 1.8rem;
        font-weight: bold;
    }

    #gridParent {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(5, 1fr);
        column-gap: 0.5rem;
        row-gap: 0px;
    }

    #gridItem1, #gridItem2, #gridItem3, #gridItem4, #gridItem5, #gridItem6 {
        width: 242px;
    }

    #gridParent img {
        width: 100%;
    }

    #gridItem1 {
        grid-row: 2/4;
        grid-column: 2/3;
    }

    #gridItem2 {
        grid-row: 1/3;
        grid-column: 3/4;
    }

    #gridItem3 {
        grid-row: 3/5;
        grid-column: 3/4;
    }

    #gridItem4 {
        grid-row: 2/4;
        grid-column: 4/5;
    }

    #gridItem5 {
        grid-row: 4/6;
        grid-column: 4/5;
    }

    #gridItem6 {
        grid-row: 3/5;
        grid-column: 5/6;
    }

    #gridItem7 {
        grid-row: 2/3;
        grid-column: 5/6;
        background-color: #0c718f;
    }

    #gridItem7 ul {
        display: list-item;
        font-size: 1.2rem;
    }

    #gridItem7 a {
        color: #fff;
        text-decoration: none;
    }

    #gridItem7 ul li {
        max-width: 50%;
        line-height: 1.4rem;
        margin: 0;
        padding-top: 0.3rem;
    }
}
