html {
    height: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    background-image: url("/image/barmouth.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

h1 {
    color: black;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    width: 100%;
    background-color: rgba(255,255,255,0.6);
}
.sub {
    font-style: italic;
    color: black;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    background-color: rgba(255,255,255,0.6);
}
p {
    color: black;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    background-color: rgba(255,255,255,0.6);
}
a {
    display: block;
    text-decoration: none;
    color: black;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    line-height: 32px;
    width: 100%;
    background-color: rgba(255,255,255,0.6);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.cube {
    display: flex;
    align-items: center;
    width: 200px;
    height: 200px;
}

@media only screen and (min-width: 800px) {
    h1 {width: 800px;}
    .sub {width: 800px;}
    p {width: 400px;}
    a {width: 400px;}
    .gallery {width: 800px;}
}