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);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.cube {
    display: flex;
    align-items: flex-end;
    width: 200px;
    height: 200px;
    background-size: cover;
    text-decoration: none;
    color: white;
}
a.cube:hover {
    opacity: 0.5;
}
.cube div {
    width: 100%;
    line-height: 32px;
    text-align: center;
    background-color: rgba(0,0,0,0.6);
}
.home {
    display: block;
    text-decoration: none;
    color: black;
    margin-left: auto;
    margin-right: auto;
    line-height: 32px;
    width: 100%;
    background-color: rgba(255,255,255,0.6);
}

@media only screen and (min-width: 400px) {
    h1 {width: 400px;}
    .home {width: 200px;}
    .gallery {width: 400px;}
}

@media only screen and (min-width: 600px) {
    h1 {width: 600px;}
    .home {width: 300px;}
    .gallery {width: 600px;}
}

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